In Vm, Linux shares the Internet with the host's XP system (through NAT)

Source: Internet
Author: User

Set local connection:

After the VM is installed, there will be two more virtual network cards, for example:

Set the local connection to Internet sharing, and enter the IP address that can access the Internet normally. Configure vmnet8 to automatically obtain the IP address.

Click the NIC-like icon in the lower-right corner of the VM software and set it in the interface:


Principle: Think of a host as a vro (essentially). A local connection is the WAN port connecting the vro to the Internet, while vmnet8 is the internal port of the vro. The NAT Function is implemented by VM software.

Vmnet1The IP address will be obtained through DHCP. You can stop it without having to worry about it!

In Linux, choose system Settings> network. Click the page shown in the figure below:


Double-click the icon to display the following interface (settings ):


Select "automatically obtain IP Address", OK! Restart the Linux system.

Open your browser and you will be able to access the Internet...


From: http://hi.baidu.com/purplecalla122/blog/item/98eb80de01bfbbe177c638fa.html

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.