stp pw-port

Function

The stp pw-port cost command sets the default path cost for a PW interface.

The undo stp pw-port cost command restores the default path cost for a PW interface.

By default, no default path cost is specified for a PW interface.

Format

stp pw-port cost costValue

undo stp pw-port cost [ costValue ]

Parameters

Parameter Description Value
costValue

Specifies the path cost.

The value is an integer ranging from 1 to 65535.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mstp write

Usage Guidelines

Usage Scenario

In VRP V8, the default rate of a PW interface is 4294967295 bit/s, and the calculated path cost varies according to the calculation method. However, in VRP V5, the default path cost of a PW interface is 1. Therefore, the path cost changes after a device is upgraded from VRP V5 to VRP V8. You can run this command to set the path cost in VRP V8 to be the same as that in VRP V5.

Configuration Impact

If the path cost of an interface changes, the spanning tree where the interface resides is recalculated.

Precautions

You are advised to run this command in VRP V5-to-VRP V8 upgrade scenarios.

Example

# Config default pw cost value
<HUAWEI> system-view
Enter system view, return user view with return command.
[~HUAWEI] stp pw-port cost 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >