How do I make the operating system in a VMware virtual machine available to the Internet?

Source: Internet
Author: User
 

In the first case:

Host using PPPoE dial-up Internet

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 61.147.37.1

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

In the second case:

Within the Unit Local area network

"Ethernet" to choose "Bridge" way

In this way, the virtual machine is the same as a real machine, when IP is set to another available IP on the LAN

Gateway: The address of the LAN gateway server (or the address of the router)

DNS: Setting as the DNS server address for an ISP

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.