When installing multiple network adapters on a Linux system, changing the name is not so simple, in the face of this multiple network card situation, Linux How to modify the name of the network card? Come along with the small weave to understand.
How does a Linux multiple NIC change the name?
1, a Linux machine installed 4 network cards, with two, the expansion of two, installed system, the expansion of two identified as Eth0,eth1, want to change the system two to Eth0,eth1
2, change the module alias in the/etc/modprobe.conf file
Like the alias Eth0 e1000e.
Alias Eth1 e1000e
Change to alias Eth2 e1000e
Alias Eth3 e1000e
3, change the network card configuration file name is Ifcfg-eth0, that is, swap
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, will device=eth0, corresponding to get rid of
5. Reload the NIC module
Modprobe eth0
Modprobe eth1
Modprobe eth2
Modprobe Eth3
6, restart network services/etc/init.d/network Restart, tried to restart the network does not, and then restarted the machine
7, check whether normal ifconfig
Compare Mac and see if there are running to judge