Linux Learning CentOS (iii)----to change the cent0s 7 network adapter name eno16777736 to Eth0

Source: Internet
Author: User

Linux system version: Centos_7 (64-bit)

First, preface:

Today, from CentOS 6.5 to the CentOS 7, after all, still have to adapt to the trend. After installation, it is found that the default network adapter name for CentOS 7 is eno16777736:

People like me with mild obsessive-compulsive disorder see this name always feel uncomfortable, so to change eno16777736 to the previous version of Eth0, then start it.

Second, modify the name of the network card of CentOS 7:

Enter the following command to enter the corresponding directory and edit the file:

Vim/etc/sysconfig/grub

Then, add the "net.ifnames=0 biosdevname=0" content to this file, as shown in:

, the Red box section is what I added (note the location of it).

Immediately, execute the following command:

Grub2-mkconfig-o/boot/grub2/grub.cfg

The effect is as follows:

Then, after rebooting the system, look for the NIC name:

Finished, go back to the bedroom to wash and sleep, tomorrow morning continue to study.

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.