In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail about CentOS operating system network card IP and startup configuration file, the content of the article is of high quality, so the editor will share it for you to do a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
After studying CentOS network card for a long time, you may encounter the problem of CentOS network card. Here we will introduce the solution to the problem of CentOS network card. The IP address of CentOS network card is stored in the file, and the IP configuration file of this CentOS network card is under / etc/sysconfig/network-scripts.
The names are ifcfg-eth0,ifcfg-eth2.... If you have a CentOS network card IP, there is only one file ifcfg-eth0. If you have two or more CentOS network cards IP, there will be ifcfg-eth2, ifcfg-eth3 and other files.
File structure:
DEVICE=eth0 / / indicate the device name
BOOTPROTO=static// startup type dhcp,dcph or static automatic and manual
BROADCAST=192.168.1.255 / / broadcast address
HWADDR=00:06:5B:FE:DF:7C// hardware Mac address
IPADDR=192.168.0.2//IP address
NETMASK=255.255.255.0 / / subnet mask
NETWORK=192.168.0.1 / / Network address
ONBOOT=yes / / whether to start the application
TYPE=Ethernet / / Network Typ
1 vi / etc/sysconfig/network-scripts/ifcfg-teh0
2. Start the service service network restartCentOS network card editing host DNS server information command: vim / etc/resolv.confCentOS network card editing content is (comment out the second line): nameserver 202.118.176.2
About the CentOS operating system network card IP and startup configuration file is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.