In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to convert other network ports into eth0 under Linux". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to convert other network ports into eth0 under Linux" can help you solve your doubts.
1. Create or modify ifcfg-eth0 [root@localhost network-scripts] # cat / etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0TYPE=EthernetONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneHWADDR=F8:BC:12:60:99:86 / / Nic physical address IPADDR=192.168.10.200 / / ipPREFIX=24GATEWAY=192.168.10.1 / / Gateway DNS1=192.168.10.1 / / dnsDEFROUTE=yesIPV4_FAILURE_FATAL=yesIPV6INIT=noNAME= "System eth0"
If there is an ifcfg-p4p1, or other weird interface, mv directly to the user's root directory as a backup. Remember that before, dns was put in / etc/resolv.conf, and it was in the format of nameserver 192.168.10.1. I don't know if centos 6.5 can be set up like this.
2. Create or modify 70-persistent-net.rules [root@localhost rules.d] # cat / etc/udev/rules.d/70-persistent-net.rules# PCI device 0x10ec:0x8168 (r8169) (custom name provided by external tool) SUBSYSTEM== "net", ACTION== "add", DRIVERS== "? *", ATTR {address} = = "f8:bc:12:60:99:86", ATTR {type} = = "1", KERNEL== "eth*", NAME= "eth0"
I installed centos 6.5. there is no such file. I added it myself. If you do not restart the computer, but just restart the network, you can surf the Internet, but the name will not change. The name of ifconfig will not be changed to eth0 until the computer is restarted.
After reading this, the article "how to convert other network ports into eth0 under Linux" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, you are 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.