Linux clone virtual machine network

1, modify the physical NIC:

vi /etc/udev/rules.d/70-persistent-net.rules

Delete the line, the last name = 'eth1' into eth0

 

2, modify the network IP:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE="eth0"

BOOTPROTO="static"

IPV6INIT="yes"

NM_CONTROLLED="yes"

ONBOOT="yes"

TYPE="Ethernet"

IPADDR="192.168.76.134"

GATEWAY = "192.168.76.1" // gateway card

NETMASK="255.255.255.0"

DNS1 = "192.168.76.1" // gateway and consistent

3, modify the host name:

vi /etc/sysconfig/network

HOSTNAME=hdp-02

Published 18 original articles · won praise 0 · Views 343

Guess you like

Origin blog.csdn.net/Mr_ye931/article/details/105336214