In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to modify the network card em1 to eth0 in the CentOS system." interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "CentOS system how to modify the network card em1 to eth0"!
Question:
After some Dell servers installed the Linux operating system, they found that the name of the network card had become em1.
Solution:
Change the name of the Nic to eth0. Take the CentOS operating system as an example.
One: modify the system grub
Vi / boot/grub/grub.conf # add biosdevname=0 after kernel parameter
Kernel / vmlinuz-2.6.32-573.7.1.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM biosdevname=0 rhgb quiet
: wq! # Save exit
2. Modify the Nic naming rule configuration file of udev
Vi / etc/udev/rules.d/70-persistent-net.rules # modification
This server has four network cards, and the identified network card names are: em1, em2, em3, em4 (em code starts with 1, no em0)
We need to change the above em1 to eth0, em2 to eth2, em3 to eth3, em4 to eth4
: wq! # Save exit
Modify the name of the current network card configuration file
Cd / etc/sysconfig/network-scripts/ # enter the Nic configuration file directory
Mv ifcfg-em1 ifcfg-eth0 # rename
Mv ifcfg-em2 ifcfg-eth2
Mv ifcfg-em3 ifcfg-eth3
Mv ifcfg-em4 ifcfg-eth4
4. Modify the contents of the configuration file of the network card and change all em to eth.
Cd / etc/sysconfig/network-scripts/ # enter the Nic configuration file directory
Vi ifcfg-eth0 # change the em1 in it to eth0
Vi ifcfg-eth2 # change the em2 in it to eth2
Vi ifcfg-eth3 # change the em3 in it to eth3
Vi ifcfg-eth4 # change the em4 in it to eth4
: wq! # Save and exit after the modification is completed
Restart the boot system to make the above changes effective
Shutdown-r now # restart
At this point, the CentOS system modifies the network card em1 to eth0.
At this point, I believe you have a deeper understanding of "CentOS system how to modify the network card em1 to eth0". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.