VM Cloning linux system after connecting network

Source: Internet
Author: User


The first step vi/etc/udev/rules.d/70-persistent-net.rules
Comment out the previous eth0,
Change eth1 to eth0 and copy MAC address
Part II Vi/etc/sysconfig/network-script/ifcfg-eth0
Write the MAC address of the first step
Device=eth0
Bootproto=static
broadcast=192.168.137.255
ipaddr=192.168.137.222
netmask=255.255.255.0

gateway=192.168.137.1

Hwaddr= "00:0c:29:8b:bc:09"
Nm_controlled= "Yes"
onboot= "Yes"
Type= "Ethernet"
#UUID = "28136B6B-F3EA-48BC-9F6B-8C659C3B60AC"
Part Three service network restart

Part Fourth
To modify the gateway configuration, the host name of the native
EDIT: Vi/etc/sysconfig/network modified as follows:
Networking=yes (Indicates whether the system uses a network and is generally set to Yes.) If set to no, the network cannot be used, and many system services programs will not start.
Hostname=centos (Set the hostname of this machine, the host name set here should correspond to the hostname set in/etc/hosts)
gateway=192.168.0.1 (Sets the IP address of the gateway for the native connection. )

VM Cloning linux system after connecting network

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.