Connect to the network after vmwarevm Replication

Source: Internet
Author: User

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

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.