In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to configure the linux network, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
Use the entry profile:
Vi / etc/sysconfig/network-scripts/ifcfg-eth0
Now open this file is the configuration file of the network card, to change the IP address, you have to edit this file.
To modify the contents of the file, press the letter I key:
Change ONBOOT=no to ONBOOT=yes
Change BOOTPROTO=dhcp to BOOTPROTO=static
And add the following lines of characters
IPADDR=192.168.188.128
NETMASK=255.255.255.0
GATEWAY=192.168.47.2
DNS1=119.29.29.29
Description:
ONBOOT is set to yes, indicating that the network card starts with the system.
BOOTPROTO is used to set the startup type of the network card. Dhcp means to obtain the IP address automatically, and static means to set the static IP address manually.
IPADDR specifies the IP address (depending on the address that has been automatically obtained previously)
NETMASK specifies the subnet mask
GATEWAY specifies the gateway
DNS1 specifies the DNS IP address for surfing the Internet
119.29.29.29 is a public DNS provided by domestic DNSpod company.
After making the above changes, press the ESC key, then type ": wq" and enter to exit the document.
Restart networking
Restart network services
Check the IP address (as seen earlier)
Test network connectivity
Network setup complete!
The above is all the content of how linux configures the network, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.