How to restore the Nic interface name in centos6rhel6 to solve kernel: udev: renamednetworkinterfa

Source: Internet
Author: User
After CENTOS6 was used, I found that my network card name had changed and I was very unaccustomed to learning bsd. I did not feel any benefits. I found it on http://fedoraproject.org/wiki/features/consistentnetworkdevicenaming. The problem is solved as follows...

 

After CENTOS6 was used, I found that my network card name had changed and I learned how to use bsd. I was so unaccustomed to it and didn't feel any benefits. I went to the dog to search for it,

 

Description of onlookers of interest in http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming.

 

The solution is as follows: www.2cto.com

 

1. add the biosdevname = 0 startup parameter in grub, as shown in figure

 

Kernel/vmlinuz-2.6.32-131.21.1.el6.i686 ro root =/dev/mapper/vg_test-lv_root rd_LVM_LV = vg_test/lv_root rd_LVM_LV = vg_test/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG = en_US.UTF-8 SYSFONT = latar

Cyrheb-sun16 KEYBOARDTYPE = pc KEYTABLE = us crashkernel = auto rhgb quiet biosdevname = 0

 

2. delete the udev configuration file rm-f/etc/udev/rules. d/70-persistent-net.rules.

 

3. rename the Nic configuration file

 

Mv ifcfg-em1 ifcfg-eth0

 

4. modify the content of the NIC configuration file and change all em1 files to eth0.

 

Perl-p-I-e's/em1/eth0/g' ifcfg-eth0

 

5. restart the system.

From subaozi

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.