A bridged connection connects two separate networks as if they were one

A bridged connection is a way to link two network segments together so devices on each side can talk to each other as though they're on the same network. Instead of treating the two networks as separate, a bridge acts as a connector that passes data between them. This is different from a router, which keeps networks separate and controls what traffic moves between them.

The most common reason you'll encounter a bridged connection is when you're running virtual machines on your computer. When you set a virtual machine to use a bridged network adapter, it gets its own IP address from your actual network — the same way a physical device would. To the rest of your network, the virtual machine looks like a real computer sitting on the same wire, not a program running inside another computer.

Bridging also happens in physical networks when you connect two switches or access points together, or when you want a computer with two network cards to forward traffic between two wired networks without acting as a router.

Key Takeaways

  • A bridged connection makes two networks function as one by passing data between them, rather than keeping them separate like a router does.
  • Virtual machines using bridged mode receive their own IP address from your actual network and appear as independent devices to other computers.
  • Bridging is transparent to the devices using it — they don't know they're crossing a bridge, they just see one continuous network.
  • Physical network bridges connect switches, access points, or wired segments together, while software bridges do the same thing inside your operating system.

Bridged mode versus other virtual machine network options

When you set up a virtual machine, you typically have three choices for how it connects to the network: bridged, NAT (Network Address Translation), or host-only.

In bridged mode, the virtual machine gets its own IP address from your router's DHCP server, just like a physical computer would. Other devices on your network can see it and communicate with it directly. This is useful when you need the virtual machine to act like a real computer on the network — for example, if you're testing server software or need other people to access a service running inside the virtual machine.

In NAT mode, the virtual machine shares the IP address of the host computer. It can reach the internet and your network, but devices on your network cannot initiate contact with the virtual machine. The host computer acts as a translator, forwarding traffic in and out. This is the default on most virtual machine software because it's simpler and more secure — the virtual machine is hidden behind the host.

In host-only mode, the virtual machine can only talk to the host computer and other virtual machines on the same host. It has no access to the wider network or internet unless the host forwards traffic. This is the most isolated option and is useful when you want to test software in a completely contained environment.

How bridging works at the technical level

A bridge operates at Layer 2 of the network model — the data link layer, where devices are identified by their MAC addresses rather than IP addresses. When a bridge receives data from one network segment, it reads the destination MAC address and decides whether to forward it to the other segment or drop it.

The bridge learns which devices are on which side by watching the traffic that passes through it. When it sees a device sending data from the left side, it remembers that device's MAC address is on the left. If that device later sends data again, the bridge knows not to forward it to the right side — it's already there. This learning process happens automatically and continuously, so the bridge adapts if devices move or new ones appear.

In a virtual machine setup, the bridged adapter is software that mimics this behavior. Instead of connecting two physical cables, it connects the virtual machine's virtual network card to your computer's real network card. Data from the virtual machine goes out through the real card to your actual network, and data coming back in gets routed to the virtual machine.

When you actually need a bridged connection

You need bridged mode when the virtual machine must appear as a separate device on your network. Common scenarios include running a web server that other people need to access, testing network services that expect to be on the same subnet as clients, or running a network printer driver that requires direct network visibility.

If you're just running software inside a virtual machine for your own use — like testing an application or running a different operating system — NAT mode is usually simpler and safer. The virtual machine can still reach the internet and your local network, but it's hidden from other devices, which reduces the attack surface if the virtual machine is compromised.

Physical network bridges are less common in home setups but appear in larger networks where you need to extend a network segment without using a router. For example, if you have two switches in different rooms and want them to act as one network rather than two separate ones, you'd bridge them together.

Potential issues with bridged connections

The main drawback of bridged mode is that the virtual machine is exposed to your network the same way a physical computer would be. If the virtual machine is running outdated or insecure software, it can be compromised by other devices on the network. You're responsible for keeping it patched and secured, just as you would with a real computer.

Bridged mode also requires that your network's DHCP server has available IP addresses to hand out. If your network is full or your DHCP pool is exhausted, the virtual machine won't get an address and won't be able to connect. This is rarely a problem on home networks but can happen in large corporate environments.

Another consideration is that bridged connections can sometimes cause confusion when troubleshooting. If you're not aware that a virtual machine is on the network, you might spend time investigating why there's an unfamiliar device sending traffic. Keeping track of which virtual machines are bridged and which are using NAT helps prevent this.

Setting up a bridged connection on your computer

The exact steps depend on your virtual machine software. In VirtualBox, you open the virtual machine's settings, go to the Network tab, and change the adapter type from NAT to Bridged Adapter. You then select which physical network card on your computer the virtual machine should bridge through — usually your main Ethernet or Wi-Fi adapter.

In VMware, the process is similar: open the virtual machine settings, select the network adapter, and choose Bridged from the dropdown menu. You can also specify which physical adapter to use if your computer has multiple network cards.

On Hyper-V (Microsoft's virtualization platform), you create a virtual switch set to External mode, which automatically bridges the virtual machine to your physical network. The setup is slightly different but accomplishes the same result.

After making the change, start the virtual machine. It should receive an IP address from your router within a few seconds, just like a physical computer would. You can verify this by opening a terminal or command prompt inside the virtual machine and checking its IP address. If it has an address in the same range as your other devices (like 192.168.1.x), the bridge is working correctly.

Bridged connections in physical networks

Outside of virtual machines, bridging appears when you connect network switches together. A switch is a device that connects multiple devices to the same network. When you connect two switches with a cable, you're creating a bridge — all devices connected to either switch can now talk to each other as if they're on one network.

Wireless access points can also be bridged to wired networks. Some access points have a bridging mode that lets them connect to your wired network and extend it wirelessly without creating a separate Wi-Fi network. This is different from a repeater, which rebroadcasts the signal, or an extender, which creates a new network. A bridged access point makes the wireless devices appear on the same network as the wired ones.

In advanced setups, you might bridge two computers together using a feature called Network Bridge in Windows or a similar tool in Linux or macOS. This turns one of the computers into a bridge device that connects two separate networks. This is rarely necessary in modern networks but can be useful in specific troubleshooting or testing scenarios.

Frequently Asked Questions

Can I switch a virtual machine from NAT to bridged mode without losing data?

Yes. Changing the network mode in your virtual machine software doesn't affect the files or data inside the virtual machine. The only change is how it connects to the network. After you switch to bridged mode and restart the virtual machine, it will get a new IP address from your router, but everything inside remains intact.

Will a bridged virtual machine slow down my network?

Not noticeably. A bridged virtual machine uses network bandwidth the same way a physical computer does — only when it's actually sending or receiving data. If the virtual machine is idle, it doesn't consume any more bandwidth than a physical computer sitting on the network would. The bridge itself adds minimal overhead.

Is bridged mode less secure than NAT mode?

Bridged mode exposes the virtual machine directly to your network, so it can be reached by other devices the same way a physical computer can. NAT mode hides it behind the host computer. If security is your main concern and the virtual machine doesn't need to be accessed from other devices, NAT mode is the safer choice. If you need bridged mode, keep the virtual machine's software updated and use a firewall.

What's the difference between a bridge and a router?

A bridge connects networks at the data link layer and treats them as one network. Devices on both sides see each other without any translation. A router connects networks at the IP layer and keeps them separate, translating addresses and controlling what traffic flows between them. Routers are more common because they provide better security and organization, but bridges are useful when you need networks to function as one.

Can I bridge a Wi-Fi connection to an Ethernet connection?

Yes, most operating systems support this. In Windows, you can create a Network Bridge that combines your Wi-Fi and Ethernet adapters. This makes devices connected via Ethernet and Wi-Fi appear on the same network. However, the bridge will only be as fast as your slowest connection, and it can sometimes cause issues with DHCP or network discovery, so it's best used only when necessary.