spanning-tree

interface-config-port-channel-instance

Configures spanning-tree related parameters on this port-channel interface

Supported in the following platforms:

  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000

Syntax

spanning-tree [bpdufilter|bpduguard|force-version|guard|link-type|mst|port-cisco-interoperability|portfast]
spanning-tree [bpdufilter|bpduguard] [default|disable|enable]
spanning-tree [force-version <0-3>|guard root|portfast|port-cisco-interoperability [disable|enable]]
spanning-tree link-type [point-to-point|shared]
spanning-tree mst <0-15> [cost <1-200000000>|port-priority <0-240>]]

Parameters

spanning-tree [bpdufilter|bpduguard] [default|disable|enable]
spanning-tree [bpdufilter| bpduguard] Configures the following BPDU related parameters for this port channel:
  • bpdufilter – Configures the BPDU filtering options. The options are:
    • default – When selected, makes the bridge BPDU filter value to take effect. This is the default setting.
    • disable – Disables BPDU filtering
    • enable – Enables BPDU filtering. Enabling the BPDU filter feature ensures this port channel does not transmit or receive any BPDUs.
  • bpduguard – Configures the BPDU guard options. The options are
    • default – When selected, makes the bridge BPDU guard value to take effect. This is the default setting.
    • disable – Disables guarding this port from receiving BPDUs
    • enable – Enables BPDU guarding. Enabling the BPDU guard feature means this port will shutdown on receiving a BPDU. Thus, no BPDUs are processed.

Execute the portfast command to ensure that fast transitions is enabled on this port channel before configuring BPDU filtering and guarding.

spanning-tree [force-version <0-3>|guard root|portfast|port-cisco-interoperability [disable|enable]]
spanning-tree [force-version <0-3>| guard root| portfast| port-cisco-interoperability [disable|enable] Configures the following MSTP related parameters for this port channel:
  • force-version <0-3> – Sets the protocol version to either STP(0), Not Supported(1), RSTP(2) or MSTP(3). MSTP is the default setting
  • guard root – Enforces root bridge placement. Setting the guard to Root ensures the port is a designated port. Typically, each guard root port is a designated port, unless two or more ports (within the root bridge) are connected together.
If the bridge receives superior (BPDUs) on a guard root-enabled port, the guard root moves the port to a root-inconsistent STP state. This state is equivalent to a listening state. No data is forwarded across the port. Thus, the guard root enforces the root bridge position.
  • portfast – Enables fast transitions on this port channel. When enabled, BPDU filtering and guarding can be enforced on this port. Enable the portfast option and then use the ‘bpdufilter‘ and bpduguard‘ options to configure BPDU filtering and guarding parameters. This option is disabled by default.
  • port-cisco-interoperability [disable|enable] – Enables or disables interoperability with Cisco's version of MSTP, which is incompatible with standard MSTP. This option is disabled by default.
spanning-tree link-type [point-to-point|shared]
spanning-tree link-type [point-to-point| shared] Configures the link type applicable on this port channel. The options are:
  • point-to-point – Configures a point-to-point link, which indicates the port should be treated as connected to a point-to-point link. Note, a port connected to the wireless device is a point-to-point link. This is the default setting.
  • shared – Configures a shared link, which indicates this port should be treated as having a shared connection. Note, A port connected to a hub is on a shared link.
spanning-tree mst <0-15> [cost <1-200000000>|port-priority <0-240>]
spanning-tree mst <0-15> [cost <1-200000000>| port-priority <0-240>] Configures the following MST parameters on this port:
  • mst <0-15> – Select the MST instance from 0 - 15.
    • cost <1-200000000> – Configures the port cost from 1 - 200000000. The default path cost depends on the user defined port speed.The cost helps determine the role of the port channel in the MSTP network. The designated cost is the cost for a packet to travel from this port to the root in the MSTP configuration. The slower the media, higher the cost.
  • port-priority <0-240> – Configures the port priority from 0 - 240. The lower the priority, greater is the likelihood of the port becoming a designated port.

Example

nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#spanning-tree portfast
nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#spanning-tree bpdufilter enable
nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#spanning-tree bpduguard enable
nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#spanning-tree force-version 3
nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#spanning-tree mst 1 cost 20000
nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#spanning-tree mst 1 port-priority 1

nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#show context
 interface port-channel1
  description "This port-channel is for enabling dynamic LACP."
  duplex full
  ipv6 nd trust
  ipv6 nd header-mismatch-validation
  spanning-tree portfast
  spanning-tree bpduguard enable
  spanning-tree bpdufilter enable
  spanning-tree mst 1 port-priority 1
  spanning-tree mst 1 cost 20000
  ip arp trust
  port-channel load-balance src-dst-mac
nx9500-6C8809(config-profile-testNX9000-if-port-channel1)#

Related Commands

no Removes or reverts to default the spanning-tree related parameters configured on this port channel interface