Implementing Linux bridging
- If it is not loaded, use
modprobe bridgeto load the module:
# lsmod | grep bridge
Run the following command to create a bridge called
# brctl addbr tester
Let's see if the bridge has been created:
# brctl show bridge name bridge id STP enabled interfaces tester 8000.460a80dd627d no
# brctl showcommand will list all the available bridges on the server, along with some basic information, such as the ID of the bridge, Spanning Tree Protocol (STP) status, and the interfaces attached to it. Here, the tester bridge does not have any interfaces attached to its virtual ports.
- A Linux bridge will also be shown as a network device. To see the network details of the bridge tester, use the
# ip link show tester 6: tester: <BROADCAST,MULTICAST>mtu 1500 qdiscnoop...