In the VM, UBUNTU can ping the Internet browser and cannot access the Internet.

Source: Internet
Author: User

I installed ubuntu9.10 in VMware Workstation, but found that I could not access the Internet, but could ping the IP address of the internet. I tried a variety of ways to access the Internet through a browser. After suffering for dozens of minutes, I finally found a solution.

The solution is as follows: Set the network connection mode of ubuntu to Nat

Nat connections are usually local connections 3

Set the sharing of local connection 1 to local connection 3

The IP address of local connection 3 is as follows:

The IP address, subnet mask, and gateway configured in Ubuntu are as follows: Sudo gedit/etc/Network/interfaces <br/> auto eth0 <br/> iface eth0 Inet static <br/> address 192.168.137.3 <br/> netmask 255.255.255.0 <br/> gateway 192.168.137.1Set DNS: Sudo gedit/etc/resolv. conf <br/> nameserver 202.120.80.2Restart the network configuration: sudo/etc/init. d/networking restart
Then you can access the Internet.
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.