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.