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--
1. Before configuring the ip address, ifconfig first check the Nic information and get the name of the Nic.
two。 Go to the network card configuration directory
Cd / etc/sysconfig/network-scripts/, found the configuration file as ifcfg-em2
3. Modify the ifcfg-em2 to read as follows:
TYPE= "Ethernet" # network type, which does not need to be changed. The default is Ethernet. PROXY_METHOD= "none" # proxy: turn off status BROWSER_ONLY= "no" # just browser: no BOOTPROTO= "none" # Boot Protocol of Network Card: DHCP [Chinese name: dynamic Host configuration Protocol] DEFROUTE= "yes" # default route: IPV4_FAILURE_FATAL= "yes" # No IPV4 fatal error detection: no IPV6INIT= "yes" # whether IPV6 is initialized automatically: whether IPV6_AUTOCONF= "yes" # IPV6 is automatically configured: whether IPV6_DEFROUTE= "yes" # IPV6 can be default route: yes, IPV6_FAILURE_FATAL= "no" # No IPV6 fatal error detection: no IPV6_ADDR_GEN_MODE= "stable-privacy" # IPV6 address generation model: stable-privacyNAME= "em2" # Network card physical device name UUID= "b9cf0ca7-ddc9-4c55-9cea-ce04919f6514" # Universal unique Identification number Each network card will have, can not be repeated, no two linux only one network card available DEVICE= "em2" # network card device name, must be the same as the `NAME` value ONBOOT= "yes" # whether to boot To boot the network card, start or control the network card IPADDR= "172.20.41.96" # IP address PREFIX= "24" # configure the subnet mask GATEWAY= "172.20.41.65" # gateway DNS1= "202.96.209.133" # DNSIPV6_PRIVACY= "no" through `Network`
4. Restart the network card after modification
Systemctl restart network
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.