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

mstp

date_range 20-Nov-23

MX Series, QFX Series, EX Series (Enhanced Layer 2 Software (ELS) Configuration Style)

content_copy zoom_out_map
mstp {
    backup-bridge-priority priority;
    bpdu-block-on-edge;
    bpdu-destination-mac-address provider-bridge-group;
    bridge-priority priority;
    configuration-name configuration-name;
    disable;
    forward-delay seconds;
    hello-time seconds;
    interface ( all | interface-name ) {
        bpdu-timeout-action {
            alarm;
            block;
        }
        cost cost;
        edge;
        mode (p2p | shared);
        no-root-port;
        priority interface-priority;
    }
    max-age seconds;
    max-hops hops;
    msti msti-id {
        backup-bridge-priority priority;
        bridge-priority priority;
        interface interface-name {
            cost cost;
            priority interface-priority;
        }
        vlan vlan-id;
    }
    priority-hold-time seconds;
    revision-level revision-level;
    system-id system-id-value {
        ip-address(es);
    }
    traceoptions {
        file filename <files number> <size size> <world-readable | no-world-readable>;
        flag flag <flag-modifier> <disable>;
    }
    vpls-flush-on-topology-change;
}

EX Series (Without Enhanced Layer 2 Software (ELS) Configuration Style)

content_copy zoom_out_map
mstp  {
                  bpdu-block-on-edge;
                         bridge-priority                     priority;
                         configuration-name                     name;
                         disable;
                         forward-delay                     seconds;
                         hello-time                     seconds;
                             interface ( all | interface-name  ){
                                     bpdu-timeout-action {
                                         block;
                                         log;
        }
                                 cost                          cost;
                                 disable;
                                 edge;
                                 mode                         mode;
                                 no-root-port;
                                 priority                         priority;
    }
                         max-age                      seconds;
                         max-hops                     hops;
                             msti                         msti-id {
        bridge-priority priority;
        interface                             interface-name {
            cost                            cost;
            disable;
            priority                             priority;
        }
        vlan (vlan-id | vlan-name);
    }
    revision-level                     revision-level;
    traceoptions {
        file filename <files number > <size size> <no-stamp | world-readable | no-world-readable>;
        flag flag;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name protocols],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols],
[edit protocols],
[edit routing-instances routing-instance-name protocols]

Description

Configures Multiple Spanning Tree Protocol (MSTP). MSTP is defined in the IEEE 802.1Q-2003 specification and is used to create a loop-free topology in networks with multiple spanning tree regions.

Note:

MX Series routers and QFX5100 switches do not support the interface all statement to enable MSTP on all interfaces with one command.

On MX Series routers, you must enable MSTP on interfaces individually using the set ... protocols mstp interface interface-name statement.

On QFX5100 switches, to apply MSTP configuration to more than one interface, you must first configure one or more interface ranges for the interfaces on which you want to configure MSTP, and then issue the set protocols mstp interface interface-name command using each interface range as the interface-name parameter.

The remaining statements are explained separately. See CLI Explorer.

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 8.4.

bpdu-block-on-edge statement added in Junos OS Release 9.4.

bpdu-timeout-action statement added in Junos OS Release 9.4.

Support for logical systems added in Junos OS Release 9.6.

footer-navigation