Solution to the problem that Ubuntu installed on VMware cannot access the Internet

Source: Internet
Author: User
This method may not apply to all situations. I have installed Ubuntu10.10 on VMware. The network connection adopts the NAT method and the Internet access has been okay. After kernel restart was upgraded yesterday, I suddenly couldn't access the internet. I searched for some information. After each restart, I entered sudodhclient to obtain the ip address again, but in this case, I had to manually enter sudodhclient after each restart, you can configure the network as dhcp to dynamically obtain the ip address. The specific method is as follows:

This method may not apply to all situations. I have installed Ubuntu 10.10 On VMware. The network connection adopts the NAT method and the Internet access has been okay.

After kernel restart was upgraded yesterday, I suddenly failed to access the Internet. I searched for some information. After each restart, I entered sudo dhclient and re-obtained the ip address to access the Internet, in this case, you need to manually enter sudo dhclient after each system restart, and then find the corresponding setting method. You can configure the network to dynamically obtain ip addresses for dhcp. The specific method is as follows:

Modify the/etc/network/interfaces file as follows:

# The loopback network interface

Auto lo

Iface lo inet loopback

# The primary network interface

Auto eth0

Iface eth0 inet dhcp

Restart the system after modification. To avoid errors, back up the interface file before modification.

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.