BRCTL
NAME
SYNOPSIS
DESCRIPTION
INSTANCES
PORTS
AGEING
SPANNING TREE PROTOCOL
NOTES
SEE ALSO
AUTHOR
NAME
brctl − ethernet bridge administration
SYNOPSIS
brctl [command]
DESCRIPTION
brctl is used to set up, maintain, and inspect the ethernet bridge configuration in the Linux kernel.
An ethernet bridge is a device commonly used to connect different networks of ethernets together, so that these ethernets will appear as one ethernet to the participants.
Each of the ethernets being connected corresponds to one physical interface in the bridge. These individual ethernets are bundled into one bigger (’logical’) ethernet, this bigger ethernet corresponds to the bridge network interface.
INSTANCES
The command brctl addbr
The command brctl delbr
The command brctl show shows all current instances of the ethernet bridge.
PORTS
Each bridge has a number of ports attached to it. Network traffic coming in on any of these ports will be forwarded to the other ports transparently, so that the bridge is invisible to the rest of the network (i.e. it will not show up in traceroute(8) ).
The command brctl addif
The command brctl delif
The command brctl show
AGEING
The bridge keeps track of ethernet addresses seen on each port. When it needs to forward a frame, and it happens to know on which port the destination ethernet address (specified in the frame) is located, it can ’cheat’ by forwarding the frame to that port only, thus saving a lot of redundant copies and transmits.
However, the ethernet address location data is not static data. Machines can move to other ports, network cards can be replaced (which changes the machine’s ethernet address), etc.
brctl showmacs
brctl setageing
brctl setgcint
SPANNING TREE PROTOCOL
Multiple ethernet bridges can work together to create even larger networks of ethernets using the IEEE 802.1d spanning tree protocol. This protocol is used for finding the shortest path between two ethernets, and for eliminating loops from the topology. As this protocol is a standard, Linux bridges will interwork properly with other third party bridge products. Bridges communicate with each other by sending and receiving BPDUs (Bridge Protocol Data Units). These BPDUs can be recognised by an ethernet destination address of 01:80:c2:00:00:00.
The spanning tree protocol can also be turned off (for those situations where it just doesn’t make sense, for example when this Linux box is the only bridge on the LAN, or when you know that there are no loops in the topology.)
brctl(8) can be used for configuring certain spanning tree protocol parameters. For an explanation of these parameters, see the IEEE 802.1d specification (or send me an email). The default values should be just fine. If you don’t know what these parameters mean, you probably won’t feel the desire to tweak them.
brctl stp
brctl setbridgeprio
brctl setfd
brctl sethello
brctl setmaxage
brctl setpathcost
brctl setportprio
NOTES
brctl(8) is obsolete. Some features such as STP guard, harpin mode, fastleave and root block are intentionally not implemented in this command. Instead use bridge command from iproute2 package for a more full set of features.
SEE ALSO
iptables(8)
AUTHOR
Lennert Buytenhek