How to change the name of Linux multi-network card?

  
​​

When installing multiple network cards on a Linux system, it is not so easy to change the name. In the case of such multiple network cards, how can Linux modify the network card name? Let's take a look at it with Xiaobian.

1, is mounted on a Linux loom four cards, the latter two, the two extensions, the system comes installed, two identified as extended eth0, eth1, want to Change the two systems to eth0, 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 configuration file of the network card to ifcfg-eth0, that is, adjust the

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, change DEVICE=eth0, correspondingly

5. Reload the NIC module

modprobe eth0

modprobe eth1

modprobe eth2

modprobe eth3

6. Restart the network service /etc/init.d/network restart, try it out Restart the network is not working, and later restarted the machine

7, check whether it is normal ifconfig

Compare mac and whether there is running to judge

The above is the Linux multi-NIC card change The method of name is introduced. The method described in this article is only for Linux system. Other systems can be used as a reference. CentOS can see how the system card CentOS 6.X changes the name of the network card.

Copyright © Windows knowledge All Rights Reserved