{{tag>centos interface network}}
====== Switch to Legacy Interface Names ======

===== Disable new naming =====

Edit /etc/default/grub:
<sxh bash>vim /etc/default/grub</sxh>

Add **net.ifnames=0** at the end of **GRUB_CMDLINE_LINUX="**

It should look like this:
<sxh bash>
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="biosdevname=0 crashkernel=auto nomodeset rd.auto=1 consoleblank=0 nouveau.modeset=0 rd.driver.blacklist=nouveau plymouth.ignore-udev net.ifnames=0"
GRUB_DISABLE_RECOVERY="true"
</sxh>

===== Create a new grub config =====
<sxh bash>grub2-mkconfig -o /boot/grub2/grub.cfg</sxh>

===== Create persistent-net rule in udev =====
Edit the file **/etc/udev/rules.d/70-persistent-net.rules** like (the file porbably doesnt exist):
<sxh bash>vim /etc/udev/rules.d/70-persistent-net.rules</sxh>

and add one line per interface like this:
<sxh>SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="HH:HH:HH:HH:HH:HH", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"</sxh>
where HH:HH:HH:HH:HH:HH is the MAC Address of that interface.

===== Rename network scripts =====
Find the interface files here **/etc/sysconfig/network-scripts** and move them to their new names, for each script you need to edit it and change the device name as in the example below.
<sxh bash>mv /etc/sysconfig/network-scripts/ifcfg-en0s0p0 /etc/sysconfig/network-scripts/ifcfg-eth0</sxh>