The first step:
Modify the Grub configuration file for the system
Vi/etc/boot/grub/grub.conf
...........
#boot =/DEV/SDA
Default=0
Timeout=5
Splashimage= (hd0,0)/boot/grub/splash.xpm.gz
Hiddenmenu
Title CentOS (2.6.32-220.el6.x86_64)
Root (hd0,0)
kernel/boot/vmlinuz-2.6.32-220.el6.x86_64 Roroot=uuid=360d089b-d466-4005-abcb-c5e517d31a96 Rd_NO_LUKS rd_NO_ Lvmlang=en_us. UTF-8 rd_no_md quiet Sysfont=latarcyrheb-sun16 rhgbcrashkernel=auto keyboardtype=pc keytable=usrd_no_dm Biosdevname=0 #新加的-means that the network card name is not enabled for the BIOS
Initrd/boot/initramfs-2.6.32-220.el6.x86_64.img
Step Two:
Delete Udev's configuration file
Rm-f/etc/udev/rules.d/70-persistent-net.rules (f parameter is forced delete)
Step Three:
Modify the NIC name
Switch to the NIC directory
cd/etc/sysconfig/network-scripts/
After execution
MV Ifcfg-em1 Ifcfg-eth0
MV Ifcfg-em2 Ifcfg-eth1
And then modify the device name in the configuration file.
Device=eth0 (eth1)
Fourth Step:
Restarting the server
This article is from the "learning is a chore" blog, please be sure to keep this source http://drwjsw.blog.51cto.com/6256499/1759105
centos6.2 modifying the NIC name