Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

guest VM can't get IP address with bridge mode

I have one guest VM(windows 7) running on VMWare in the MAC OSX host. When I use "NAT" mode, the guest VM has no problem getting IP etc. to connect to internet. However, when I change to use "bridge" mode, the guest OS can't connect to internet. How to fix this?

  1. The guest VM should connect to the vmnet0 in the host.
  2. The vmnet0 bridges the guest VM to my physical router.
  3. Since both the guest VM and the physical router have DHCP turned on, the guest VM should be able to retrieve the IP, gateway but the guest VM only has IP address and couldn't get on internet.
like image 350
vaj oja Avatar asked Jul 21 '15 05:07

vaj oja


People also ask

Why bridged connection not working VMWare?

One way to fix this issue is to set up a specific virtual network that you know is working. Wmware is bridging to the wrong adapter – If you leave the Bridging settings to Automatic, this issue will occur if VMnet0 ends up Bridging to a network adapter that is not currently maintaining your internet connection.

What is the difference between Nat and bridged in VMWare?

With bridged networking, the VM is accessible from the network. "NAT" on the other hand shares the hosts network connection by assigning the VMs an IP address from a private network, and translates network requests from the guest. This way the host appears as a single system to the network.

How do virtual machines get IP addresses?

Most commonly used. A VM has one primary IP address per network adapter. The primary IP address is assigned to the VM by the automatic or manual network it's attached to. Use the primary IP to access the VM from other machines connected to the same network.


2 Answers

I had the same issue with VMWare Workstation 11. It apparently started happening AFTER I upgraded to: 11.1.2 build-2780323 although it may have been the addition of a Juniper or Hamachi network client.

I had used "Bridged" for each VM but after the upgrade, I encountered connectivity problems. After I set the NIC to NAT, it started working.

Here is how I was able to resolve the issue and start using "Bridged" network adapter again:

  1. Go to File -> Edit -> Virtual Network Editor
  2. Use the Change Settings" button
  3. Highlight the first selection VMnet0
  4. Under VMnet Information choose the "Automatic Setting" button
  5. You will get a list of all of the adapters on your system.
  6. Uncheck ones that might be causing the issue.
  7. Click "Apply" then "OK"

Now, the "Bridged" setting should work or at least it did for me. Go back and change any that you had changed to NAT to get them working.

like image 88
LenChaney Avatar answered Sep 20 '22 19:09

LenChaney


I had this problem. Seems after I had installed wireshark on my host, the bridge configure adapters had the npcap loopback adapter checked. When I unchecked that, it started working.

like image 38
rocketship88 Avatar answered Sep 20 '22 19:09

rocketship88