

Find it in Synaptic, or install it using this command: # apt install bridge-utils The program you’re going to need is called brctl and is included in bridge-utils. This requires spanning tree to be enabled on both the bridge interface and the switch. For example using two network interfaces to connect to two spanning tree enabled switches provides a redundant connection in the event of a cable, interface or switch failure. Make sure before starting that the computer you’re going to bridge through has two ethernet ports, and that the hardware is capable of bridging ethernet connections (it probably should be).Īnother example scenario for using bridging is to provide redundant networking capabilities. To do so though, the networked computer needs to have two ethernet ports, one for the big network, and one for the bridged computer.

It’s useful if you can’t buy a router with more than one ethernet port, or if you’re a college student in a dorm room with limited ethernet jacks and no router.īasically, bridging is plugging one computer into another computer that already has a connection to a larger network (like the internet) and letting the bridged computer use the networked computer’s connection. Setting up bridge-related kernel variablesīridging your network connection is a handy method for sharing your internet connection between two (or more) computers.Useful options for virtualised environments.

Configuring bridging in /etc/network/interfaces.
