CentOS6.5 cannot connect to the network under VMware

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.