]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Better documentation of BDPU guard
authorBastien Roucariès <rouca@debian.org>
Sun, 12 Apr 2020 23:50:36 +0000 (01:50 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 20 Apr 2020 16:45:37 +0000 (09:45 -0700)
Document that guard disable the port and how to reenable it

Signed-off-by: Bastien Roucariès <rouca@debian.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
man/man8/bridge.8

index bd33635ad2973bb72da6873b149f7f49b12c3153..9bfd942f027205a062e2f8a4f174be5c541cdb1e 100644 (file)
@@ -340,7 +340,18 @@ STP BPDUs.
 .BR "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.
+disables
+the bridge port if a STP BPDU packet is received.
+
+If running Spanning Tree on bridge, hostile devices on the network
+may send BPDU on a port and cause network failure. Setting
+.B guard on
+will detect and stop this by disabling the port.
+The port will be restarted if link is brought down, or
+removed and reattached.  For example if guard is enable on
+eth0:
+
+.B ip link set dev eth0 down; ip link set dev eth0 up
 
 .TP
 .BR "hairpin on " or " hairpin off "