1 .TH BRIDGE 8 "1 August 2012" "iproute2" "Linux"
3 bridge \- show / manipulate bridge addresses and devices
10 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
16 .BR link " | " fdb " | " mdb " | " vlan " | " monitor " }"
21 \fB\-V\fR[\fIersion\fR] |
22 \fB\-s\fR[\fItatistics\fR] |
23 \fB\-n\fR[\fIetns\fR] name }
36 .BR guard " { " on " | " off " } ] [ "
37 .BR hairpin " { " on " | " off " } ] [ "
38 .BR fastleave " { " on " | " off " } ] [ "
39 .BR root_block " { " on " | " off " } ] [ "
40 .BR learning " { " on " | " off " } ] [ "
41 .BR learning_sync " { " on " | " off " } ] [ "
42 .BR flood " { " on " | " off " } ] [ "
43 .BR hwmode " { " vepa " | " veb " } ] "
46 .BR "bridge link" " [ " show " ] [ "
51 .BR "bridge fdb" " { " add " | " append " | " del " } "
55 .BR local " | " temp " } { "
56 .BR self " } { " embedded " } { " router " } [ "
67 .BR "bridge fdb" " [ " show " ] [ "
72 .BR "bridge mdb" " { " add " | " del " } "
79 .BR permanent " | " temp " ]"
82 .BR "bridge mdb show " [ "
87 .BR "bridge vlan" " { " add " | " del " } "
92 .BR pvid " ] [ " untagged " ] [ "
93 .BR self " ] [ " master " ] "
96 .BR "bridge vlan" " [ " show " ] [ "
101 .BR "bridge monitor" " [ " all " | " neigh " | " link " | " mdb " ]"
106 .BR "\-V" , " -Version"
107 print the version of the
112 .BR "\-s" , " \-stats", " \-statistics"
113 output more information. If this option
114 is given multiple times, the amount of information increases.
115 As a rule, the information is statistics or some time values.
118 .BR "\-n" , " \-net" , " \-netns " <NETNS>
121 to the specified network namespace
123 Actually it just simplifies executing of:
128 .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | "
134 .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | "
138 .SH BRIDGE - COMMAND SYNTAX
149 - Forwarding Database entry.
153 - Multicast group database entry.
162 Specifies the action to perform on the object.
163 The set of possible actions depends on the object type.
164 As a rule, it is possible to
165 .BR "add" , " delete"
170 ) objects, but some objects do not allow all of these operations
171 or have some additional commands. The
173 command is available for all objects. It prints
174 out a list of available commands and argument syntax conventions.
176 If no command is given, some default command is assumed.
179 or, if the objects of this class cannot be listed,
182 .SH bridge link - bridge port
185 objects correspond to the port devices of the bridge.
188 The corresponding commands set and display port status and bridge specific
191 .SS bridge link set - set bridge specific attributes on a port
195 interface name of the bridge port
199 the STP path cost of the specified port.
202 .BI priority " PRIO "
203 the STP port priority. The priority value is an unsigned 8-bit quantity
204 (number between 0 and 255). This metric is used in the designated port an
205 droot port selectio algorithms.
209 the operation state of the port. This is primarily used by user space STP/RSTP
210 implementation. One may enter a lowercased port state name, or one of the
211 numbers below. Negative inputs are ignored, and unrecognized names return an
215 - port is DISABLED. Make this port completely inactive.
219 - STP LISTENING state. Only valid if STP is enabled on the brige. In this
220 state the port for list for STP BPDUs and drop all other traffic.
224 - STP LEARNING state. Only valid if STP is enabled on the bridge. In this
225 state the port will accept traffic only for the purpose of updating MAC
230 - STP FORWARDING state. Port is fully active.
234 - STP BLOCKING state. Only valid if STP is enabled on the bridge. This state
235 is used during the STP election process. In this state, port will only process
240 .BR "guard on " or " guard off "
241 Controls whether STP BPUDs will be processed by the bridge port. By default,
242 the flag is turned off allowed BPDU processing. Turning this flag on will
243 cause the port to stop processing STP BPDUs.
246 .BR "hairpin on " or " hairpin off "
247 Controls whether traffic may be send back out of the port on which it was
248 received. By default, this flag is turned off and the bridge will not forward
249 traffic back out of the receiving port.
252 .BR "fastleave on " or " fastleave off "
253 This flag allows the bridge to immediately stop multicast traffic on a port
254 that receives IGMP Leave message. It is only used with IGMP snooping is
255 enabled on the bridge. By default the flag is off.
258 .BR "root_block on " or " root_block off "
259 Controls whether a given port is allowed to become root port or not. Only used
260 when STP is enabled on the bridge. By default the flag is off.
263 .BR "learning on " or " learning off "
264 Controls whether a given port will learn MAC addresses from received traffic or
265 not. If learning if off, the bridge will end up flooding any traffic for which
266 it has no FDB entry. By default this flag is on.
269 .BR "learning_sync on " or " learning_sync off "
270 Controls whether a given port will sync MAC addresses learned on device port to
274 .BR "flooding on " or " flooding off "
275 Controls whether a given port will flood unicast traffic for which there is no FDB entry. By default this flag is on.
279 Some network interface cards support HW bridge functionality and they may be
280 configured in different modes. Currently support modes are:
283 - Data sent between HW ports is sent on the wire to the external
287 - bridging happens in hardware.
289 .SS bridge link show - list bridge port configuration.
291 This command displays the current bridge port configuration and flags.
293 .SH bridge fdb - forwarding database management
296 objects contain known Ethernet addresses on a link.
299 The corresponding commands display fdb entries, add new entries,
303 .SS bridge fdb add - add a new fdb entry
305 This command creates a new fdb entry.
309 the Ethernet MAC address.
313 the interface to which this address is associated.
316 - the address is associated with a software fdb (default)
320 - the address is associated with an offloaded fdb
324 - the destination address is associated with a router.
325 Valid if the referenced device is a VXLAN type device and has
326 route shortcircuit enabled.
330 The next command line parameters apply only
331 when the specified device
336 the IP address of the destination
337 VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides.
341 the VXLAN VNI Network Identifier (or VXLAN Segment ID)
342 to use to connect to the remote VXLAN tunnel endpoint.
343 If omitted the value specified at vxlan device creation
348 the UDP destination PORT number to use to connect to the
349 remote VXLAN tunnel endpoint.
350 If omitted the default value is used.
354 device name of the outgoing interface for the
355 VXLAN device driver to reach the
356 remote VXLAN tunnel endpoint.
358 .SS bridge fdb append - append a forwarding database entry
359 This command adds a new fdb entry with an already known
361 Valid only for multicast link layer addresses.
362 The command adds support for broadcast and multicast
363 Ethernet MAC addresses.
364 The Ethernet MAC address is added multiple times into
365 the forwarding database and the vxlan device driver
366 sends a copy of the data packet to each entry found.
369 The arguments are the same as with
370 .BR "bridge fdb add" ,
372 .SS bridge fdb delete - delete a forwarding database entry
373 This command removes an existing fdb entry.
376 The arguments are the same as with
377 .BR "bridge fdb add" ,
379 .SS bridge fdb show - list forwarding entries.
381 This command displays the current forwarding table.
386 option, the command becomes verbose. It prints out the last updated
387 and last used time for each entry.
389 .SH bridge mdb - multicast group database management
392 objects contain known IP multicast group addresses on a link.
395 The corresponding commands display mdb entries, add new entries,
398 .SS bridge mdb add - add a new multicast group database entry
400 This command creates a new mdb entry.
404 the interface where this group address is associated.
408 the port whose link is known to have members of this multicast group.
412 the IP multicast group address whose members reside on the link connected to
416 - the mdb entry is permanent
420 - the mdb entry is temporary (default)
424 .SS bridge mdb delete - delete a multicast group database entry
425 This command removes an existing mdb entry.
428 The arguments are the same as with
429 .BR "bridge mdb add" .
431 .SS bridge mdb show - list multicast group database entries
433 This command displays the current multicast group membership table. The table
434 is populated by IGMP and MLD snooping in the bridge driver automatically. It
439 commands manually too.
443 the interface only whose entries should be listed. Default is to list all
449 option, the command becomes verbose. It prints out the ports known to have
452 .SH bridge vlan - VLAN filter list
455 objects contain known VLAN IDs for a link.
458 The corresponding commands display vlan filter entries, add new entries,
461 .SS bridge vlan add - add a new vlan filter entry
463 This command creates a new vlan filter entry.
467 the interface with which this vlan is associated.
471 the VLAN ID that identifies the vlan.
475 the vlan specified is to be considered a PVID at ingress.
476 Any untagged frames will be assigned to this VLAN.
480 the vlan specified is to be treated as untagged on egress.
484 the vlan is configured on the specified physical device. Required if the
485 device is the bridge device.
489 the vlan is configured on the software bridge (default).
491 .SS bridge vlan delete - delete a forwarding database entry
492 This command removes an existing fdb entry.
495 The arguments are the same as with
496 .BR "bridge vlan add".
498 .BR "pvid " and " untagged"
501 .SS bridge vlan show - list vlan configuration.
503 This command displays the current VLAN filter table.
505 .SH bridge monitor - state monitoring
509 utility can monitor the state of devices and addresses
510 continuously. This option has a slightly different format.
513 command is the first in the command line and then the object list follows:
515 .BR "bridge monitor" " [ " all " |"
519 is the list of object types that we want to monitor.
521 .BR link ", " fdb ", and " mdb "."
526 opens RTNETLINK, listens on it and dumps state changes in the format
527 described in previous sections.
530 If a file name is given, it does not listen on RTNETLINK,
531 but opens the file containing RTNETLINK messages saved in binary format
532 and dumps them. Such a history file can be generated with the
536 This command uses facilities added in Linux 3.0.
538 Although the forwarding table is maintained on a per-bridge device basis
539 the bridge device is not part of the syntax. This is a limitation of the
540 underlying netlink neighbour message protocol. When displaying the
541 forwarding table, entries for all bridges are displayed.
542 Add/delete/modify commands determine the underlying bridge device
543 based on the bridge to which the corresponding ethernet device is attached.
549 .RB "Please direct bugreports and patches to: " <netdev@vger.kernel.org>
552 Original Manpage by Stephen Hemminger