When we installed the Linux system using WMware, the installation was successful, then the network card used was eth0, no network card was added, and there was no eth1. However, after a period of time, the system has automatically generated a ETH1 network card, which can be seen using the Ifconfig command.
First, either you delete the eth0 or you clone the original machine before this problem occurs.
Want to continue using eth0 if you have 2 card configuration file for eth0 eth1
1. Edit the configuration file of your network card/etc/sysconfig/network-scripts/ifcfg-eth0,
- Change the information in eth0 hwaddr to eth1 Nic (This is a 16-bit MAC address)
2. Edit the configuration file Vi/etc/udev/rules.d/70-persistent-net.rules
Open the file, you will find that there are two network cards including eth0,eth1 information, delete the eth0 network card, the eth1 changed to Eth0, Restart the system or network (restart the network error to restart the virtual machine directly) after the modified configuration is as follows
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/82/43/wKiom1dPv22hbnwFAABCoMrxP04907.png-wh_500x0-wm_3 -wmp_4-s_679633038.png "title=" qq picture 20160602130841.png "alt=" Wkiom1dpv22hbnwfaabcomrxp04907.png-wh_50 "/>
This article is from the Linux system Learning extension blog, so be sure to keep this source http://zhangxiaoxiong.blog.51cto.com/11657691/1785453
Ifconfig out is not eth0 (ETH1/2/3/4 other NIC) workaround