1. Four NICs are installed on a Linux host and two are included. After the system is installed, the two extended NICs are identified as eth0, eth1, you want to change the two of the system to eth0 and eth1.
2. Change the module alias in the/etc/modprobe. conf file.
For example, alias eth0 e1000e
Alias eth1 e1000e
Change to alias eth2 e1000e
Alias eth3 e1000e
3. Change the name of the NIC configuration file to ifcfg-eth0, that is
Mv/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network-scripts/ifcfg-temp0
Mv/etc/sysconfig/network-scripts/ifcfg-eth2/etc/sysconfig/network-scripts/ifcfg-temp2
Mv/etc/sysconfig/network-scripts/ifcfg-temp2/etc/sysconfig/network-scripts/ifcfg-eth0
Mv/etc/sysconfig/network-scripts/ifcfg-temp0/etc/sysconfig/network-scripts/ifcfg-eth2
4. Change the configuration file and change DEVICE = eth0 accordingly.
5. Reload the NIC Module
Modprobe eth0
Modprobe eth1
Modprobe eth2
Modprobe eth3
6. restart the network service/etc/init. d/network restart. I tried to restart the network and then restarted the host.
7. Check whether ifconfig is normal.
Check mac and whether there is running.