Remove Eth0.bak and redundant network adapters from Linux systems
Deleting redundant ifcfg-eth0.bak in a VM
CentOS a Eth0.bak configuration backup file appears after the system changes the NIC or Nic MAC address
Workaround:
/etc/sysconfig/networking/devices directory, delete Ifcfg-eth0.bak
/etc/sysconfig/networking/profiles/default, remove Ifcfg-eth0.bak
/etc/sysconfig/network-scripts/, remove Ifcfg-eth0.bak
Second, remove the Linux system redundant network card (for example: eth1)
/etc/modprobe.conf, delete alias eth1 XXXX
/etc/sysconfig/networking/devices directory, delete ifcfg-eth1
/etc/sysconfig/networking/profiles/default directory, delete ifcfg-eth1
/etc/sysconfig/network-scripts/directory, delete Ifcfg-eth0.bak
Third, the Detection network Interface (ETH0) is working properly
/etc/modprobe.conf, this file must have: alias Eth0 XXX
/etc/sysconfig/hwconf, the corresponding configuration of eth0 in this file must also be correct
/etc/sysconfig/network-scripts directory, you must have a configuration file for the network interface: Ifcfg-eth0
The configuration is correct in the/etc/sysconfig/network-scripts/ifcfg-eth0 file, for example: Device=eth0