"-V" , " -Version" print the version of the bridge utility and exit.
"-s" , " -stats", " -statistics" output more information. If this option is given multiple times, the amount of information increases. As a rule, the information is statistics or some time values.
"-d" , " -details" print detailed information about MDB router ports.
"-n" , " -net" , " -netns " <NETNS> switches bridge to the specified network namespace NETNS . Actually it just simplifies executing of: ip netns exec NETNS bridge "[ " OPTIONS " ] " OBJECT " { " COMMAND " | " help " }" to bridge "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | " help " }"
"-b", " -batch " <FILENAME> Read commands from provided file or standard input and invoke them. First failure will cause termination of bridge command.
"-force" Don't terminate bridge command on errors in batch mode. If there were any errors during execution of the commands, the application return code will be non zero.
"-json" Display results in JSON format. Currently available for vlan and fdb.
link - Bridge port.
fdb - Forwarding Database entry.
mdb - Multicast group database entry.
vlan - VLAN filter list.
COMMAND Specifies the action to perform on the object. The set of possible actions depends on the object type. As a rule, it is possible to "add" , " delete" and show (or list ) objects, but some objects do not allow all of these operations or have some additional commands. The help command is available for all objects. It prints out a list of available commands and argument syntax conventions. If no command is given, some default command is assumed. Usually it is list or, if the objects of this class cannot be listed, "help" .The corresponding commands set and display port status and bridge specific attributes.
dev " NAME " interface name of the bridge port
cost " COST " the STP path cost of the specified port.
priority " PRIO " the STP port priority. The priority value is an unsigned 8-bit quantity (number between 0 and 255). This metric is used in the designated port an droot port selectio algorithms.
state " STATE " the operation state of the port. This is primarily used by user space STP/RSTP implementation. One may enter a lowercased port state name, or one of the numbers below. Negative inputs are ignored, and unrecognized names return an error. 0 - port is DISABLED. Make this port completely inactive. 1 - STP LISTENING state. Only valid if STP is enabled on the bridge. In this state the port listens for STP BPDUs and drops all other traffic frames. 2 - STP LEARNING state. Only valid if STP is enabled on the bridge. In this state the port will accept traffic only for the purpose of updating MAC address tables. 3 - STP FORWARDING state. Port is fully active. 4 - STP BLOCKING state. Only valid if STP is enabled on the bridge. This state is used during the STP election process. In this state, port will only process STP BPDUs.
"guard on " or " guard off " Controls whether STP BPDUs will be processed by the bridge port. By default, the flag is turned off allowed BPDU processing. Turning this flag on will cause the port to stop processing STP BPDUs.
"hairpin on " or " hairpin off " Controls whether traffic may be send back out of the port on which it was received. By default, this flag is turned off and the bridge will not forward traffic back out of the receiving port.
"fastleave on " or " fastleave off " This flag allows the bridge to immediately stop multicast traffic on a port that receives IGMP Leave message. It is only used with IGMP snooping is enabled on the bridge. By default the flag is off.
"root_block on " or " root_block off " Controls whether a given port is allowed to become root port or not. Only used when STP is enabled on the bridge. By default the flag is off.
"learning on " or " learning off " Controls whether a given port will learn MAC addresses from received traffic or not. If learning if off, the bridge will end up flooding any traffic for which it has no FDB entry. By default this flag is on.
"learning_sync on " or " learning_sync off " Controls whether a given port will sync MAC addresses learned on device port to bridge FDB.
"flooding on " or " flooding off " Controls whether a given port will flood unicast traffic for which there is no FDB entry. By default this flag is on.
hwmode Some network interface cards support HW bridge functionality and they may be configured in different modes. Currently support modes are: vepa - Data sent between HW ports is sent on the wire to the external switch. veb - bridging happens in hardware.
"mcast_flood on " or " mcast_flood off " Controls whether a given port will be flooded with multicast traffic for which there is no MDB entry. By default this flag is on.
self link setting is configured on specified physical device
master link setting is configured on the software bridge (default)
"-t" , " -timestamp" display current time when using monitor option.
The corresponding commands display fdb entries, add new entries, append entries, and delete old ones.
"LLADDR" the Ethernet MAC address.
dev " DEV" the interface to which this address is associated. local - is a local permanent fdb entry static - is a static (no arp) fdb entry dynamic - is a dynamic reachable age-able fdb entry self - the address is associated with the port drivers fdb. Usually hardware. master - the address is associated with master devices fdb. Usually software (default). router - the destination address is associated with a router. Valid if the referenced device is a VXLAN type device and has route shortcircuit enabled. use - the address is in use. User space can use this option to indicate to the kernel that the fdb entry is in use. The next command line parameters apply only when the specified device DEV is of type VXLAN.
dst " IPADDR" the IP address of the destination VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides.
vni " VNI" the VXLAN VNI Network Identifier (or VXLAN Segment ID) to use to connect to the remote VXLAN tunnel endpoint. If omitted the value specified at vxlan device creation will be used.
port " PORT" the UDP destination PORT number to use to connect to the remote VXLAN tunnel endpoint. If omitted the default value is used.
via " DEVICE" device name of the outgoing interface for the VXLAN device driver to reach the remote VXLAN tunnel endpoint.
The arguments are the same as with "bridge fdb add" .
The arguments are the same as with "bridge fdb add" .
The arguments are the same as with "bridge fdb add" .
With the -statistics option, the command becomes verbose. It prints out the last updated and last used time for each entry.
The corresponding commands display mdb entries, add new entries, and delete old ones.
dev " DEV" the interface where this group address is associated.
port " PORT" the port whose link is known to have members of this multicast group.
grp " GROUP" the IP multicast group address whose members reside on the link connected to the port. permanent - the mdb entry is permanent temp - the mdb entry is temporary (default)
vid " VID" the VLAN ID which is known to have members of this multicast group.
The arguments are the same as with "bridge mdb add" .
dev " DEV" the interface only whose entries should be listed. Default is to list all bridge interfaces.
With the -details option, the command becomes verbose. It prints out the ports known to have a connected router.
With the -statistics option, the command displays timer values for mdb and router port entries.
The corresponding commands display vlan filter entries, add new entries, and delete old ones.
dev " NAME" the interface with which this vlan is associated.
vid " VID" the VLAN ID that identifies the vlan.
pvid the vlan specified is to be considered a PVID at ingress. Any untagged frames will be assigned to this VLAN.
untagged the vlan specified is to be treated as untagged on egress.
self the vlan is configured on the specified physical device. Required if the device is the bridge device.
master the vlan is configured on the software bridge (default).
The arguments are the same as with "bridge vlan add". The "pvid " and " untagged" flags are ignored.
With the -statistics option, the command displays per-vlan traffic statistics.
If a file name is given, it does not listen on RTNETLINK, but opens the file containing RTNETLINK messages saved in binary format and dumps them.