Accessing the Internet through a vro in ubuntu 11.10

Source: Internet
Author: User

I used ubuntu 11.10 to access the Internet through a vro. I found that I was unable to access the Internet through a network cable. I used to only use a wireless route. Yes, so I searched for it online. The solution is as follows: modify two files. Preparation: in windows, view the ip address, default gateway, subnet mask, dns, and other information that can access the Internet normally. My ip addresses: 192.168.1.101 Default Gateway: 192.168.1.1 subnet mask: 255.255.255.0 dns: 219.239.26.42 1. run sudo gedit/etc/network/interfaces in the terminal to modify the file, enter the following content in the file, save and exit auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.1.101gateway 255.255.255.0 2. modify another file under the terminal. Enter sudo gedit/etc/resolv. conf in this file, enter the following content and save and exit # Generated by NetworkManagernameserver 219.239.26.42 3. in the last step, enter the following command in the terminal to restart the network connection sudo/etc/init. d/networking restart terminal can exit the terminal and access the internet.

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.