]> git.ipfire.org Git - people/ms/rstp.git/blame - rstpctl.8
Use new RSTP library.
[people/ms/rstp.git] / rstpctl.8
CommitLineData
ad02a0eb
SH
1.TH RSTPCTL 8 "August 20, 2006" "" ""
2.SH NAME
3rstpctl \- rstpd spanning tree protocol administration
4.SH SYNOPSIS
5.BR "rstpctl [command]"
6.SH DESCRIPTION
7.B rstpctl
8is used to set up, maintain, and inspect the bridge RSTP
9configuration for ethernet bridges as implemented using
10.BR rstpd (8).
11.BR rstpd
12implements the spanning tree algorithm specified by the Rapid Spanning
13Tree Protocol (RSTP). An implementation of the original Spanning Tree
14Protocol (STP) is provided by the Linux kernel bridging code and can
15be enabled and controlled using the
16.BR "brctl"
17command.
18
19.SH COMMANDS
20
ad02a0eb
SH
21.B rstpctl showbridge [<bridge> ... ]
22displays the spanning tree configuration and status for the specified
23bridges. If no bridges are given, it displays the information for all
24bridges.
25
26.B rstpctl showport <bridge> [<port> ... ]
27displays, as one line per port, the spanning tree configuration and
28status for the specified ports. If no ports are specified, it displays
29the information for all ports of the bridge.
30
31The format of the line is :
32.br
b600a2c3 33.B "pe name iiii ssss rrrr-rootbridgeid dddd-desgbridgeid dprt"
ad02a0eb
SH
34.br
35where the following abbreviations are used.
36
37\fBp\fR: '*' if the port link is not point to point, ' ' otherwise.
38.br
39\fBe\fR: 'E' if the port is operating as an edge port, ' ' otherwise.
40.br
ad02a0eb
SH
41\fBname\fR: The name of the port, i.e, the network interface name.
42.br
43\fBiiii\fR: The port id, containing the port priority and port number
44.br
b600a2c3
SA
45\fBssss\fR: The port state, one of down (disabled), disc (discarding),
46lear (learning), forw (forwading), unkn (unknown).
ad02a0eb
SH
47.br
48\fBrrrr-rootbridgeid\fR: Root bridge id, including priority.
49.br
50\fBdddd-desgbridgeid\fR: Designated bridge id, including priority
51.br
52\fBdprt\fR: Designated port id
ad02a0eb
SH
53
54
55.B rstpctl showportdetail <bridge> [<port> ... ]
56displays the spanning tree configuration and status for the specified
57ports much more verbosely. If no ports are specified, it displays the
58information for all ports of the bridge.
59
ad02a0eb
SH
60.B rstpctl setbridgeprio <bridge> <priority>
61sets the bridge's priority to <priority>. The priority value is a
62number between 0 and 61440 in steps of 4096, and defaults to 32768.
63Lower priority values are 'better'. The bridge with the lowest
64priority will be elected 'root bridge'.
65
66.B rstpctl sethello <bridge> <time>
67sets the bridge's 'bridge hello time' to <time> seconds.
68
69.B rstpctl setmaxage <bridge> <time>
70sets the bridge's 'maximum message age' to <time> seconds.
71
72.B rstpctl setfdelay <bridge> <time>
73sets the bridge's 'bridge forward delay' to <time> seconds.
74
75.B rstpctl setforcevers <bridge> {normal|slow}
76sets the bridge's spanning tree algorithm to operate in normal
77(i.e. RSTP) mode or force it to operate in slow (i.e. old STP)
78mode. In normal mode, RSTP falls back to STP on ports where it
79sees other hosts operating in STP mode.
80
b600a2c3
SA
81.B rstpctl settxholdcount <bridge> <tx_hold_count>
82sets the transmit hold count, which limits the rate of transmission
83of BPDUs. No more than <tx_hold_count> + 1 BPDUs are transmitted in
84one second. This is a number from 1 to 10.
85
ad02a0eb
SH
86.B rstpctl setportprio <bridge> <port> <priority>
87sets the ports's priority to <priority>. The priority value is a
88number from 0 to 240 in steps of 16, defaulting to 128.
89
90.B rstpctl setportpathcost <bridge> <port> <cost>
91sets the ports's path cost to <cost>. This is by default set
92automatically based on the link speed. This setting overrides the
93automatic setting. Setting this to zero puts it back in automatic
94mode.
95
b600a2c3
SA
96.B rstpctl setportadminedge <bridge> <port> {yes|no}
97sets or unsets the port's configuration as an edge port. If a port is
98an edge port, then it is assumed to be a leaf link in the graph, not
ad02a0eb
SH
99connected to any other bridges. Receiving any STP BPDU's on a port
100configured as an edge port turns off edge port behaviour for the port.
101
b600a2c3
SA
102.B rstpctl setportautoedge <bridge> <port> {yes|no}
103sets or unsets the port's configuration as an auto edge port.
104If it is configured as auto edge, the port is brought up based on a
105shorter timer when no response in received and treated as an edge port.
106Receiving any STP BPDU's turns off edge port behaviour for the port.
ad02a0eb
SH
107
108.B rstpctl portmcheck <bridge> <port>
109: This command is used when the port is operating in STP compatibility
110mode. I causes the bridge to transmit RSTP BPDUs and to test the
111hypothesis that non RSTP hosts have been removed from the LAN
112connected to the port, and if that is the case, the remaining hosts
113switch back to RSTP mode.
114
115.B rstpctl debuglevel <level>
116sets the level of verbosity of rstpd's logging.
117
118.SH NOTES
119TODO: Indicate lack of persistence of configuration across restarts of
120daemon.
121
122.SH SEE ALSO
123.BR rstpd(8),
124.BR brctl(8)
125
126.SH COPYRIGHT
127This manual page Copyright (c) 2006 EMC Corporation.
128
129This manual page is free software; you can redistribute it and/or modify it
130under the terms of the GNU General Public License as published by the Free
131Software Foundation; either version 2 of the License, or (at your option)
132any later version. It comes with NO WARRANTY.
133.\" The full GNU General Public License is included in this distribution in the
134.\" file called LICENSE.
135
136.SH AUTHOR
137Srinivas Aji <Aji_Srinivas@emc.com>