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