After the vmwarevm is copied, it connects to the network under the same network segment.
Ipconfig can generally see Lo, Lo, and eth1
At this point:/etc/sysconfig/network-scrips/Under the ifcfg-eth0 is also the same as the original virtual machine, not changed.
DEVICE=eth0TYPE=EthernetUUID=e7fbb0eb-9546-4aa0-a03f-b94180372ce4ONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneHWADDR=00:0C:29:DA:2A:A3IPADDR=192.168.1.180PREFIX=24GATEWAY=192.168.1.1DNS1=192.168.1.1DOMAIN=192.168.1.1DEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=noNAME="System eth0"
To be modified:
Script for creating eth1:
CP/etc/sysconfig/network-scrips/ifcfg-eth0/etc/sysconfig/network-scrips/ifcfg-eth1
The above red is the place to be modified in ifcfg-eth1:
Before modification: ifconfig-
Write down the MAC address ############### of eth1 ##############.
After modification:
DEVICE=eth1TYPE=EthernetONBOOT=yesNM_CONTROLLED=yesBOOTPROTO=noneHWADDR=00:0C:29:F7:AA:A8IPADDR=192.168.1.182PREFIX=24GATEWAY=192.168.1.1DNS1=192.168.1.1DOMAIN=192.168.1.1DEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=noNAME="System eth1"
To prevent script interference with eth0, modify the following:
The modified eth0 script:
DEVICE=eth0TYPE=EthernetUUID=e7fbb0eb-9546-4aa0-a03f-b94180372ce4ONBOOT=noNM_CONTROLLED=yesBOOTPROTO=noneHWADDR=00:0C:29:DA:2A:A3IPADDR=192.168.1.180PREFIX=24GATEWAY=192.168.1.1DNS1=192.168.1.1DOMAIN=192.168.1.1DEFROUTE=noIPV4_FAILURE_FATAL=noIPV6INIT=noNAME="System eth0"
Run: Service Network restart.
Connect to the network after vmwarevm Replication