stp
Syntax
stp {
disable;
bridge-priority priority;
forward-delay seconds;
hello-time seconds;
interface (all | interface-name) {
disable;
bpdu-timeout-action {
block;
alarm;
}
cost cost;
edge;
mode mode;
no-root-port;
priority priority;
}
max-age seconds;
traceoptions {
file name <replace> <size size> <files number> <no-stamp>
<(world-readable | no-world-readable)>;
flag flag <flag-modifier> <disable>;
}
}
Syntax (EX Series)
stp {
bpdu-block-on-edge ;
bridge-priority priority;
disable;
forward-delay seconds;
hello-time seconds;
interface (all | interface-name) {
arp-on-stp;
bpdu-timeout-action {
block;
log;
}
cost cost;
disable;
mode mode;
no-root-port;
priority priority;
}
max-age seconds;
traceoptions {
file filename <files number > <size size> <no-stamp | world-readable | no-world-readable>;
flag flag;
}
}
Hierarchy Level
[edit protocols], [edit protocols rstp force-version]
Description
Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.
When you explicitly configure STP, a switch uses the IEEE 802.1D 2004 specification, force version 0. This configuration runs a version of RSTP that is compatible with the classic, basic STP (defined in the IEEE 802.1D 1998 specification).
The remaining statements are explained separately. See CLI Explorer.
Although the edge configuration statement appears
in the CLI on the switch, this statement has no effect on the switch
operation if you configure it.
Default
STP is disabled; by default, RSTP is enabled on all Ethernet switching ports.
Required Privilege Level
routing—To view this statement in the configuration.routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 9.0.