How to manage multiple network adapters under Linux system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.