Ifconfig out is not eth0 (ETH1/2/3/4 other NIC) workaround

Source: Internet
Author: User

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,

    1. 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

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.