Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
keyboard_arrow_right

interface (Spanning Tree)

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
interface interface-name {
    bpdu-timeout-action {
        alarm;
        block;
    }
    cost cost;
    edge;
    mode (p2p | shared);
    no-root-port;
    priority interface-priority;
}

Syntax

content_copy zoom_out_map
interface interface-name {
    arp-on-stp;
     bpdu-timeout-action
         block;
        log;
     cost cost;
     disable;
     edge;
     mode mode;
     no-root-port;
     priority priority;
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems logical-system-name protocols (mstp | rstp | vstp)],
[edit logical-systems logical-system-name protocols vstp vlan vlan-id],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols (mstp | rstp | vstp)],
[edit logical-systems logical-system-name routing-instances routing-instance-name protocols vstp vlan vlan-id],
content_copy zoom_out_map
[edit protocols (mstp | rstp | vstp)],
[edit protocols vstp vlan vlan-id],
content_copy zoom_out_map
[edit protocols (mstp | rstp | vstp)],
[edit protocols vstp vlan vlan-id],
[edit protocols vstp vlan-group group group-name vlan (vlan-id | vlan-range |open-set-of-values)
content_copy zoom_out_map
[edit routing-instances routing-instance-name protocols (mstp | rstp | vstp)],
[edit routing-instances routing-instance-name protocols vstp vlan vlan-id]

Description

Configures the interface to participate in the RSTP, MSTP, or VSTP instance.

The edge, mode, and no-root-port options are not available at the [edit protocols mstp msti msti-id] hierarchy level.

Options

interface-name—Name of a Gigabit Ethernet or 10-Gigabit Ethernet interface.

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.

Statement updated in Junos OS Release 9.4 for EX Series switches to add VSTP support.

Support for logical systems added in Junos OS Release 9.6.

Statement updated in Junos OS Release 15.1 for EX Series switches to support configuration of spanning tree parameters globally on all interfaces.

Note:

You cannot disable spanning tree parameters globally on all interfaces.

external-footer-nav