Home > HowTo, Linux > CentOS7 change interface name

CentOS7 change interface name

August 14th, 2014 Leave a comment Go to comments

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

Categories: HowTo, Linux Tags: , , ,
  1. edward
    August 21st, 2015 at 08:38 | #1

    Thanks + Obligardo – just what I was looking for.

  1. No trackbacks yet.

VAMOVE *

*