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.
- Easy configuration of Linux dual-nic virtual Routing
- How to compile Linux/Unix code in Windows
- In the future, it will be a Linux virtual technology.
- Choose Linux free Virtual Machine
- Teach you the hard drive read/write speed in Linux