Change name of Network Interface in CentOS7

1. Open /etc/default/grub

vi /etc/default/grub

2. Add net.ifnames=0 biosdevname=0 to GRUB_CMDLINE_LINUX. So final line may look like below:

GRUB_CMDLINE_LINUX=”vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0″

3. grub2-mkconfig -o /boot/grub2/grub.cfg

4. rename /etc/sysconfig/network-scripts/ifcfg-en**** to /etc/syconfig/network-scripts/ifcfg-eth0

5. In ifcfg-eth0 file Change NAME=en*** to NAME=eth0

6. reboot

Neelesh Gurjar has written 120 articles