]>
Commit | Line | Data |
---|---|---|
d04bc300 SH |
1 | .TH BRIDGE 8 "1 August 2012" "iproute2" "Linux" |
2 | .SH NAME | |
3 | bridge \- show / manipulate bridge addresses and devices | |
4 | .SH SYNOPSIS | |
5 | ||
6 | .ad l | |
7 | .in +8 | |
8 | .ti -8 | |
9 | .B bridge | |
10 | .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | " | |
11 | .BR help " }" | |
12 | .sp | |
13 | ||
14 | .ti -8 | |
15 | .IR OBJECT " := { " | |
54e9c3a3 | 16 | .BR link " | " fdb " | " mdb " | " vlan " | " monitor " }" |
d04bc300 SH |
17 | .sp |
18 | ||
19 | .ti -8 | |
20 | .IR OPTIONS " := { " | |
21 | \fB\-V\fR[\fIersion\fR] | | |
527910c8 | 22 | \fB\-s\fR[\fItatistics\fR] | |
db726379 RP |
23 | \fB\-n\fR[\fIetns\fR] name | |
24 | \fB\-b\fR[\fIatch\fR] filename | | |
25 | \fB\-j\fR[\fIson\fR] } | |
aa2f1335 VY |
26 | |
27 | .ti -8 | |
28 | .BR "bridge link set" | |
fc31817d | 29 | .B dev |
aa2f1335 VY |
30 | .IR DEV |
31 | .IR " [ " | |
fc31817d | 32 | .B cost |
aa2f1335 | 33 | .IR COST " ] [ " |
fc31817d PS |
34 | .B priority |
35 | .IR PRIO " ] [ " | |
36 | .B state | |
aa2f1335 VY |
37 | .IR STATE "] [" |
38 | .BR guard " { " on " | " off " } ] [ " | |
39 | .BR hairpin " { " on " | " off " } ] [ " | |
40 | .BR fastleave " { " on " | " off " } ] [ " | |
41 | .BR root_block " { " on " | " off " } ] [ " | |
f0f4ab60 | 42 | .BR learning " { " on " | " off " } ] [ " |
674bb438 | 43 | .BR learning_sync " { " on " | " off " } ] [ " |
f0f4ab60 | 44 | .BR flood " { " on " | " off " } ] [ " |
22a98f51 | 45 | .BR hwmode " { " vepa " | " veb " } ] [ " |
9208b4e7 NA |
46 | .BR mcast_flood " { " on " | " off " } ] [ " |
47 | .BR self " ] [ " master " ]" | |
aa2f1335 VY |
48 | |
49 | .ti -8 | |
50 | .BR "bridge link" " [ " show " ] [ " | |
fc31817d | 51 | .B dev |
aa2f1335 | 52 | .IR DEV " ]" |
d04bc300 SH |
53 | |
54 | .ti -8 | |
6e2e2cf0 | 55 | .BR "bridge fdb" " { " add " | " append " | " del " | " replace " } " |
d04bc300 | 56 | .I LLADDR |
fc31817d | 57 | .B dev |
d04bc300 | 58 | .IR DEV " { " |
c6d0cfb5 | 59 | .BR local " | " static " | " dynamic " } [ " |
cd8df30b | 60 | .BR self " ] [ " master " ] [ " router " ] [ " use " ] [ " |
fc31817d | 61 | .B dst |
7578ae88 TR |
62 | .IR IPADDR " ] [ " |
63 | .B vni | |
64 | .IR VNI " ] [" | |
65 | .B port | |
66 | .IR PORT " ] [" | |
67 | .B via | |
68 | .IR DEVICE " ]" | |
d04bc300 SH |
69 | |
70 | .ti -8 | |
71 | .BR "bridge fdb" " [ " show " ] [ " | |
fc31817d | 72 | .B dev |
d04bc300 SH |
73 | .IR DEV " ]" |
74 | ||
54e9c3a3 PP |
75 | .ti -8 |
76 | .BR "bridge mdb" " { " add " | " del " } " | |
fc31817d | 77 | .B dev |
54e9c3a3 PP |
78 | .IR DEV |
79 | .B port | |
80 | .IR PORT | |
81 | .B grp | |
82 | .IR GROUP " [ " | |
6aac8617 NA |
83 | .BR permanent " | " temp " ] [ " |
84 | .B vid | |
85 | .IR VID " ] " | |
54e9c3a3 PP |
86 | |
87 | .ti -8 | |
88 | .BR "bridge mdb show " [ " | |
fc31817d | 89 | .B dev |
54e9c3a3 PP |
90 | .IR DEV " ]" |
91 | ||
ab938710 VY |
92 | .ti -8 |
93 | .BR "bridge vlan" " { " add " | " del " } " | |
fc31817d | 94 | .B dev |
ab938710 | 95 | .IR DEV |
fc31817d | 96 | .B vid |
ab938710 | 97 | .IR VID " [ " |
fc31817d PS |
98 | .BR pvid " ] [ " untagged " ] [ " |
99 | .BR self " ] [ " master " ] " | |
ab938710 VY |
100 | |
101 | .ti -8 | |
102 | .BR "bridge vlan" " [ " show " ] [ " | |
fc31817d | 103 | .B dev |
ab938710 VY |
104 | .IR DEV " ]" |
105 | ||
d04bc300 | 106 | .ti -8 |
54e9c3a3 | 107 | .BR "bridge monitor" " [ " all " | " neigh " | " link " | " mdb " ]" |
d04bc300 SH |
108 | |
109 | .SH OPTIONS | |
110 | ||
111 | .TP | |
112 | .BR "\-V" , " -Version" | |
113 | print the version of the | |
114 | .B bridge | |
115 | utility and exit. | |
116 | ||
117 | .TP | |
118 | .BR "\-s" , " \-stats", " \-statistics" | |
a89d5329 | 119 | output more information. If this option |
49572501 | 120 | is given multiple times, the amount of information increases. |
d04bc300 SH |
121 | As a rule, the information is statistics or some time values. |
122 | ||
ba037267 NA |
123 | .TP |
124 | .BR "\-d" , " \-details" | |
125 | print detailed information about MDB router ports. | |
126 | ||
527910c8 VK |
127 | .TP |
128 | .BR "\-n" , " \-net" , " \-netns " <NETNS> | |
129 | switches | |
130 | .B bridge | |
131 | to the specified network namespace | |
132 | .IR NETNS . | |
133 | Actually it just simplifies executing of: | |
134 | ||
135 | .B ip netns exec | |
136 | .IR NETNS | |
137 | .B bridge | |
138 | .RI "[ " OPTIONS " ] " OBJECT " { " COMMAND " | " | |
139 | .BR help " }" | |
140 | ||
141 | to | |
142 | ||
143 | .B bridge | |
144 | .RI "-n[etns] " NETNS " [ " OPTIONS " ] " OBJECT " { " COMMAND " | " | |
145 | .BR help " }" | |
146 | ||
9de8c6d9 WK |
147 | .TP |
148 | .BR "\-b", " \-batch " <FILENAME> | |
149 | Read commands from provided file or standard input and invoke them. | |
150 | First failure will cause termination of bridge command. | |
151 | ||
152 | .TP | |
153 | .BR "\-force" | |
154 | Don't terminate bridge command on errors in batch mode. | |
155 | If there were any errors during execution of the commands, the application | |
156 | return code will be non zero. | |
d04bc300 | 157 | |
db726379 RP |
158 | .TP |
159 | .BR "\-json" | |
160 | Display results in JSON format. Currently available for vlan and fdb. | |
161 | ||
d04bc300 SH |
162 | .SH BRIDGE - COMMAND SYNTAX |
163 | ||
164 | .SS | |
165 | .I OBJECT | |
166 | ||
aa2f1335 VY |
167 | .TP |
168 | .B link | |
169 | - Bridge port. | |
170 | ||
d04bc300 | 171 | .TP |
5699275b | 172 | .B fdb |
d04bc300 SH |
173 | - Forwarding Database entry. |
174 | ||
54e9c3a3 PP |
175 | .TP |
176 | .B mdb | |
177 | - Multicast group database entry. | |
178 | ||
ab938710 VY |
179 | .TP |
180 | .B vlan | |
181 | - VLAN filter list. | |
182 | ||
d04bc300 SH |
183 | .SS |
184 | .I COMMAND | |
185 | ||
186 | Specifies the action to perform on the object. | |
187 | The set of possible actions depends on the object type. | |
188 | As a rule, it is possible to | |
189 | .BR "add" , " delete" | |
190 | and | |
191 | .B show | |
192 | (or | |
193 | .B list | |
194 | ) objects, but some objects do not allow all of these operations | |
a89d5329 | 195 | or have some additional commands. The |
d04bc300 | 196 | .B help |
a89d5329 | 197 | command is available for all objects. It prints |
d04bc300 SH |
198 | out a list of available commands and argument syntax conventions. |
199 | .sp | |
200 | If no command is given, some default command is assumed. | |
201 | Usually it is | |
202 | .B list | |
203 | or, if the objects of this class cannot be listed, | |
204 | .BR "help" . | |
205 | ||
aa2f1335 VY |
206 | .SH bridge link - bridge port |
207 | ||
208 | .B link | |
209 | objects correspond to the port devices of the bridge. | |
210 | ||
211 | .P | |
212 | The corresponding commands set and display port status and bridge specific | |
213 | attributes. | |
214 | ||
215 | .SS bridge link set - set bridge specific attributes on a port | |
216 | ||
217 | .TP | |
218 | .BI dev " NAME " | |
219 | interface name of the bridge port | |
220 | ||
221 | .TP | |
222 | .BI cost " COST " | |
223 | the STP path cost of the specified port. | |
224 | ||
225 | .TP | |
226 | .BI priority " PRIO " | |
a89d5329 PŠ |
227 | the STP port priority. The priority value is an unsigned 8-bit quantity |
228 | (number between 0 and 255). This metric is used in the designated port an | |
aa2f1335 VY |
229 | droot port selectio algorithms. |
230 | ||
231 | .TP | |
232 | .BI state " STATE " | |
a89d5329 PŠ |
233 | the operation state of the port. This is primarily used by user space STP/RSTP |
234 | implementation. One may enter a lowercased port state name, or one of the | |
235 | numbers below. Negative inputs are ignored, and unrecognized names return an | |
6b8c871d | 236 | error. |
aa2f1335 VY |
237 | |
238 | .B 0 | |
a89d5329 | 239 | - port is DISABLED. Make this port completely inactive. |
aa2f1335 VY |
240 | .sp |
241 | ||
242 | .B 1 | |
7fab22ab | 243 | - STP LISTENING state. Only valid if STP is enabled on the bridge. In this |
3aa8f8cb | 244 | state the port listens for STP BPDUs and drops all other traffic frames. |
aa2f1335 VY |
245 | .sp |
246 | ||
247 | .B 2 | |
a89d5329 | 248 | - STP LEARNING state. Only valid if STP is enabled on the bridge. In this |
aa2f1335 | 249 | state the port will accept traffic only for the purpose of updating MAC |
ac0817ef | 250 | address tables. |
aa2f1335 VY |
251 | .sp |
252 | ||
253 | .B 3 | |
a89d5329 | 254 | - STP FORWARDING state. Port is fully active. |
aa2f1335 VY |
255 | .sp |
256 | ||
257 | .B 4 | |
a89d5329 PŠ |
258 | - STP BLOCKING state. Only valid if STP is enabled on the bridge. This state |
259 | is used during the STP election process. In this state, port will only process | |
aa2f1335 VY |
260 | STP BPDUs. |
261 | .sp | |
262 | ||
263 | .TP | |
264 | .BR "guard on " or " guard off " | |
400b5404 | 265 | Controls whether STP BPDUs will be processed by the bridge port. By default, |
a89d5329 | 266 | the flag is turned off allowed BPDU processing. Turning this flag on will |
aa2f1335 VY |
267 | cause the port to stop processing STP BPDUs. |
268 | ||
269 | .TP | |
270 | .BR "hairpin on " or " hairpin off " | |
271 | Controls whether traffic may be send back out of the port on which it was | |
a89d5329 | 272 | received. By default, this flag is turned off and the bridge will not forward |
aa2f1335 VY |
273 | traffic back out of the receiving port. |
274 | ||
275 | .TP | |
276 | .BR "fastleave on " or " fastleave off " | |
277 | This flag allows the bridge to immediately stop multicast traffic on a port | |
a89d5329 PŠ |
278 | that receives IGMP Leave message. It is only used with IGMP snooping is |
279 | enabled on the bridge. By default the flag is off. | |
aa2f1335 VY |
280 | |
281 | .TP | |
282 | .BR "root_block on " or " root_block off " | |
a89d5329 PŠ |
283 | Controls whether a given port is allowed to become root port or not. Only used |
284 | when STP is enabled on the bridge. By default the flag is off. | |
aa2f1335 | 285 | |
f0f4ab60 VY |
286 | .TP |
287 | .BR "learning on " or " learning off " | |
288 | Controls whether a given port will learn MAC addresses from received traffic or | |
a89d5329 PŠ |
289 | not. If learning if off, the bridge will end up flooding any traffic for which |
290 | it has no FDB entry. By default this flag is on. | |
f0f4ab60 | 291 | |
674bb438 SF |
292 | .TP |
293 | .BR "learning_sync on " or " learning_sync off " | |
294 | Controls whether a given port will sync MAC addresses learned on device port to | |
295 | bridge FDB. | |
296 | ||
f0f4ab60 VY |
297 | .TP |
298 | .BR "flooding on " or " flooding off " | |
a89d5329 | 299 | Controls whether a given port will flood unicast traffic for which there is no FDB entry. By default this flag is on. |
f0f4ab60 | 300 | |
aa2f1335 VY |
301 | .TP |
302 | .BI hwmode | |
303 | Some network interface cards support HW bridge functionality and they may be | |
a89d5329 | 304 | configured in different modes. Currently support modes are: |
aa2f1335 VY |
305 | |
306 | .B vepa | |
307 | - Data sent between HW ports is sent on the wire to the external | |
308 | switch. | |
309 | ||
310 | .B veb | |
311 | - bridging happens in hardware. | |
312 | ||
9208b4e7 NA |
313 | .TP |
314 | .BR "mcast_flood on " or " mcast_flood off " | |
315 | Controls whether a given port will be flooded with multicast traffic for which there is no MDB entry. By default this flag is on. | |
316 | ||
22a98f51 RP |
317 | .TP |
318 | .BI self | |
319 | link setting is configured on specified physical device | |
320 | ||
321 | .TP | |
322 | .BI master | |
323 | link setting is configured on the software bridge (default) | |
324 | ||
25bc3d3d SA |
325 | .TP |
326 | .BR "\-t" , " \-timestamp" | |
327 | display current time when using monitor option. | |
22a98f51 | 328 | |
aa2f1335 VY |
329 | .SS bridge link show - list bridge port configuration. |
330 | ||
331 | This command displays the current bridge port configuration and flags. | |
332 | ||
d04bc300 SH |
333 | .SH bridge fdb - forwarding database management |
334 | ||
335 | .B fdb | |
fc31817d | 336 | objects contain known Ethernet addresses on a link. |
d04bc300 SH |
337 | |
338 | .P | |
339 | The corresponding commands display fdb entries, add new entries, | |
7578ae88 | 340 | append entries, |
d04bc300 SH |
341 | and delete old ones. |
342 | ||
d611682a | 343 | .SS bridge fdb add - add a new fdb entry |
d04bc300 | 344 | |
d611682a | 345 | This command creates a new fdb entry. |
d04bc300 SH |
346 | |
347 | .TP | |
7578ae88 | 348 | .BI "LLADDR" |
d04bc300 SH |
349 | the Ethernet MAC address. |
350 | ||
351 | .TP | |
7578ae88 | 352 | .BI dev " DEV" |
d04bc300 SH |
353 | the interface to which this address is associated. |
354 | ||
c6d0cfb5 RP |
355 | .B local |
356 | - is a local permanent fdb entry | |
357 | .sp | |
358 | ||
359 | .B static | |
360 | - is a static (no arp) fdb entry | |
361 | .sp | |
362 | ||
363 | .B dynamic | |
364 | - is a dynamic reachable age-able fdb entry | |
365 | .sp | |
366 | ||
d611682a | 367 | .B self |
cd8df30b RP |
368 | - the address is associated with the port drivers fdb. Usually hardware. |
369 | .sp | |
370 | ||
371 | .B master | |
372 | - the address is associated with master devices fdb. Usually software (default). | |
d611682a JF |
373 | .sp |
374 | ||
7578ae88 TR |
375 | .B router |
376 | - the destination address is associated with a router. | |
377 | Valid if the referenced device is a VXLAN type device and has | |
378 | route shortcircuit enabled. | |
379 | .sp | |
380 | ||
cd8df30b RP |
381 | .B use |
382 | - the address is in use. User space can use this option to | |
383 | indicate to the kernel that the fdb entry is in use. | |
384 | .sp | |
385 | ||
d04bc300 | 386 | .in -8 |
7578ae88 TR |
387 | The next command line parameters apply only |
388 | when the specified device | |
389 | .I DEV | |
390 | is of type VXLAN. | |
391 | .TP | |
392 | .BI dst " IPADDR" | |
393 | the IP address of the destination | |
394 | VXLAN tunnel endpoint where the Ethernet MAC ADDRESS resides. | |
395 | ||
396 | .TP | |
397 | .BI vni " VNI" | |
398 | the VXLAN VNI Network Identifier (or VXLAN Segment ID) | |
399 | to use to connect to the remote VXLAN tunnel endpoint. | |
400 | If omitted the value specified at vxlan device creation | |
401 | will be used. | |
402 | ||
403 | .TP | |
404 | .BI port " PORT" | |
405 | the UDP destination PORT number to use to connect to the | |
406 | remote VXLAN tunnel endpoint. | |
407 | If omitted the default value is used. | |
408 | ||
409 | .TP | |
410 | .BI via " DEVICE" | |
411 | device name of the outgoing interface for the | |
412 | VXLAN device driver to reach the | |
5699275b | 413 | remote VXLAN tunnel endpoint. |
7578ae88 TR |
414 | |
415 | .SS bridge fdb append - append a forwarding database entry | |
416 | This command adds a new fdb entry with an already known | |
417 | .IR LLADDR . | |
418 | Valid only for multicast link layer addresses. | |
419 | The command adds support for broadcast and multicast | |
420 | Ethernet MAC addresses. | |
421 | The Ethernet MAC address is added multiple times into | |
422 | the forwarding database and the vxlan device driver | |
423 | sends a copy of the data packet to each entry found. | |
424 | ||
425 | .PP | |
426 | The arguments are the same as with | |
fc31817d | 427 | .BR "bridge fdb add" . |
d04bc300 SH |
428 | |
429 | .SS bridge fdb delete - delete a forwarding database entry | |
430 | This command removes an existing fdb entry. | |
431 | ||
432 | .PP | |
433 | The arguments are the same as with | |
fc31817d | 434 | .BR "bridge fdb add" . |
d04bc300 | 435 | |
6e2e2cf0 PS |
436 | .SS bridge fdb replace - replace a forwarding database entry |
437 | If no matching entry is found, a new one will be created instead. | |
438 | ||
439 | .PP | |
440 | The arguments are the same as with | |
fc31817d | 441 | .BR "bridge fdb add" . |
6e2e2cf0 | 442 | |
d04bc300 SH |
443 | .SS bridge fdb show - list forwarding entries. |
444 | ||
49572501 | 445 | This command displays the current forwarding table. |
d04bc300 SH |
446 | |
447 | .PP | |
448 | With the | |
449 | .B -statistics | |
a89d5329 | 450 | option, the command becomes verbose. It prints out the last updated |
d04bc300 SH |
451 | and last used time for each entry. |
452 | ||
54e9c3a3 PP |
453 | .SH bridge mdb - multicast group database management |
454 | ||
455 | .B mdb | |
456 | objects contain known IP multicast group addresses on a link. | |
457 | ||
458 | .P | |
459 | The corresponding commands display mdb entries, add new entries, | |
460 | and delete old ones. | |
461 | ||
462 | .SS bridge mdb add - add a new multicast group database entry | |
463 | ||
464 | This command creates a new mdb entry. | |
465 | ||
466 | .TP | |
467 | .BI dev " DEV" | |
468 | the interface where this group address is associated. | |
469 | ||
470 | .TP | |
471 | .BI port " PORT" | |
472 | the port whose link is known to have members of this multicast group. | |
473 | ||
474 | .TP | |
475 | .BI grp " GROUP" | |
476 | the IP multicast group address whose members reside on the link connected to | |
477 | the port. | |
478 | ||
479 | .B permanent | |
480 | - the mdb entry is permanent | |
481 | .sp | |
482 | ||
483 | .B temp | |
484 | - the mdb entry is temporary (default) | |
485 | .sp | |
486 | ||
6aac8617 NA |
487 | .TP |
488 | .BI vid " VID" | |
489 | the VLAN ID which is known to have members of this multicast group. | |
490 | ||
54e9c3a3 PP |
491 | .in -8 |
492 | .SS bridge mdb delete - delete a multicast group database entry | |
493 | This command removes an existing mdb entry. | |
494 | ||
495 | .PP | |
496 | The arguments are the same as with | |
497 | .BR "bridge mdb add" . | |
498 | ||
499 | .SS bridge mdb show - list multicast group database entries | |
500 | ||
501 | This command displays the current multicast group membership table. The table | |
502 | is populated by IGMP and MLD snooping in the bridge driver automatically. It | |
503 | can be altered by | |
504 | .B bridge mdb add | |
505 | and | |
506 | .B bridge mdb del | |
507 | commands manually too. | |
508 | ||
509 | .TP | |
510 | .BI dev " DEV" | |
511 | the interface only whose entries should be listed. Default is to list all | |
512 | bridge interfaces. | |
513 | ||
514 | .PP | |
515 | With the | |
516 | .B -details | |
a89d5329 | 517 | option, the command becomes verbose. It prints out the ports known to have |
54e9c3a3 PP |
518 | a connected router. |
519 | ||
05d4f64d NA |
520 | .PP |
521 | With the | |
522 | .B -statistics | |
ba037267 | 523 | option, the command displays timer values for mdb and router port entries. |
05d4f64d | 524 | |
ab938710 VY |
525 | .SH bridge vlan - VLAN filter list |
526 | ||
527 | .B vlan | |
528 | objects contain known VLAN IDs for a link. | |
529 | ||
530 | .P | |
531 | The corresponding commands display vlan filter entries, add new entries, | |
532 | and delete old ones. | |
533 | ||
534 | .SS bridge vlan add - add a new vlan filter entry | |
535 | ||
536 | This command creates a new vlan filter entry. | |
537 | ||
538 | .TP | |
539 | .BI dev " NAME" | |
540 | the interface with which this vlan is associated. | |
541 | ||
542 | .TP | |
543 | .BI vid " VID" | |
544 | the VLAN ID that identifies the vlan. | |
545 | ||
546 | .TP | |
547 | .BI pvid | |
548 | the vlan specified is to be considered a PVID at ingress. | |
549 | Any untagged frames will be assigned to this VLAN. | |
550 | ||
551 | .TP | |
552 | .BI untagged | |
553 | the vlan specified is to be treated as untagged on egress. | |
554 | ||
555 | .TP | |
556 | .BI self | |
a89d5329 | 557 | the vlan is configured on the specified physical device. Required if the |
ab938710 VY |
558 | device is the bridge device. |
559 | ||
560 | .TP | |
561 | .BI master | |
6274b0b7 | 562 | the vlan is configured on the software bridge (default). |
ab938710 | 563 | |
296cee6f VD |
564 | .SS bridge vlan delete - delete a vlan filter entry |
565 | This command removes an existing vlan filter entry. | |
ab938710 VY |
566 | |
567 | .PP | |
568 | The arguments are the same as with | |
569 | .BR "bridge vlan add". | |
570 | The | |
571 | .BR "pvid " and " untagged" | |
572 | flags are ignored. | |
573 | ||
574 | .SS bridge vlan show - list vlan configuration. | |
575 | ||
576 | This command displays the current VLAN filter table. | |
577 | ||
7abf5de6 NA |
578 | .PP |
579 | With the | |
580 | .B -statistics | |
581 | option, the command displays per-vlan traffic statistics. | |
582 | ||
d04bc300 SH |
583 | .SH bridge monitor - state monitoring |
584 | ||
585 | The | |
586 | .B bridge | |
fc31817d | 587 | utility can monitor the state of devices and addresses |
a89d5329 | 588 | continuously. This option has a slightly different format. |
d04bc300 SH |
589 | Namely, the |
590 | .B monitor | |
591 | command is the first in the command line and then the object list follows: | |
592 | ||
593 | .BR "bridge monitor" " [ " all " |" | |
49572501 | 594 | .IR OBJECT-LIST " ]" |
d04bc300 SH |
595 | |
596 | .I OBJECT-LIST | |
597 | is the list of object types that we want to monitor. | |
598 | It may contain | |
fc31817d | 599 | .BR link ", " fdb ", and " mdb "." |
d04bc300 SH |
600 | If no |
601 | .B file | |
602 | argument is given, | |
603 | .B bridge | |
604 | opens RTNETLINK, listens on it and dumps state changes in the format | |
605 | described in previous sections. | |
606 | ||
607 | .P | |
608 | If a file name is given, it does not listen on RTNETLINK, | |
609 | but opens the file containing RTNETLINK messages saved in binary format | |
efb16971 | 610 | and dumps them. |
d04bc300 SH |
611 | |
612 | .SH NOTES | |
613 | This command uses facilities added in Linux 3.0. | |
614 | ||
615 | Although the forwarding table is maintained on a per-bridge device basis | |
616 | the bridge device is not part of the syntax. This is a limitation of the | |
617 | underlying netlink neighbour message protocol. When displaying the | |
618 | forwarding table, entries for all bridges are displayed. | |
619 | Add/delete/modify commands determine the underlying bridge device | |
6274b0b7 | 620 | based on the bridge to which the corresponding ethernet device is attached. |
d04bc300 SH |
621 | |
622 | ||
623 | .SH SEE ALSO | |
624 | .BR ip (8) | |
49572501 | 625 | .SH BUGS |
d04bc300 SH |
626 | .RB "Please direct bugreports and patches to: " <netdev@vger.kernel.org> |
627 | ||
628 | .SH AUTHOR | |
629 | Original Manpage by Stephen Hemminger |