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