98
MES1000, MES2000 Ethernet Switches
console(config-if)#
Table 5.88 —Ethernet interface configuration mode commands, port group
Command
Value/Default value
Action
spanning-tree guard root
-/protection disabled
Enable root protection for all STP spanning trees for the
selected port. Such protection denies the interface to be the
root port of the switch.
no spanning-tree guard root
Restore the default value.
spanning-tree mst
instance_id
port-priority
priority
instance_id: (1..4094);
priority: (0..240)/128
Set the interface priority in MSTP instance.
Priority value must be divisible by 16.
no spanning-tree mst
instance_id
port-priority
Restore the default value.
spanning-tree mst
instance_id
cost
cost
instance_id: (1..4094);
cost: (1..200000000)
Set the path value through the selected interface for the
specific MSTP instance.
no spanning-tree mst
instance_id
cost
Set the value based on the port transfer rate and the method
of route value definition, table 5.82.
spanning-tree port-priority
(0..240)/128
Set the interface priority in the MSTP root spanning tree.
Priority value must be divisible by 16.
no spanning-tree port-
priority
Restore the default value.
Privileged EXEC mode commands
Command line request in privileged EXEC mode appears as follows:
console#
Table 5.89 —EXEC mode commands
Command
Value
Action
show spanning-tree
[gigabitethernet
gi_port
|
fastethernet
fa_port
|
port-channel
group
]
[
instance
instance-id
]
[
process
process_id
]
gi_port: (1..3/0/1..28);
fa_port: (1..3/0/1..24);
group: (1..8)
instance_id: (1..4094);
process
_
id: (1..31)/0
Show STP protocol configuration.
-
instance_id
—MSTP instance identifier.
show spanning-tree
[detail] [active |
blockedports]
[
instance
instance-id
]
[
process
process_id
]
instance_id: (1..64) ;
process_id: (1..31)/0
Show the detailed information on STP protocol configuration,
information on active or blocked ports.
-
instance_id
—MSTP instance identifier.
show
spanning-tree mst-
configuration
-
Show information on configured MSTP instances.
clear spanning-tree
detected-protocols
[
gigabitethernet
gi_port
|
fastethernet
fa_port
|
port-channel
group
]
gi_port: (1..3/0/1..28);
fa_port: (1..3/0/1..24);
group: (1..8)
Restart protocol migration process STP tree recalculation.
Example execution of commands
Enable STP support, set the RSTP spanning tree priority value to 12288, forward-time interval
20 seconds, 'Hello' broadcast message transmission interval 5 seconds, spanning tree lifetime
38 seconds.
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