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.
set protocols spanning-tree mstp interface <interface-name> external-path-cost <path-cost>
Specifies a port name. The value is a string that can be set to a physical port name or a LAG port.
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.
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.
- Configure the path cost of the external link on port ge-1/1/1.