Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

stp

date_range 12-Dec-23

Syntax

content_copy zoom_out_map
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)

content_copy zoom_out_map
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

content_copy zoom_out_map
[edit protocols], 
[edit protocols rstp force-version]

Description

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.

Note:

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.

footer-navigation