Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    stp (Spanning Trees)


    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]

    Release Information

    Statement introduced in Junos OS Release 9.0 for EX Series switches.


    Configure Spanning Tree Protocol (STP). When you explicitly configure STP, the switches use 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).

    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.

    The remaining statements are explained separately.


    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.

    Modified: 2014-10-31