In CentOS7 or RedHat7 again we have funky strange network interfaces names…
To change the name back to eth0 just follow:
1. Rename the device name
vi /etc/sysconfig/network-scripts/ifcfg-ens**
2. Rename the file
mv /etc/sysconfig/network-scripts/ifcfg-ens192 /etc/sysconfig/network-scripts/ifcfg-eth0
3. add net.ifnames=0 biosdevname=0 to /etc/default/grub
vi /etc/default/grub
GRUB_CMDLINE_LINUX=” vconsole.font=latarcyrheb-sun16 crashkernel=auto vconsole.keymap=br-abnt2 rhgb quiet net.ifnames=0 biosdevname=0″
4. Apply changes
grub2-mkconfig -o /boot/grub2/grub.cfg

Tags: , , ,

1 thought on “CentOS7 change interface name

Leave a Reply

Your email address will not be published. Required fields are marked *