In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Centos Linux7 how to set static IP, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Centos Linux7 sets an instance of static IP
# # enter the location of the configuration file first:
Cd / etc/sysconfig/network-scripts/
# # check which file is used by the current Nic
Ip add
# # filter out the list of configuration files
Ll | grep ifcfg
# # Editing configuration File
Vi ifcfg-ens160
# # the main contents of the configuration file: BOOTPROTO IPADDR NETMASK NM_CONTROLLED ONBOOT these fields, others remain unchanged
TYPE=EthernetBOOTPROTO=staticIPADDR=192.168.1.251NETMASK=255.255.255.0DNS1=8.8.8.8DNS2=8.8.4.4NM_CONTROLLED=noDEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyNAME=ens160UUID=23a77b70-a6e3-4399-a5bd-4ca312a0f123DEVICE=ens160ONBOOT=yes
# # modify the gateway configuration file:
Vi / etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=localhost.localdomainGATEWAY=192.168.1.1
# # restart Network Services
Systemctl restart network.service thank you for reading this article carefully. I hope the article "how to set up static IP in Centos Linux7" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!
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.