set protocols spanning-tree pvst vlan interface path-cost


The set protocols spanning-tree pvst vlan interface path-cost command configures the link path cost of a physical port or a LAG port in Rapid-PVST+ mode.


Command Syntax

set protocols spanning-tree pvst vlan <vlan-id> interface <interface-name> path-cost <cost-value>


Parameter

Parameter

Description

vlan <vlan-id>

Specifies the VLAN ID. The value is an integer that ranges from 1 to 4094.

interface <interface-name>

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

path-cost <cost-value>

Specifies the path cost of an interface. The value is an integer 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

  • Set the path cost of the switching device to 55 for VLAN 5.
admin@Xorplus# set protocols spanning-tree pvst vlan 5 interface ge-1/1/1 path-cost 55
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.