VMware's next-ifconfig Linux system doesn't work with network problems.

Source: Internet
Author: User

Copy of the colleague's Linux system, copy over can also use, today again open found no IP, so on the Internet to find solutions, because I have never contacted Linux so check a lot of but the solution of the method tried several is not, the following effective solution is found:

Linux uses the/etc/network/interfaces configuration file to load the NIC. In the default configuration, it instructs Linux to automatically find the Eth0 network card and automatically assign IP. However, when the MAC address of the virtual network card is changed, the NIC is not eth0 in Linux, but eth1 or other value. That's why you can't find it. In the existing system, which network card is available, can be viewed by the following command: Ifconfig-a.

Workaround:

1 Delete the/etc/udev/rules.d/70-persistent-net.rules file. (Use this method to remove the restart or not after use Method 2)

2 Modify the file under interfaces. If there are eth0 and eth1, put eth0 comment or delete, the name= "eth1" Inside to "eth0" (recommended with the root user, just start their own use is ordinary user results prompt does not have permission for this also found a long time to modify file permissions ~ ~)Step 1:vi/etc/udev/rules.d/70-persistent-net.rules file (comments are preceded by #)Step 2:change the NIC configuration file, Vi/etc/sysconfig/network-scripts/ifcfg-eth0Change the hwaddr to the modified eth0 reboot in step 1.

VMware's next-ifconfig Linux system doesn't work with network problems.

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.