In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "how to configure IP address in Centos7.5". The editor shows you the operation process through an actual case. The method of operation is simple, fast and practical. I hope this article "how to configure IP address in Centos7.5" can help you solve the problem.
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 can be used device= "em2" # network card device name, must be the same as `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
This is the end of systemctl restart network's introduction to "how to configure IP addresses for Centos7.5". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.