
MES3000 Ethernet switch series
99
Table 5.94 —EXEC mode commands
Command
Value
Action
show spanning-tree
[gigabitethernet
gi_port
|
tengigabitethernet
te_port
|
port-channel
group
] [
instance
instance_id
] [
process
process_id
]
gi_port: (1..8/0/1..24);
te_port: (1..8/0/1..4);
group: (1..24)
instance_id: (1..64);
process_id: (0..31)
Show STP configuration.
-
instance_id
—MSTP instance identifier.
show spanning-tree [detail]
[active | blockedports]
[
instance
instance_id
] [
process
process_id
]
instance_id: (1..4094) ;
process_id: (0..31)
Show the detailed information on STP configuration, information
on active or blocked ports.
-
detail
—show detailed information;
-
active
—show information on active ports;
-
blockedports
—show information on blocked ports;
-
instance_id
—MSTP instance identifier.
show
spanning-tree
mstconfiguration
-
Show information on configured MSTP instances.
clear spanning-tree
detectedprotocols
[
gigabitethernet
gi_port
|
tengigabitethernet
te_port
|
port-channel
group
]
gi_port: (1..8/0/1..24);
te_port: (1..8/0/1..4);
group: (1..24)
Restart protocol migration process. Begin spanning tree
recalculation.
Example execution of commands
Enable STP support, set the spanning tree priority value to 12288, forward-time interval 20
seconds, 'Hello' broadcast message transmission interval 5 seconds, spanning tree lifetime 38
seconds. Show STP configuration:
console(config)#
spanning-tree
console(config)#
spanning-tree mode
rstp
console(config)#
spanning-tree priority
12288
console(config)#
spanning-tree forward-time
20
console(config)#
spanning-tree hello-time
5
console(config)#
spanning-tree max-age
38
console(config)#
exit
console#
show spanning-tree
Spanning tree enabled mode RSTP
Default port cost method: long
Loopback guard: Disabled
Root ID Priority 12288
Address a8:f9:4b:f1:1d:00
This switch is the root
Hello Time 5 sec Max Age 38 sec Forward Delay 20 sec
Number of topology changes 3 last change occurred 00:00:10 ago
from gi1/0/11
Times: hold 1, topology change 58, notification 5
hello 5, max age 38, forward delay 20
Interfaces
Name State Prio.Nbr Cost Sts Role PortFast Type
--------- -------- -------- -------- ------ ---- -------- -----------------
gi1/0/1 enabled 128.49 2000000 Dsbl Dsbl No -
gi1/0/2 enabled 128.50 2000000 Frw Desg No P2P (RSTP
gi1/0/3 enabled 128.51 2000000 Dsbl Dsbl No -
gi1/0/4 enabled 128.52 2000000 Dsbl Dsbl No -
gi1/0/5 enabled 128.53 2000000 Dsbl Dsbl No -
gi1/0/6 enabled 128.54 2000000 Dsbl Dsbl No -
gi1/0/7 enabled 128.55 2000000 Dsbl Dsbl No -