Workarounds for VMware virtual machines that cannot be connected to the Internet

Source: Internet
Author: User

After opening the virtual machine today, I found that the link is not network, the virtual machine configuration is not a problem, so I searched the internet

VMware Three Internet connection settings:

1.bridge:
Use Vmnet0 by default
The IP settings of the virtual machine are not used with the host network segment, the rest is the same as the host:
For example, the host IP is 192.168.2.46, and the virtual machine IP is set to 192.168.2.254. Netmask,broadcast,gateway,dns is the same as the host to implement virtual machine host virtual machine Internet communication.
2.nat:
Use Vmnet8 by default
DHCP: DHCP is the default state.
As long as the physical function is connected to the network, the virtual machine can be connected.
Manual settings:
IP settings and vmnet8, Gateway set to VMNET8 Gateway (xxx.xxx.xxx.2) can be found in the Vmnet8 gateway, usually edit->virtual network setting- >host Virtual Network Mapping, find VMNET8, click the left arrow icon, choose NAT, you can see that the Gateway Netmask,broadcast settings are the same as the VMNET8, the DNS settings are the same as the host. (The DNS province can also, he will automatically let the Gateway conversion parsing)
For example Vmnet8 ip:192.168.187.1 gw:192.168.187.1.2 here is the system default and cannot be changed.
Virtual machine settings: ip:192.168.187.254 gw:192.168.187.1.2 DNS null) or: 202.102.224.68
3.host-only:
Use Vmnet1 by default
DHCP: DHCP is the default
Make up a virtual network isolated from the physical network
But one thing is that you can communicate with the host machine.
Of course you can specify the IP manually, but the network header to select VMNET1 IP

I use the connection method is the second, because it was manually set up the IP, the view after the discovery is that the virtual machine and VMNET8 not the same network segment, change the IP settings to reconnect after the normal Internet.

But in the virtual machine to run the system for the first time, I manually configured the IP, at that time can be connected to the network, in the second run after shutting down the situation is unable to access the Internet, after searching the internet did not find out about this point.

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.