CentOS6.5 cannot connect to the network under VMware
The main reason CentOS6.5 cannot connect to the network under VMware Is That The eth0 file has an incorrect address.
The correct configuration method is as follows:
1. Make sure that the virtual Network Adapter (VMware Network Adapter VMnet8) is enabled and then enters
Enter "ipconfig" and find the ipv4 address of VMware Network Adapter VMnet8, for example, 192.168.78.1)
2. Check whether the network configuration of CentOS in the virtual machine is NAT
3. Modify the/etc/sysconfig/network-scprits/eth0 file.
The broadcast ip address must be the same as the ip address in VMNET8 and the last IP address must be 255.
The IP address of IPADDR must be the same as the ip address in VMNET8, And the last IP address must be 1 ~ Any value of 255
The IP address value of GETWAY must be the same as that of VMNET8 and the last one must be 2.
Eg:
If my local ip address is 192.168.78.1, the correct configuration is:
BROADCAST = 192.168.78.255
IPADDR = 192.168.78.1
GETWAY = 192.168.78.2
4. After the configuration is complete, enter the command "service network restart" to restart the network service.
5. Run the "ping" command to check whether the network can be connected.