Modify the NIC name (RHEL) in Linux)

Source: Internet
Author: User

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.

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.