Centos7 provide different naming convention is based on the default firmware, topology, location information to allocate.
The advantage of this is that the naming is fully automated, predictable disadvantage is more than eth0 , wlan0 harder to read. For example enp5s0
Naming rules Strategy
The default, systemd will be named interfaces based on the following strategies apply to the naming convention supports.
Rule 1 : For the on-board device naming merger firmware or BIOS provides an index number, if from a firmware or BIOS -readable information on the name, such ENO1 , this name is relatively common, otherwise the rule 2 .
Rule 2 : Naming merger firmware or BIOS provides a PCI-E hot-swappable port index, such as ENS1 , if the information is readable on the use, or the use of rule 3 .
Rule 3 : Naming merge the physical location of the interface hardware, such as enp2s0 , available on naming failure directly to the program 5 .
Rule 4 : Naming merge interface MAC address, such enx78e7d1ea46da , default is not used unless the user chooses to use this program.
Rule 5 : Using the conventional approach, if all the programs have failed, eth0 .
Meaning the first two characters of the
en Ethernet Ethernet
wl WLAN WLAN
ww wireless WAN WWAN
if you are not accustomed to using the new naming convention, you can use the traditional way to restore named edit grub file,
add two variables, then use grub2-mkconfig rebuild the configuration file.
vim /etc/sysconfig/grub
GRUB_CMDLINE_LINUX=”net.ifnames=0 biosdevname=0″
grub2-mkconfig -o /boot/grub2/grub.cfg
Recent Comments