Nuance Power PDF Trial: Spanning Tree Commands
Nuance Power PDF Trial: Spanning Tree Commands
ria
FT
Spanning Tree Commands
• spanning-tree bpdu (Global), page 2
c D
• spanning-tree forward-time, page 3
• spanning-tree hello-time, page 4
P
om
• spanning-tree loopback-guard, page 5
• spanning-tree max-age, page 6
n r
• spanning-tree mode, page 7
e
• spanning-tree pathcost method, page 8
ce.
w.n w
• spanning-tree priority, page 9
• spanning-tree enable, page 10
o
ua
• spanning-tree bpdu (Interface), page 11
P
l
ria
configuration, use the no form of this command.
FT
Syntax Description filtering Specifies that BPDU packets are filtered when the spanning tree is disabled on an
interface.
Specifies that untagged BPDU packets are flooded unconditionally (without applying
c D
flooding
VLAN rules) to all ports where spanning tree is disabled and the BPDU handling
mode is flooding. Tagged BPDU packets are filtered.
P
om
Command Default
n r
The default setting is flooding.
e
Command Modes Switch configuration (config-switch)
ce.
w.n w
o
Command History Release Modification
ua
Usage Guidelines The filtering and flooding modes are relevant when the spanning tree is disabled globally or on a single
ww
interface.
an
Examples The following example sets the BPDU packet handling mode to flooding when the spanning tree is disabled
on an interface:
nfvis(config-switch)# commit
nfvis(config-switch)# end
spanning-tree forward-time
To configure the spanning-tree bridge forward time, which is the amount of time a port remains in the listening
and learning states before entering the forwarding state, use the spanning-tree forward-time command in
l
ria
switch configuration mode. To restore the default configuration, use the no form of this command.
FT
Syntax Description seconds Specifies the spanning-tree forward time in seconds. Valid range is from 4 to
30.
c D
Command Default 15 seconds
P
om
Command Modes Switch configuration (config-switch)
n r
e
Command History Release
ce.
Modification
w.n w
Usage Guidelines When configuring the forwarding time, the following relationship should be maintained:
2 * (Forward-Time - 1) >= Max-Age >= 2 * (Hello-Time + 1)
ce
Examples The following example configures the spanning tree bridge forwarding time to 25 seconds:
ww
nfvis(config-switch)# commit
nfvis(config-switch)# end
Nu
spanning-tree hello-time
To configure how often the device broadcasts Hello messages to other devices, use the spanning-tree hello-time
command in switch configuration mode. To restore the default configuration, use the no form of this command
l
ria
spanning-tree hello-time seconds
no spanning-tree hello-time
FT
Syntax Description seconds Specifies the spanning-tree Hello time in seconds. Range is from 1 to 10.
c D
Command Default 2 seconds
P
om
Command Modes Switch configuration (config-switch)
Examples The following example configures the spanning-tree bridge hello time to 5 seconds:
ce
nfvis(config-switch)# commit
nfvis(config-switch)# end
an
Nu
spanning-tree loopback-guard
To shut down an interface if it receives a loopback BPDU, use the spanning-tree loopback-guard command
in switch configuration mode. To return to the default setting, use the no form of this command.
l
ria
spanning-tree loopback-guard
no spanning-tree loopback-guard
FT
Syntax Description This command has no arguments.
c D
Command Default None
P
om
Command Modes Switch configuration (config-switch)
Examples
nfvis(config-switch)# spanning-tree loopback-guard
nfvis(config-switch)# commit
nfvis(config-switch)# end
ce
ww
an
Nu
spanning-tree max-age
To configure the STP maximum age, use the spanning-tree max-age command in switch configuration mode.
To restore the default configuration, use the no form of this command.
l
ria
spanning-tree max-age seconds
no spanning-tree max-age
FT
Syntax Description seconds Specifies the spanning-tree bridge maximum age in seconds. Valid range is from
6 to 40
c D
Command Default 20 seconds.
P
om
Command Modes Switch configuration (config-switch)
n r
e
Command History Release Modification
ce.
3.5.1 This command was introduced.
w.n w
o
ua
Usage Guidelines When configuring the maximum age, the following relationships should be maintained:
P
Examples The following example sets the spanning-tree bridge maximum age to 10 seconds.
nfvis(config-switch)# commit
nfvis(config-switch)# end
Nu
spanning-tree mode
To select which Spanning Tree Protocol (STP) protocol to run, use the spanning-tree mode command in
switch configuration mode. To restore the default configuration, use the no form of this command.
l
ria
spanning-tree mode {stp | rstp}
no spanning-tree mode
FT
Syntax Description stp Specifies that STP is enabled.
c D
Command Default The default is rstp.
P
om
Command Modes Switch configuration (config-switch)
n r
e
Command History Release
ce.
Modification
w.n w
nfvis(config-switch)# end
ww
an
Nu
l
ria
spanning-tree pathcost method {long | short}
no spanning-tree pathcost method
FT
Syntax Description long Use 32-bit based values for default port path costs.
short Use 16-bit based values for default port path costs.
c D
Command Default Long path cost method.
P
om
Command Modes Switch configuration (config-switch)
n r
e
Command History Release Modification
ce.
w.n w
Usage Guidelines This command applies to all the spanning tree instances on the switch.
• If the short method is selected, the switch calculates the default cost as 100.
• If the long method is selected, the switch calculates the default cost as 20000.
ce
ww
Examples The following example sets the default path cost method to Long.
an
spanning-tree priority
To configure the device STP priority, which is used to determine which bridge is selected as the root bridge,
use the spanning-tree priority command in switch configuration mode. To restore the default device
l
ria
spanning-tree priority, use the no form of this command
FT
Syntax Description priority Specifies the bridge priority. Valid range is from 0 to 61440.
c D
Command Default The default priority is 32768.
P
om
Command Modes Switch configuration (config-switch)
n r
e
Command History Release Modification
ce.
3.5.1 This command was introduced.
w.n w
o
ua
The switch with the lowest priority is the root of the spanning tree. When more than one switch has the lowest
priority, the switch with the lowest MAC address is selected as the root.
ce
nfvis(config-switch)# commit
nfvis(config-switch)# end
Nu
spanning-tree enable
To enable the spanning-tree functionality, use the spanning-tree enable command in switch configuration
mode. To disable the spanning-tree functionality, use the no form of this command.
l
ria
spanning-tree enable
no spanning-tree enable
FT
Syntax Description This command has no arguments.
c D
Command Default Spanning-tree is enabled.
P
om
Command Modes Switch configuration (config-switch)
l
ria
configuration, use the no form of this command.
FT
Syntax Description filtering Specifies that BPDU packets are filtered when the spanning tree is disabled on an
interface.
Specifies that untagged BPDU packets are flooded unconditionally (without applying
c D
flooding
VLAN rules) to all ports with the spanning tree disabled and the BPDU handling
mode of flooding. Tagged BPDU packets are filtered.
P
om
Command Default
n r
The spanning-tree bpdu (Global) command determines the default configuration.
e
Command Modes
ce.
Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
w.n w
o
Command History Release Modification
ua
Usage Guidelines The filtering and flooding modes are relevant when the spanning tree is disabled globally or on a single
ww
interface.
an
Examples The following example defines the BPDU packet as flooding when the spanning tree is disabled on Gigabit
Ethernet interface 1/1:
spanning-tree bpduguard
To shut down an interface when it receives a Bridge Protocol Data Unit (BPDU), use the spanning-tree
bpduguard command in interface switch configuration mode. To restore the default configuration, use the
l
ria
no form of this command.
FT
Syntax Description enable Enables BPDU Guard.
c D
P
om
Command Default BPDU Guard is disabled.
Command Modes
n r
Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
e
Command History
ce.
w.n w
Release Modification
3.5.1 This command was introduced.
o
ua
P
Usage Guidelines BPDU guard can be enabled when the spanning tree is enabled (useful when the port is in the PortFast mode)
or disabled.
ce
ww
Examples The following example shuts down the Gigabit Ethernet interface 1/1 when it receives a BPDU.
spanning-tree cost
To configure the spanning-tree path cost for a port, use the spanning-tree cost command in interface switch
configuration mode. To restore the default configuration, use the no form of this command.
l
ria
spanning-tree cost cost
no spanning-tree cost
FT
Syntax Description cost Specifies the port path cost. Valid range is from 1 to 200000000.
c D
Command Default Default path cost is determined by port speed and path cost method (long or short).
Table 1:
P
om
Interface Long Short
Port-channel n r 20,000 4
e
Gigabit Ethernet (1000 Mbps) 20,000
ce. 4
w.n w
Command Modes Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
Command History
ce
Release Modification
ww
Examples The following example configures the spanning-tree cost on Gigabit Ethernet interface 1/1 to 35000.
Nu
l
ria
device. Use the no form of this command to disable the root guard on the interface.
FT
Syntax Description This command has no arguments.
c D
Command Default Root guard is disabled.
P
om
Command Modes Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
n r
e
Command History Release Modification
ce.
3.5.1 This command was introduced.
w.n w
o
ua
Usage Guidelines Root guard can be enabled when the device operates in any mode (STP, RSTP, and MSTP).
P
When root guard is enabled, the port changes to the alternate state if the spanning-tree calculations select the
port as the root port.
ce
Examples The following example prevents Gigabit Ethernet interface 1/1 from being the root port of the device.
ww
spanning-tree link-type
To override the default link-type setting determined by the port duplex mode, and enable RSTP transitions
to the Forwarding state, use the spanning-tree link-type command in interface switch configuration mode.
l
ria
To restore the default configuration, use the no form of this command.
FT
Syntax Description point-to-point Specifies that the port link type is point-to-point.
c D
P
om
Command Default The device derives the port link type from the duplex mode. A full-duplex port is considered a point-to-point
link and a half-duplex port is considered a shared link.
Command Modes
n r
e
Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
ce.
w.n w
Examples The following example enables shared spanning-tree on Gigabit Ethernet interface 1/1.
ce
spanning-tree port-priority
To configure the port priority, use the spanning-tree port-priority command in interface switch configuration
mode. To restore the default configuration, use the no form of this command.
l
ria
spanning-tree port-priority priority
no spanning-tree port-priority
FT
Syntax Description priority Specifies the port priority. Valid range is from 0 to 240.
c D
Command Default The default port priority is 128.
P
om
Command Modes Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
Examples The following example configures the spanning priority on Gigabit Ethernet interface 1/1 to 96.
nfvis(config-switch-if)# end
an
Nu
spanning-tree portfast
To enable the PortFast mode, use the spanning-tree portfast command in interface switch configuration
mode. In PortFast mode, the interface is immediately put into the forwarding state upon linkup, without waiting
l
ria
for the standard forward time delay. To disable the PortFast mode, use the no form of this command.
FT
Syntax Description auto Specifies that the software waits for 3 seconds (with no BPDUs received on the
interface) before putting the interface into the PortFast mode.
c D
enable
P
om
Command Default PortFast mode is disabled.
Command Modes
n r
e
Interface (Gigabit Ethernet, Port Channel) switch configuration (config-switch-if)
ce.
w.n w
Examples The following example enables the PortFast mode on Gigabit Ethernet interface 1/1:
ce
l
ria
switch show spanning-tree [bridge | interface {gigabitEthernet | port-channel} interface-id | root |
summary]
FT
Syntax Description bridge Displays the bridge information.
c D
port-channel Specifies port channel as the interface type.
P
interface-id Specifies the interface ID.
om
root Displays the bridge information.
summary
n r Displays the spanning-tree summary.
e
ce.
w.n w
Examples The following is a sample output of the show switch spanning-tree command
l
spanning-tree bridge Forward-Delay 15
ria
ADMIN PRIO. PORT PORT GUARD
PORT STATE NBR COST STATE ROLE FAST TYPE ROOT
-------------------------------------------------------------------------
gi1/0 enabled 128.1 2000000 disabled Disable No -- disabled
gi1/1 enabled 128.2 2000000 disabled Disable No -- disabled
gi1/2 enabled 128.3 2000000 disabled Disable No -- disabled
FT
gi1/3 enabled 128.4 2000000 disabled Disable No -- disabled
gi1/4 enabled 128.5 2000000 disabled Disable No -- disabled
gi1/5 enabled 128.6 2000000 disabled Disable No -- disabled
gi1/6 enabled 128.7 2000000 disabled Disable No -- disabled
gi1/7 enabled 128.8 2000000 disabled Disable No -- disabled
c D
-------------------------------------------------------------------------
1 enabled 128.1000 20000 disabled Disable No -- disabled
2 enabled 128.1001 20000 disabled Disable No -- disabled
3 enabled 128.1002 20000 disabled Disable No -- disabled
P
4 enabled 128.1003 20000 disabled Disable No -- disabled
om
n r
e
ce.
w.n w
o
ua
P
ce
ww
an
Nu
l
ria
c D FT
P
om
n r
e
ce.
w.n w
o
ua
P
ce
ww
an
Nu