in the CentOS Linux cloned from VMware
post-creation symptoms : Use ifconfig after start , find no IP address, only loopback address is 127.0.0.1,
the MAC address and host name are the same as the source host (the source host is manually configured IP).
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/E5/wKiom1ggfavAUdSwAAAUhTAtPds190.png "title=" 1.png " alt= "Wkiom1ggfavaudswaaauhtatpds190.png"/>
Any execution of the following commands is useless anyway:
/etc/init.d/network restart
Ifup eth0
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/89/E1/wKioL1ggfbaAhEQDAAAHNpbH3gA524.png "title=" 2.png " alt= "Wkiol1ggfbaaheqdaaahnpbh3ga524.png"/>
Failure Phenomena :
Service Network restart
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/89/E2/wKioL1ggfcCwS7z5AAATCJ0jNyI524.png "title=" 3.png " alt= "Wkiol1ggfccws7z5aaatcj0jnyi524.png"/>
Solutions :
The first step:
edit eth0 configuration file:vi/etc/sysconfig/network-scripts/ifcfg-eth0, delete HWADDR the lines of the address and the UUID line are as follows:
hwaddr=00:0c:29:08:28:9f
Uuid=cee39dbb-6a10-4425-9daf-768b6e79a9c9
Hint: Of course you can also according to the actual HWADDR and UUID are modified without deleting.
Step Two:
# Rm-rf/etc/udev/rules.d/70-persistent-net.rules
# reboot .....------.
# Service Network Restart
Shutting down loopback insterface: [OK]
Bringing up loopback insterface: [OK]
Bringing Up interface eth0: [OK]
the results after the restart are shown below :
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/89/E2/wKioL1ggfc3QnnmrAAAqJVruvRI206.png "title=" 4.png " alt= "Wkiol1ggfc3qnnmraaaqjvruvri206.png"/>
setting up a local network adapter :
describe the document; Device=eth0 nic corresponding device alias, such as ifcfg-eth0 first NIC
Bootproto=static
How the Nic obtains the IP address,
static IP address
DHCP( get IPvia DHCP protocol)
Bootip IP addresses obtained through the BOOTP protocol
broadcast=192.168.0.255 Subnet broadcast address
Hwaddr=00:50:56:8e:47:ee Network card Physical Address
ipaddr=12.168.1.117 network card IP address
Ipv6init=no whether to enable
Ipv6ipv6_autoconf=no
netmask=255.255.255.0 network card corresponds to Netmask
network=192.168.1.0 Network address of the NIC
Onboot=yes If this network interface is set when the system starts, when set to Yes , the device is activated when the system starts. The default setting is Yes
As for the back Type and UUID This will not be the tube, the types of the network card
Eth0 nic file modified:
# Cat/etc/sysconfig/network-scripts/ifcfg-eth0
# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Type=ethernet
Onboot=yes
Nm_controlled=yes
Bootproto=none
ipaddr=192.168.44.131
netmask=255.255.255.0
gateway=192.168.44.1
Ipv6init=no
Userctl=no
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/89/E2/wKioL1ggiXOzRnIsAABOCG8t-xE553.png "title=" 5.png " alt= "Wkiol1ggixozrnisaabocg8t-xe553.png"/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/E5/wKiom1ggiYHxoITeAAAnx6b9_hg276.png "title=" 6.png " alt= "Wkiom1ggiyhxoiteaaanx6b9_hg276.png"/>
VMware clone CENTOS6. 5 problem with virtual machine NIC not starting