Ubuntu Internet configuration in VMware in the context of Ruijie Internet

Source: Internet
Author: User

The school's network is the use of Ruijie client as a certification, the general known Ruijie is required to be set to obtain IP dynamically, if set to static IP is unable to surf the internet. Ubuntu12.04 installed with virtual machine if set to static Ip+ bridge method found that there is no way to surf the internet, looking for a long time on the internet did not have a good tutorial, so toss in the morning to finally succeed in the virtual machine in the environment of the Ubuntu Internet access, is recorded as follows, if there is a mistake!

My environment is as follows:

Windows7 + VMWare9.0.2 + Ubuntu12.04 + Ruijie 4.10

1. Open the window's network and sharing center--Change the adapter settings to disable the virtual machine's two virtual Nic VMnet1, VMnet8:

2, start Ubuntu, in the virtual machine settings, the virtual network card connection mode is selected as a NAT mode:

3. Open the Control Panel in Windows-Administrative tools-services, find the following two items and make sure they are turned on (for convenience set to "Auto" start):

4. In Ubuntu, enter the following command to configure the network:

sudo vi/etc/network/interfaces

Enter the password entered after entering the edit configuration file interface, the content is modified as follows:

Auto loiface lo inet loopbackauto eth0iface eth0 inet DHCP

The first two sentences are the configuration of the local loopback device ignore him, the next is the first Ethernet card eth0 configuration, directly with the DHCP dynamic acquisition of IP.

Edit complete after saving exit, enter a command to restart the network:

Sudo/etc/init.d/networking force-/etc/init.d/networking Restart

5, OK, if you are not assured that you can restart the network card:

sudo ifconfig eth0 downsudo ifconfig eth0 up

6, configure the DNS server (if you have previously set up can skip this step), enter:

sudo vi/etc/resolvconf/resolv.conf.d/base

Then, in the open file, add:

NameServer 202.96.128.68nameserver 8.8.8.8

(Of course, DNS server you can find your own local faster DNS server IP.) )

After editing is complete, save to exit and restart the DNS service:

sudo/etc/init.d/resolvconf restart

6. Check your network settings:

Ifconfig

If there is eth0 and the IP is obtained, the representative succeeds, you can try to ping a URL:

Ping cnblogs.com

If you can ping the pass to represent success:

Bring your own Firefox browser:

This article is for bloggers original articles, reproduced please indicate the source

Ubuntu Internet configuration in VMware in the context of Ruijie 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.