set protocols spanning-tree mstp interface external-path-cost


The set protocols spanning-tree mstp interface external-path-cost command configures the path cost of the external link on a physical port or a LAG port for MSTP mode.


Command Syntax

set protocols spanning-tree mstp interface <interface-name> external-path-cost <path-cost>


Parameter

Parameter

Description

interface <interface-name>

Specifies a port name. The value is a string that can be set to a physical port name or a LAG port.

external-path-cost <path-cost>

Specifies the path cost value of the external link. The value is an integer that ranges from 0 to 200000000. The default value is 0.


Usage Guidelines

External path cost indicates the path cost from a CIST regional root to the root. External path cost saved on all switching devices in an MST region are same. If the CIST root is in an MST region, external path cost saved on all switching devices in the MST region are 0s.

Note: When the path cost value changes, the spanning tree will be recalculated.


Example

  • Configure the path cost of the external link on port ge-1/1/1.
admin@Xorplus# set protocols spanning-tree mstp interface ge-1/1/1 external-path-cost 500
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.