VMware bridged networking is a type of network connection which allows the virtual machine to act as a unique machine on the network in which other physical machines exist. A dedicated IP is allocated to the virtual machine connected in bridged mode. In this article I’ll show you how to configure your VMware machines to work in bridged networking mode and some common problems that you might encounter while doing this. Bridged network setup is the easiest way to give virtual machine access to other machines on the network. The advantage of this setup is all virtual machines can access the other physical computers on that network and the other machines can also access the virtual machines irrespective of the host computer’s firewall configurations. Before you continue reading this make sure you read the articles Components of VMware Network and Using VMware Network Editor (vmnetcfg.exe)
The Requirements for a bridged network
- A provision for allocating a dedicated IP for all the virtual machines
- The host (physical computer) network adapter should be connected
- VMware bridge protocol enabled for the host adapter
- DHCP server (optional)
Let me explain each of the requirements clearly. A dedicated IP in the requirement, because if you have the provision to allocate only 200 IP addresses to the machines on a network and you add a couple of Virtual Machines to the network you can’t expect it to share the IP address of the host network adapter. So if you can’t allocate a dedicated IP address the its better you opt for Network Address Translation (NAT) type of virtual network.
Even though the virtual machines act as a separate entity it communicates with the rest of the physical network through the host machine’s network adapter so the network card of your physical machine hosting the virtual machines should have its network card connected to the rest of the network.
The virtual machine communicates through the host computer’s network interface using a protocol named VMware Bridge protocol, so this option must be enabled for that particular host network adapter by editing the network connection’s properties
Finally the DHCP part, don’t expect the virtual machine to allocate an IP address for itself because it can’t. Unlike NAT or Host-Only configurations which have a virtual DHCP server this doesn’t and you’ll either have to manually specify the IP addresses or setup a DHCP server on your network.
Bridged Networking setup
The diagram displayed below shows how physical and virtual machines are connected in the network.
The network layout shown is what I’ll be setting up in this tutorial. The IP addresses are assigned in the range 10.0.0.x so that it is easy to remember and type for newbies. The green box shown inside Host machine 1 is the network adapter, note that there are two lines the one on the left connects the virtual machines to the rest of the network via the host adapter using vmware bridge protocol. Do not get confused and think the machine has two network interfaces, it has only one.
Step 1:- Select the Network Connection Type on the VM
Select the virtual machine you want to configure, select “Edit virtual machine settings” if you already have a network adapter on this machine select the network connection as “Bridged” an option “Replicate physical network connection state” appears. If you select this option the IP address for this VM is automatically renewed whenever the network changes. Select this option if your setting up this VM on a mobile device connected to a Wi-Fi network which will be moved from network to network you can enable this else just leave it as it is.
Step 2:- Assign static IP addresses or setup a DHCP server
Assign a static IP address to each system on the network including the machine hosting the VMs. If you don’t want to manually enter the IP addresses you can setup a DHCP server. There is no need of setting up a full fledged computer as a DHCP server most routers and modems have DHCP built into them, so just connecting it with your network will do the job. Before powering on the virtual machine make sure the host network adapter has a valid IP address using which it can communicate in the network. If the host computer itself is unable to communicate with the rest of the network then its no use to power on the VM and check for its connectivity.
After ensuring the host adapter has a proper and valid IP address power on the Virtual Machine. After it boots into the Operating System check if the network adapter is connected, if not go to the VM menu -> Removable Devices -> Network Adapter click connect. Now if you have a DHCP server running on the network an IP will automatically be assigned else an Auto Private IP address will be assigned. You’ll have to open the network connetcion properties and assign a valid IP address for it.
Step 3:- Test the Network and Troubleshoot it
After the VMs have been assigned an IP address test whether they can communicate with other computers on the network by pinging them. Similarly from other physical machines try pinging the virtual machines. If everything works you have a full fledged network consisting of both virtual and real machines. But sometimes you may encounter a few problems along the way and common errors are explained here.
The network bridge on device VMnet0 is temporarily down because the bridged network interface….
You might see this error on the bottom right corner when you try to connect the network adapter of the virtual machine. This occurs if no network cable is connected to the Ethernet port of the host machine. Even though the device is shown connected there is not actual connection and no communication will take place.
Everything is fine but virtual machines are not able to communicate
If everything seems fine, there are no errors displayed but the VMs are not able to communicate then the following things should be checked.
- The network interface to which vmnet0 is bridged. If there are multiple network adapters on the host machine the virtual network might be bridged to the wrong network. To eliminate this problem disable the “VMware bridge protocol” option by going to the connection properties of the network interfaces which should not be used for bridging.
- IP address for the virtual machine is set incorrectly. There is a possibility of mistyping the IP address if you entered it manually, check if this is correct and also check the subnet mask address.
- Wrong option selected under network connection. While setting up the virtual machine you might have selected a network connection option other than “Bridged” check for this and change it to bridged if this is so.
- Finally there might be a firewall running in the virtual machine which is blocking the network data transfer, check for this and create firewall rules appropriately.
Suresh says
Hi,
Thanks for the good tutorial..
I am trying to do the same setup you described above. But our corporate DHCP server is refusing to allocate an IP for my virtual guest which is windows 8. My host is windows XP. On the the wireshark network tracing I can see my virtual broadcasting IP request with correct MAC address. But no reply from any DHCP servers.
Any idea why that could be.
I can think of 2 reasons.
Maybe DHCP server is trying to match up IP Request with MAC address and since my virtual mac address is not in the dhcp server it is refusing to reply.
OR
Since both my Host (xp) and Guest(Windows) are using the same NIC, and the IP request goes out on the same port, dhcp server think it can’t bind to the same port again to allocate an IP for my virtual since it has already allocated an IP properly for my Host(XP).
I am not sure what else could be wrong. Have you got any other thoughts what else could be wrong? Appriciate you help on this.
Thanks
Suresh
A.Jesin says
Hello Suresh,
On which machine did you run Wireshark ? I suggest you run Wireshark on a different physical machine which is in the same broadcast domain as the machine running VMware.
This way you can make sure DHCP broadcast packets are coming past the physical machine.
I’ve had similar problems when using VMware bridged networking on Windows 7, Comodo Personal Firewall was blocking all packets from the VM. So try disabling Windows firewall and other firewalls if any on the Windows 8 machine.
My VM running in bridged networking gets an IP address from a Netgear router connected to the physical machine so this setup is possible.
Suresh says
I ran the Wireshark on my host machine (XP). Yes, like you mentioned, maybe the IP request may not be coming past the physical machine. I will try to monitor it outside the machine and see what I get.
Thanks
Suresh
Suresh says
HI Jesin,
Thanks for the great advice. Yes it was the firewall not allowing the IP request to go out of the adapter. I confirmed this from the network trace outside the adapter.
After I turned off the firewall, It is WORKING now.
Thanks for the help again.
Suresh
A.Jesin says
You’re welcome Suresh, I’m glad it worked 🙂
Ravi singh says
hi ,
i have installed vmware workstation 7.1.6 at windows 7 (physical machine) and i have installed two operating systems in vmware , i have made bridge network and internally both operating system was accessible after manually giving IP , but i can’t able to access from physical machine at my single system , no other physical system is connected with it
please help me how to access or ping from my physical machine to both operating system(VMware)
Jesin says
Hi Ravi,
You’ve mentioned that no other physical machine is connected to your system which means the network card of your system will be “down” so “bridged” networking won’t work.
Instead choose “Host-only” networking mode and find the IP address range of a network adapter named “VMNet1” in the “Network and sharing center” of your physical machine.
Mostly the IP will be in the network 192.168.59.0/24 so assign these IP address ranges in your Virtual Machines and you’re good to go.
Sheffin says
ITs not working still and my network icon in the two virtual systems is a cross system icon
Umang Mehta says
Thank You for the article. It help me out a lot. I need to understand VMware WKS Host only and NAT and It’s Dhcp. CAn you write an article on Vmware NAT and Host only explaining with figures and example. Thank You
Jesin says
Hello Umang,
You are most welcome. Surely I’ll write an article on those topics in the coming week.
To get notified when I publish a new topic you can either subscribe via email or like this blog’s page on Facebook or Google+
Nuur Ahmed says
Hi Jesin Hope you are doing fine. I am newbie to all virtual machines and i wanted to ask about my situation.
I want to test bandwith managerment system before i can put it live on my network as WISP provider but i am having problem with the configuration.
I have windows XP host and i want to install the freeBDS software which is stand alone on the virtual machine normally it has to have 2 NICS one LAN and WAN. Meaning the WAN port will be used for the internet and LAN is for the local machines so the server can restrict and manage the bandwith of the local machines.
My question is which networking should i use and best so i can see how this works before live deployment.
Thanks
Jesin says
Hi Nuur Ahmed,
In this case you need to use multiple networking types. The LAN port of the VM should be in Host-Only mode and as for the WAN port it depends on what internet connection you are using.
If your Windows XP host connects to a modem using Ethernet cables and is assigned a private IP address you should use Bridged networking mode on the WAN interface of the VM.
On the other hand if the host is directly assigned a public IP address use NAT networking.
Regards,
Jesin
Nuur Ahmed says
Hi Sir thanks for the email.
I am using my laptop which is on windows Xp and have installed the Vmware inorder to test the bandwith management system and my network is as follows
I am connected to Netgear Router from a cable company which is online and does not need any user and password also my laptop is connected both using Ethernet and wireless.
So should i try Host adapter on LAN and Bridged on the WAN?
Thanks
Jesin says
When your laptop is connected to your Netgear router using an Ethernet Cable use Host-Only on LAN and Bridged on WAN.
But if you’re using the laptop’s wireless interface use NAT for WAN.
Spk says
Hi,
i have a little complex environment.
I need 3 constraints in my configuration:
– Physical interface is a PCI/WiFi ethernet card (D-Link DWL G510)
– GNS3 using Cloud, and so adding a Loopback interface bridged to WiFi nic using “Microsoft Network Bridge”
– VM running in bridged (vmnet0) mode linked to the “Microsoft Network Bridge”
Physical OS: Windows 7 x64
vmware: Workstation 9
Virtual Machine used for test: Ubuntu Linux 11.04 connected to eth0 via DHCP and linked to vmnet0
Problem:
The VM can’t ping other physical machine of the same ethernet network but receive the IP address from the physical router (CISCO 837)
Whith wireshark opened i done a ping test to another physical machine:
– The packet going outside the VM (echo request) has src mac address equal to vmware-aa:bb:cc and the correct IP
– The packet going inside the VM (echo reply) has dst mac address of the “Microsoft Network Bridge” and not the vmware-aa:bb:cc
On the other physical machine wireshark display as src mac-address “Microsoft Network Bridge” of the packet going inside (echo request) and the same mac address in the outgoing frame (echo reply)
This sound strange for me but i understand why VM can’t communicate correctly. Different MAC address on the packet.
Do you know something about?
Somebody is in the same problem ?
Sorry for my english 😐
Thanks
Bye.
gunjan says
hii
i am having windows 7 as host and RHEL 4 in VMware .I want to do telnet from windows to terminal i have select the bridge network in VMware .But their is no VMnet0 in windows network adapter..SO plz tell how i vl configure my ip
Connecting To 192.168.1.3…Could not open connection to the host, on port 23: Connect failed
Jesin A says
Hi Gunjan,
vmnet0 is bridging adapter so it isn’t visible in the network adapters list.
Is a telnet server package installed in RHEL4?
Try this in the RHEL4 VM
and see if you get the necessary response.
Kushal says
Hi Jesin.
I am using VMWare Workstation 9 on my Windows 7 Laptop and created a new Virtual machine having Windows 2008 R2 Enterprise.
My requirement: I want this VM to be connected to my home’s wireless network ( I opted for Bridged network adapter), but there are some softwares in my VM which require it to have a static ip.
Can this be achieved in anyway?
I will explain my environment.
Host PC (Windows 7):
IP : 192.168.1.10 (Subnet is 192.168.1.0)
Mask: 255.255.255.0
Default gateway: 192.168.1.1 (My modem)
DNS: 202.56.215.54 (DNS given by ISP)
VM (Windows 2008 R2 Enterprise):
Network adapter: Bridged
Please advise full IP configuration for the VM.
Or can this be achieved using Bridged VMNet# virtual adapters connected to my Host PC?
Thanks.
Jesin A says
Hello Kushal,
This can be done using bridged networking. Manually assign an IP address to the VM from the 192.168.1.0/24 subnet.
The default gateway and DNS should stay the same unless you’re configuring Active Directory integrated DNS (in which case the DNS must be 127.0.0.1).
Kushal says
Hi Jesin.
Thank you for your reply.
However, when I am using Bridged networking and not manually assigning an IP address to my VM, it is taking the same IP as my host machine, therefore causing the IP conflict error to pop in my VM.
When I tried assigning a different IP to my VM with the same IP configuration (Gateway, DNS etc), I am not getting internet access (it just says Unidentified network)
Thanks.
Jesin A says
How is your laptop connected with your modem? With an Ethernet cable or WiFi?
When you manually assign an IP address to the VM are you able to ping the gateway (192.168.1.1)?
Kushal says
My host machine is connected through Wifi.
Yes when i manually assign an IP to the VM, I am able to ping the gateway.
Jesin A says
If you’re able to ping the gateway you should have internet access. Try pinging 8.8.8.8 it is the IP of Google Public DNS.
Kushal says
When I am manually trying to assign an IP to my VM using the same ipv4 configuration, I am again getting an ip address conflict. Please advise.
I am not able to ping anything now. It says PING Transmit Failed : General Failure.
This is the “ipconfig /all” for my VM.
This is the “ipconfig /all’ for my Host machine:
Jesin A says
Do you have any other VM running?
In this VM change the IP setting to automatically assign and restart this VM.
Andrian says
hi!
i have windows server 2008 running on the vmware esxi5.x, on this server 2008 is running vmware workstation 9 with samme mashines for testing(not in production) all of them use nat connection, to go in internet(if is necesary)but one i want to connect with a fisical server using bridge connection, virtual network preferences is set manualy to nik(e1000), firewall’s disablet, ip subneting is correct, can;not go outside of de host server, (can ping host ip) …
(uninstall and install vmware bridje protocol)..tryed this on diferent mashines, the same rezultat..
samme ideas?
Darin says
Hi Jesin, I am running a Windows Server 2008 with Windows firewall enabled and static public IP addresses.
I have a Ubuntu Virtual Machine running (VMWare Player in bridged mode) on the same server with a static public IP configured in Ubuntu.
I would like to have the VM behind the Windows Firewall so I can control the open ports easier. I have spent hours googling and reading VMware forums but can find anything.
Do you have any suggestions?
govind reddy says
Hi Jesin,
i am unable to ping external ip’s from my virtual dp software which was installed in esxi server in vmware work station.
i am not able to access internet
i selected bridge network.
and i am using Lan connection and i figured out my ip is changing frequently.
Joe says
Hi Jesin, I have a question everything is working fine for me except i cannot remote desktop to the VM from the machine hosting the VM. If i choose NAt instead of Brdige then i can and the nat can even talk to the network but it can’t for some of it. How do i solve the issue with RDP. I try to ping the machine and i get nothing back.
chris says
I have a noob question if you can help. I am just starting to use vmware to run linux. My question is if there is a way to have an internet connection on both my vm and host pc at the same time. My host is win7 desktop connected wifi to a belkin router.
Jesin A says
Yes you can, in the Network Adapter section of the VM’s settings choose NAT.
Subham Kashyap says
Hello JEsin, I want to connect 2 networks on different VMware machines on same PC on windows 2k8(windows server 2008), description-
objective- to connect 2 vmware machine networks on same laptop.
My best shot-
1. firstly I created a loopback network on each of VMware machines.
2.Then, I provided an static IP on both the vmware machines.
after that i – turned off firewall on each machine, bridged both the machines, tried gateway but still both machines were not communicating(pinging)
Problem I faced-1.while pinging -Destination host unreachable on both machines.
Can you suggest something?
shadman reza says
Hi,
I have installed Windows 7 in base machine and then have installed VMware 11. I am planning to install Linux os in virtual machine but before that when i am trying to configure Virtual network I am not able to give bridge connection option. It allows me to give NAT and Host only. Recently I have installed windows 7 fres on my PC before than this it was working fine. Can you please tell me what’s the work around for this.
Ola says
Is it possible to set up a connection without using an Internet connection? I have a device I am trying to ping connected to my vm laptop directly via Ethernet cable and this device has an IP address associated with it, can I talk to this device internally without an Internet connection because I won’t be employing an Internet connection for my project. If not how can I work around this? I was trying to see if I can create a Bind DHCP server manually using the Linux rpms to go about this. Thanks! And I also have a bridged network available and a NIC
Jesin A says
Yes it is possible, set the network connection mode of the adapter to host-only.
Ola says
Thank you! I am actually using a switch now, I connected one more laptop to the switch for pinging purposes, I am using the bridged network which is the default vmnet0 connected directly to the host. The other laptop and see vmnet1 and vmnet8 but it can’t talk to the interface virbr0, it can also talk to the host… All the interfaces can talk except to virbr0 which is the main interface am using, I am troubleshooting it but I realized that I have no default gateway for my vm and also am trying to asign a static ip to vibr0 and a default gateway maybe that would help. Even on host only bridging it’s the same error, cannot access network, and from host ping says general failure. My firewall on my centOS is disabled. Any tips?
Thanks bro!
Maan says
Hi there,
I have my own companies network, domain, dhcp all configured and working great.
On my virtual machine (just wanted to do own practical) I install virtual Server (ADDS,DNS, dhcp) and it should only broadcast IP address to virtual machines clients pc.
I have already changed network adapter to HOST only on both the virtual machines settings. The client pc gets IP address from the dhcp server of VM ware.
However the problem is, same domain name is coming out of virtual machine and conflicts with actual companies ADDS. Therefore everyone is getting my virtual machines IP address.
Now I am wondering How dhcp is going out of virtual machine to the actual machines and bringing down our actual network.
Please can you advise how can I disable dhcp from going out of virtual machines.
Gareth says
Hello. Pls how can I link 2 Linux OS on separate systems using the VMware??
Abhishek says
Hi , I have very simple question.
I have a personal laptop.
I have a normal broadband wifi connection at home through modem and router.
I connect my laptop to this network only.
I have created 2 Vms on my laptop .
VMs have windows 2008 server 64 bit installed.
I am trying to make these 2 VMs talk to each other , like ping one VM from another so that I can access have these 2 VMs(workstation) act as 2 host on same network.
Can I do it sir? If yes can you please guidea me.
Regards
Tunde says
Hi Thanks for the tutorial. However what if we have two network cards on a single host machine each with different subnet. How do you connect single Vmware machine to different network cards using bridge connection? Or what is the best way to connect to two physical network cards from a Vmware machine