Linux : How to rename the network interface in CentOS/RHEL7

By | April 2, 2016

Since the latest major version release of CentOS/RHEL 7, it seem that we wen’t a bit crazy about the whole systemd thing…

Seriously, having a network interface named “eno16780032” isn’t that great! Fortunately, there is a a way of getting back the old naming convention by following these steps :

1. Edit the Grub configuration file :

2. Locate the line “GRUB_CMDLINE_LINUX=” and append the following parameter :

Example :

3. Rebuild the Grub configuration :

For BIOS:

For EFI:

4. Copy the network configuration file, matching the new interface name :

Example, assuming your interface name is “ens192” and the new interface name “eth0” :

5. Edit the net interface configuration :

Change the following values from the old to the new interface name :

You may now reboot your system.