Vmwareworkstation: Clone linux and change the NIC to eth0

Source: Internet
Author: User
Vmwareworkstation: vmwareworkstation8, guestOS: CentOS6.2.HostOS: windows7 problem: After cloning RHEL6.3, the NIC name has two eth0 and eth1. eth1 is actually used, eth0 is a Gram... vmware workstation: vmware workstation 8, guest OS: CentOS 6.2. host OS: windows 7 problem: After cloning RHEL 6.3, the network adapter name has two eth0 and eth1. the actual function is eth1, and eth0 is cloned. Because a new mac address is generated after cloning, the system adds a Nic to the original eth0. Therefore, "+ 1" is eth1. solution. Method 1: 1. root logon, cp/etc/udev/rules. d/70-persistent-net.rules/etc/udev/rules. d/70-persistent-net.rules.bak 2. vi/etc/udev/rules. d/70-persistent-net.rules, delete all content 3. reboot 4. vi/etc/udev/rules. d/70-persistent-net.rules, change eth1 to eth0, and record mac address 5. click desktop system-perference-network connctions, delete the auto-eth0, modify the name of system eth0 to eth0 6.vi/etc/sysconfig/network-scripts/ifcfg-eth0, change the mac address to the address recorded in step 4. 7. restart and check configuration Method 2: 1. root logon, cp/etc/udev/rules. d/70-persistent-net.rules/etc/udev/rules. d/70-persistent-net.rules.bak 2. vi/etc/udev/rules. d/70-persistent-net.rules, delete eth0 related content, modify eth1 to eth0, record the mac address of the new eth0 3.vi/etc/sysconfig/network-scripts/ifcfg-eth0, change the mac address to the address recorded in step 2. 4. restart and check the configuration. In addition, in the network settings of the virtual machine, select: Bridged: connected directly to the physical network Replicate physical network connection state is checked so that the IP address of the same network segment can be used with the physical machine.

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.