Reset the NIC eth1 to eth0 after VMware starts CentOS 6.5

Source: Internet
Author: User

When the Vmbox virtual machine is configured, the operation of replicating virtual machines is often used for convenience, but the replicated virtual machines are not able to connect to the local area network even if they adopt the way of bridging networks.


Later on-line check, can re-set ETH

First look at the file /etc/udev/rules.d/70-persistent-net.rules content similar to the following:

# this file  Was automatically generated by the /lib/udev/write_net_rules# program, run  by the persistent-net-generator.rules rules file.## you can modify  it, as long as you keep each rule on a single#  line, and change only the value of the name= key.# pci  device 0x8086:0x100e  (e1000) subsystem== "NET",  action== "Add",  drivers== "? *",  attr{ address}== "08:00:27:92:5e:f2",  attr{type}== "1",  kernel== "eth*",  name= "eth0" # pci  device 0x8086:0x100e  (e1000) subsystem== "NET",  action== "Add",  drivers== "? *",  attr{ address}== "08:00:27:5a:00:b2",  attr{type}== "1",  kernel== "eth*",  name= "eth1" 

Remember the MAC address "08:00:27:5A:00:B2" in eth1

then edit the file Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth1hwaddr=08:00:27:5a:00:b2type=ethernet#uuid=62b19c7b-4fbd-45ef-b73f-73d9bf664f69onboot=yesnm_ controlled=yesbootproto=staticipaddr=192.168.102.6netmask=255.255.255.0gateway=192.168.102.1

Change the original eth0 to eth1, and change hwaddr to the MAC address in the file above

After saving exits

Restart Network

Service Network restart

Can complete the intranet Unicom

Test input Ifconfig Enter, if you can see the file set in the IP, marking the success of the setting!


Reset the NIC eth1 to eth0 after VMware starts CentOS 6.5

Related Article

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.