![]() Now you need to add the interfaces that are going to be bridged. ![]() The name br0 is up to you and can be anything you want. Issue this command to get the ball rolling and create the new interface. You'll have to change its configuration to explicitly allow the host machine/network port as a "switch".įirst step to creating the bridge network is actually creating it. Note: If, after trying to use the bridge interface, you find your network link becomes dead and refuses to work again, it might be that the router/switch upstream is blocking "unauthorized switches" in the network (for example, by detecting BPDU packets). You CAN use DHCP, or you can use a static address. To set up the computer that’s going to be bridged, just set it up normally, as you would any other computer. Note: All these commands are to be issued on the computer with the existing network connection. It doesn’t physically exist on your computer, but instead it is a virtual interface that just takes the packets from one physical interface, and transparently routes them to the other. The bridge interface appears as a new interface in ip link, much like eth0 or eth1. This software allows you to set up and use the bridge interface. 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.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |