Reprint please indicate the source: http://blog.csdn.net/l1028386804/article/details/47174371
VMware is a virtual machine, supporting a variety of popular systems, we can install other systems in the VMware virtual machine to meet individual needs, but after installing CentOS6.5 for VMware, unable to connect to the network, this is what caused it. Here is a description of the next VMware CentOS6.5 can not connect to the network solution. main reasons:
The eth0 file is configured with an incorrect address. The correct configuration method is as follows: 1. Set up virtual network card
Make sure that the virtual NIC (VMware network Adapter VMnet8) is turned on and then loses in Windows command line
In "ipconfig", locate the IPv4 address of the VMware network Adapter VMnet8 for example: 192.168.106.1)
2. See if the CentOS network configuration in the virtual machine is Nat
3. Modify the/etc/sysconfig/network-scprits/ifcfg-eth0 file
Broadcast IP values are consistent with the IP in VMNET8 and the last one must be 255
The IP value of the IPADDR is consistent with the IP in VMNET8 and the last arbitrary value must be 1~255
Getway IP values are consistent with the IP in VMNET8 and the last one is 2
eg:
My native IP is 192.168.106.1, and the correct configuration is:
broadcast=192.168.106.255
ipaddr=192.168.106.1
gateway=192.168.106.2 4. Restart Network Services
When you are finished configuring, enter the command "service network restart" To restart the network service. 5. Through the "ping" command to see if the network can be.
The above is the CentOS6.5 of VMware can not connect the network solution Introduction, if you also encountered the same problem, may wish to try to use the method described in this article to resolve the eth0 file to reconfigure.