CentOS 6.2 modify Nic name

Source: Internet
Author: User


CentOS 6.2 recently installed CentOS6.2 on the DELL server to change the NIC name. The results in use are found that the name has changed, the name is not eth *, but em * (specific naming rules here http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming ). The script cannot be normally executed due to a change in the NIC name. Now record the modification method: www.2cto.com 1. Add the biosdevname = 0 startup parameter in grub, shape like kernel/vmlinuz-2.6.32-131.21.1.el6.i686 ro root =/dev/mapper/vg_test-lv_root kernel = vg_test/lv_root kernel = vg_test/lv_swap kernel rd_NO_MD rd_NO_DM LANG = en_US.UTF-8 SYSFONT = latarcyrheb-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, the NIC configuration file renamed mv ifcfg-em1 ifcfg-eth0 4, the NIC configuration file content correction, changing all em1 to eth0 can be performed using perl-p-I-e's/em1/eth0/G' ifcfg-eth0 or sed-I's/em1/eth0/G' ifcfg-eth0 replace. 5. restart the system.

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.