RHEL7.x version, modify the network card naming rules

RHEL7.x using enoxxxx card naming rules, naming rules use this card if not used, you can modify it to a previous version of this card eth0,1,2 naming rules, then how to modify it? The following describes the common way to correct.
A modify grub
in grub the "net.ifnames = 0 biosdevname = 0" the content of which the purpose is to disable predictable naming rules.

[root@ys ~]# vim /etc/sysconfig/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet net.ifnames=0 biosdevname=0"
GRUB_DISABLE_RECOVERY="true"

Second, the grub boot file is generated
using the grub2-mkconfig command, rebuild the grub boot file
[root@ys ~]# grub2-mkconfig -o /boot/grub2/grub.cfg

Third, restart the system
checks whether the entry into force
RHEL7.x version, modify the network card naming rules

Guess you like

Origin blog.51cto.com/yuanshuai/2468219