centos6.2 modifying the NIC name

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.