.TH RSTPCTL 8 "August 20, 2006" "" "" .SH NAME rstpctl \- rstpd spanning tree protocol administration .SH SYNOPSIS .BR "rstpctl [command]" .SH DESCRIPTION .B rstpctl is used to set up, maintain, and inspect the bridge RSTP configuration for ethernet bridges as implemented using .BR rstpd (8). .BR rstpd implements the spanning tree algorithm specified by the Rapid Spanning Tree Protocol (RSTP). An implementation of the original Spanning Tree Protocol (STP) is provided by the Linux kernel bridging code and can be enabled and controlled using the .BR "brctl" command. .SH COMMANDS .B rstpctl rstp {on|off} configures whether rstpd implements RSTP (Rapid Spanning Tree Protocol) for the specified bridge. The remaining commands are applicable only if rstpd is configured to run RSTP on that bridge. .B rstpctl showbridge [ ... ] displays the spanning tree configuration and status for the specified bridges. If no bridges are given, it displays the information for all bridges. .B rstpctl showport [ ... ] displays, as one line per port, the spanning tree configuration and status for the specified ports. If no ports are specified, it displays the information for all ports of the bridge. The format of the line is : .br .B "pes name iiii sss rrrr-rootbridgeid dddd-desgbridgeid dprt R" .br where the following abbreviations are used. \fBp\fR: '*' if the port link is not point to point, ' ' otherwise. .br \fBe\fR: 'E' if the port is operating as an edge port, ' ' otherwise. .br \fBs\fR: 's' if the port is in STP (slow) mode, ' ' otherwise. .br \fBname\fR: The name of the port, i.e, the network interface name. .br \fBiiii\fR: The port id, containing the port priority and port number .br \fBsss\fR: The port state, one of Dis (disabled), Blk (blocking), Lrn (learning), Fwd (forwading), Non (non-stp), Unk (unknown). .br \fBrrrr-rootbridgeid\fR: Root bridge id, including priority. .br \fBdddd-desgbridgeid\fR: Designated bridge id, including priority .br \fBdprt\fR: Designated port id .br \fBR\fR: Port role, one of 'A' (alternate), 'B' (backup), 'R' (root), 'D' (designated), '-' (non-stp) .B rstpctl showportdetail [ ... ] displays the spanning tree configuration and status for the specified ports much more verbosely. If no ports are specified, it displays the information for all ports of the bridge. .B rstpctl setbridgestate {on|off} enables/disables the operation of RSTP. When RSTP is configured with the .BR rstp subcommand listed above, the default is enabled. .B rstpctl setbridgeprio sets the bridge's priority to . The priority value is a number between 0 and 61440 in steps of 4096, and defaults to 32768. Lower priority values are 'better'. The bridge with the lowest priority will be elected 'root bridge'. .B rstpctl sethello