Linux operating systems in VMware virtual machines can access the Internet

Source: Internet
Author: User

Everyone in VMware playing Linux generally want to be able to go directly to the Internet, this time I give you introduce several methods, my computer is the use of telecommunications campus card, that is, the extranet, if your computer is the same, I highly recommend you use method two.

Method One: Nat Way

1, first shut down the virtual machine operating system, back to the virtual machine main interface
Double-click the "Ethernet" at the top right of the main interface to pop up the "Network Adapter" dialog box and select NAT

2, start the virtual machine operating system, set up IP for dynamic access, that is, through DHCP.

At this time the virtual machine operating system with the host IP, the host can access the Internet, then the virtual machine can also.

Method Two: Host-only Way

1, first shut down the virtual machine operating system, back to the virtual machine main interface
Double-click the "Ethernet" at the top right of the main interface to pop up the "Network Adapter" dialog box and select "Host-only"

2. Right-click the dial-up connection, turn on the PPPoE connection properties, select Advanced, and select "Allow other network users to connect through this computer's Internet connection"
In the Home Network Drop-down box, select VMware Network Adapter VMnet1
VMware Network Adapter VMnet1 virtual NIC IP automatically becomes 192.168.0.1
At this point ping 192.168.0.1 can pass.

3, into VMware, start the Linux operating system
Using the Netconfig command
IP, set to 192.168.0.2 (with virtual network card on the same network segment)
Gateway for 192.168.0.1, VMware network Adapter VMNET1 virtual network adapter IP address
DNS is set to the ISP's DNS, such as 192.168.0.5

4, restart the network:
#service Network Restart

At this point, as long as the host dial-up Internet, the virtual machine system can be online, and no longer dial

Method Three: Bridge way

In this way, the virtual machine is closest to a real machine

1, first shut down the virtual machine operating system, back to the virtual machine main interface
Double-click the "Ethernet" at the top right of the main interface to pop up the "Network Adapter" dialog box and select "Bridge"

2, host the installation of Sygate or Wingate Proxy Server

3, set the virtual machine proxy server for host IP can

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.