No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>


To have a better experience, please upgrade your IE browser.


NIC Name ethX on the Linux OS Is Renamed ethX_rename

Publication Date:  2014-07-23 Views:  31 Downloads:  0
Issue Description
On the Linux OS, a user runs the ifconfig command to query the NIC information. Occasionally, ethX_rename, instead of ethX, is displayed
Alarm Information
Handling Process
Method 1:
If you want name the NICs eth0,eth1,eth2... sequentially, delete all rules in the /etc/udev/rules.d/70-persistent-net.rules file, and reload the NIC driver.
Method 2:
To customize the NIC name, add rules to the /etc/udev/rules.d/70-persistent-net.rules file, and then reload the NIC driver.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:19:a6:d0:e8:72", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
Meaning of the preceding rule: The NIC with the MAC address 08:19:a6:d0:e8:72 will be named eth0 during the load.
Reloading the NIC driver
Run the ethtool -i eth0 command to query the driver name (igb), as shown in Figure 3.
Figure 3 Querying the driver name

 Run the following commands to reload the NIC driver:
rmmod igb      //Delete the NIC driver igb
Modprobe igb      // Reload the NIC driver igb
Root Cause
The possible cause is that the NIC configuration is changed. This may cause incorrect configuration file: /etc/udev/rules.d/70-persistent-net.rule. For example, redundant items or configuration items of the previous NIC exist in the file.
Typical example:
Using the SUSE VM as an example, the location is as follows:
When starting the SUSE VM, load an NIC during the initialization, as shown in Figure 1.
Figure 1 Loading the first NIC during initialization

 After the VM is started, the /etc/udev/rules.d/70-persistent-net.rule file of the VM provides a rule, specifying that any NIC being loaded is named eth0, as shown in Figure 2.
Figure 2 NIC naming rule

The NIC name displayed here is normal.
Shut down the VM, add another NIC, and restart the VM. The two NICs, according to the default settings, should be named eth0 and eth1 sequentially. The /etc/udev/rules.d/70-persistent-net.rule file rule, however, defines that any NIC needs to be named eth0. That is, the two NICs are both named eth0. The label _rename is appended to the second NIC to prevent name conflict, and the second name changes to eth0_rename.