in Basic Getting Started All Posts ~ read.
Changing Network Interfaces in Centos 7

Changing Network Interfaces in Centos 7

I would want to share how you can change the Network Interfaces Name in Centos 7 machines.

First you need to edit file as below :

vi /etc/default/grub

You may add "net.ifnames=0 in GRUB_CMDLINE_LINUX" variable as below.

GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0"

then rebuild the grub to apply the name on boot.

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

Next, you may now rename the network interface that suits your preferences

cd /etc/sysconfig/network-scripts; mv ifcfg-ens32 ifcfg-eth0

When editing the network-interface, remember to also change the value of DEVICE and NAME, then reboot the server.

init 6

After reboot, use command "ifconfig" to verify whether the Network Interface name are changed.

// reference //Initialize ghostHunter