How to solve the problem of unable to connect to the network after installing centos6.5 for VMware

Time:2021-5-3

VMware is a virtual machine, supporting a variety of popular systems. We can install other systems in VMware virtual machine to meet personal needs, but after installing centos6.5 for VMware, we can’t connect to the network. What’s the reason? Here is a brief introduction to the solution of centos6.5 unable to connect to the network in VMware.

main cause:

The eth0 file has an incorrect address configured.

The correct configuration method is as follows:

1. Make sure that the VMware network adapter (VMnet8) is turned on, and then enter it in the command line of windows

Enter “ipconfig” to find the IPv4 address of VMware network adapter VMnet8 (for example: 192.168.78.1)

 VMware中CentOS6.5网络连接不上怎么办?

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

 VMware中CentOS6.5网络连接不上怎么办?

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

The IP value of broadcast should be consistent with that of VMnet8, and the last bit must be 255

The IP value of IPADDR should be consistent with that of VMnet8, and the last bit must be any value from 1 to 255

The IP value of Getway should be consistent with that of VMnet8, and the last bit should be 2

  eg:

The IP of my machine is 192.168.78.1, so the correct configuration is as follows:

  BROADCAST=192.168.78.255

  IPADDR=192.168.78.1

  GETWAY=192.168.78.2

4. After configuration, please enter the command “service network restart” to restart the network service.

5. Use the “Ping” command to see if it can be connected to the Internet.

The above is the solution of centos6.5 unable to connect to the network in VMware. If you also encounter the same problem, you may as well try to use the method described in this article to solve it and reconfigure the eth0 file.

Recommended Today

Large scale distributed storage system: Principle Analysis and architecture practice.pdf

Focus on “Java back end technology stack” Reply to “interview” for full interview information Distributed storage system, which stores data in multiple independent devices. Traditional network storage system uses centralized storage server to store all data. Storage server becomes the bottleneck of system performance and the focus of reliability and security, which can not meet […]