How to disable consistent naming rules for network interfaces in RHEL7

Consistent Network Device Naming

$ ip link show
2: ens192 ...

## disable consistent naming
$ nano /etc/default/grub
... net.ifnames=0
$ grub2-mkconfig -o /boot/grub2/grub.cfg

## add udev network naming rule, replace MAC with your macaddress
$ nano /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:a9:7a:e1", ATTR{type}=="1", KERNEL=="eth*", NAME="sushi"
$ reboot
$ ip link show
2: sushi ...

from How to change a network interface name on CentOS 7

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s