Linux Virtual machine Centos6.5:nat mode is not able to access the Internet __linux

Source: Internet
Author: User

Environment:

Linux virtual machine centos6.5, using Nat method.


Description

1, because the need to use the static configuration, and not only to use the DHCP method.

2, first look at the virtual machine software vmware several settings:

If you want to modify, click on the button circled in the diagram.

And look at the virtual machine settings.

The next point, Nat mode, found that the host and virtual machines can ping each other, the host can surf the Internet, but the virtual machine online display abnormal: server can not reach

Because the static configuration is used to ensure that the virtual machine address is unchanged, the problem of configuration is suspected. After repeatedly looking up the data, found in the/etc/sysconfig/network-scripts directory

Ifcfg-eth0 the configuration of the file, you need to add DNS1 settings


After this setup, you can surf the Internet via the virtual machine's Firefox browser. Note that the above is to resolve the normal communication between the host and the virtual machine, but not the Internet. If the communication between the two is not normal, then the communication problem should be resolved first.

Special emphasis: Gateway settings, if the settings and Windows as the Internet can not be, set to 192.168.136.2 is the right path




Related Article

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.