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=”rd.lvm.lv=centos_infoecedsvplataforma3/root vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos_infoecedsvplataforma3/swap crashkernel=auto vconsole.keymap=br-abnt2 rhgb quiet net.ifnames=0 biosdevname=0″
4. Apply changes
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
ifconfig
done

Tags: , , ,

1 thought on “CentOS7 change interface name

Leave a Reply

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