mac
191
Example: On the port1/2, set the MSTP port cost in the instance 2 to 3000000.
Switch(Config-If-Ethernet1/2)#spanning-tree mst 2 cost 3000000
6.1.21 spanning-tree mst loopguard
Command: spanning-tree [mst <instance-id>] loopguard
no spanning-tree [mst <instance-id>] loopguard
Function: Enable the loopguard function for specified instance, the no command disables
this function.
Parameter: <instance-id>: MSTP instance ID.
Command mode: Port Mode.
Default: Disable loopguard function.
Usage Guide: The command can avoid root port or alternate port to be changed as
designated port due to invalid unilateralism link. When the receiving timer is time, the
configured port with loopguard is set as block state.
Example: Configure port 1/2 as loopguard mode for instance 0.
Switch(Config)#interface ethernet 1/2
Switch(Config-Ethernet-1/2)#spanning-tree mst 0 loopguard
Switch(Config-Ethernet-1/2)#
6.1.22 spanning-tree mst port-priority
Command: spanning-tree mst <instance-id> port-priority <port-priority>
no spanning-tree mst <instance-id> port-priority
Function: Set the current port priority for the specified instance; the command ―no
spanning-tree mst <instance-id> port-priority‖ restores the default setting.
Parameter: <instance-id> sets the instance ID. The valid range is from 0 to 64;
<port-priority> sets port priority. The valid range is from 0 to 240. The value should be
the multiples of 16, such as 0, 16, 32…240.
Command mode: Port Mode
Default: The default port priority is 128.
Usage Guide: By setting the port priority, users can control the port ID of the instance in
order to control the root port and designated port of the instance. The lower the value of
the port priority is, the higher the priority is.
Example: Set the port priority as 32 on the port 1/2 for the instance 1.
Switch(config)#interface ethernet 1/2










