CentOS 7 changing the NIC name

Source: Internet
Author: User

1. Change the NAME option in the NIC configuration file ifcfg-enoxxxxxx

Vim /etc/sysconfig/network-scripts/ifcfg-enoxxxxxx

Name=eth0

2. Change the NIC profile name

C d/etc/sysconfig/network-scripts/

MV Ifcfg-enoxxxxxx Ifcfg-eth0

3. Disable the predictable naming rule by editing /etc/default/grub and adding "net.ifnames=0 biosdevname=0 "

  to grub_cmdline_linux variable to implement 650) this.width=650; "src=" http:/ S3.51cto.com/wyfs02/m00/74/05/wkiol1yof_-cfossaacsyvglzf4548.jpg "title=" image 1.png "alt=" wkiol1yof_- Cfossaacsyvglzf4548.jpg "/>

4. Run the command grub2-mkconfig-o/boot/grub2/grub.cfg to regenerate the grub Configuration and update the kernel parameters

5. Rebooting the system





This article is from the "Members Doukua" blog, make sure to keep this source http://tsang.blog.51cto.com/7597327/1699945

CentOS 7 changes the NIC name

Related Article

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.