If you are looking for software to use, go to Huajun Software Park! software release AI product list
Location: Home pageTutorial strategyTutorialComputer software tutorials Ce... in VMware

What should I do if CentOS6.5 cannot connect to the network in VMware?

Author: Uchiha Sasuke Date: 2017-05-10

VMware Workstation
VMware Workstation-17.5.1

System assistance Storage size: 615.58MB Time: 2022-12-06

Software introduction: VMware Workstation is a powerful desktop virtual computer software. If you need a virtual machine product, you might as well download...

Download now

VMware is a virtual machine that supports various popular systems. After installing CentOS6.5 for VMware, I cannot connect to the network. What is the reason? Regarding the solution to this problem, you can see what is introduced below.

The eth0 file is configured with an incorrect address.

The correct configuration method is as follows:

1. Make sure that the virtual network card (VMware Network Adapter VMnet8) is turned on, and then enter

Enter "ipconfig" and find the ipv4 address of VMware Network Adapter VMnet8 (for example: 192.168.78.1)

 

2. Check whether the CentOS network configuration in the virtual machine is NAT

53-1501151616144Z.jpg

3. Modify the /etc/sysconfig/network-scprits/eth0 file

The IP value of BROADCAST must be consistent with the IP in VMNET8 and the last digit must be 255

The IP value of IPADDR must be consistent with the IP in VMNET8 and the last digit must be any value from 1 to 255.

The IP value of GETWAY must be consistent with the IP in VMNET8 and the last digit is 2

e.g.:

My local IP is 192.168.78.1, then the correct configuration is:

BROADCAST=192.168.78.255

IPADDR=192.168.78.1

GETWAY=192.168.78.2

4. After the configuration is completed, please enter the command "service network restart" to restart the network service.

5. Use the "ping" command to check whether the Internet is available.

The above is the editor's summary of the solution to the problem that CentOS 6.5 cannot connect to the network in VMware. If you also encounter the same problem, you might as well try to use the method introduced in this article to solve it and reconfigure the eth0 file.

Related articles