Easy understanding of Linux VMware Internet access settings

Source: Internet
Author: User

Do you want to stick to the Linux operating system. If you are an old Linux user. The questions you have explained here will be helpful for your Linux VMware Internet access settings. We hope that you can easily master the Linux VMware Internet access settings through this article.

First case: the host uses PPPOE for dial-up Internet access

Method 1: NAT

1. First shut down the operating system in the VM and return to the VM's main interface
Double-click "Ethernet" in the upper-right corner of the main interface. The "Network Adapter" dialog box is displayed. Select "NAT"

2. Start the virtual machine operating system and set the IP address to dynamic retrieval, which is obtained through DHCP.

In this case, the operating system in the virtual machine uses the IP address of the host. If the host can access the Internet, the virtual machine can also.

Method 2: Host-only

1. First shut down the operating system in the VM and return to the VM's main interface
Double-click "Ethernet" in the upper-right corner of the main interface. The "Network Adapter" dialog box is displayed. Select "Host-only"

2. Right-click the dial-up INTERNET connection, open the PPPOE connection attribute, select "advanced", and select "allow other network users to connect through the INTERNET connection of this computer"
In the home Network drop-down box, select VMware Network Adapter VMnet1"
The IP address of the VMware Network Adapter VMnet1 virtual Nic is automatically changed to 192.168.0.1.
Ping 192.168.0.1.

3. Go to vmware and start the linux operating system.
Use netconfig command
Set the IP address to 192.168.0.2 in the same network segment as the virtual network card)
The gateway is 192.168.0.1, that is, the IP address of the VMware Network Adapter VMnet1 virtual Nic.
Set DNS to ISP, for example, 61.147.37.1

4. Restart the network:
# Service network restart

In this case, the system of the virtual machine can access the Internet after the host dials the internet, and no more dialing is required.

Method 3: Bridge

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

1. First shut down the operating system in the VM and return to the VM's main interface
Double-click "Ethernet" in the upper-right corner of the main interface. The "Network Adapter" dialog box is displayed. Select "Bridge"

2. Install proxy servers such as sygate or wingate on the host

3. Set the proxy server of the virtual machine to the IP address of the host machine.

Case 2: Within the LAN

Select "Bridge" for "Ethernet"
In this way, the virtual machine is the same as a real machine. In this case, set the IP address to another available IP address in the LAN.
Gateway: the IP address of the LAN gateway server or the IP address of the router)
DNS: set as the DNS server address of the ISP

Complete the Linux VMware Internet access settings and make it easy to access the Internet.

  1. Easy configuration of Linux dual-nic virtual Routing
  2. How to compile Linux/Unix code in Windows
  3. In the future, it will be a Linux virtual technology.
  4. Choose Linux free Virtual Machine
  5. Teach you the hard drive read/write speed in Linux

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.