set protocols spanning-tree stp interface path-cost


The set protocols spanning-tree stp interface path-cost command configures the link path cost of a physical port or a LAG port for STP mode.


Command Syntax

set protocols spanning-tree stp interface <interface-name> 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.

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

Path cost to the root bridge. It is determined by the distance between the port sending the configuration BPDU and the root bridge. Smallest root path cost is used as the root port on a non-root bridge. On the root bridge, the path cost of each port is 0.


Example

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

Copyright © 2024 Pica8 Inc. All Rights Reserved.