direct-route track degrade-cost

Function

The direct-route track degrade-cost command associates the cost of direct routes with the interface's status.

The undo direct-route track command deletes the association between the cost of direct routes and the interface's status.

By default, the cost of direct routes is not associated with the interface's status, and the default direct route cost is 0.

Format

direct-route track { ifType ifNum | interface-name } degrade-cost cost

undo direct-route track ifType

Parameters

Parameter Description Value
ifType

Specifies the interface type.

-

ifNum

Specifies the interface number.

-

degrade-cost cost

Specifies the cost of direct routes on the interface.

The value is an integer ranging from 1 to 4294967295.

Views

Global VE sub-interface view, Global VE interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

To associate the cost of direct routes with the interface's status, run the direct-route track degrade-cost command.

Example

# Associate the cost of direct routes on a Eth-Trunk interface with the interface's status.
<HUAWEI> system-view
[~HUAWEI] interface Eth-Trunk 1
[~HUAWEI] interface Virtual-Ethernet0/1/8
[*HUAWEI-Virtual-Ethernet0/1/8] ve-group 1 l3-access
[~HUAWEI] interface Virtual-Ethernet0/1/8.1
[*HUAWEI-Virtual-Ethernet0/1/8.1] direct-route track Eth-Trunk 1 degrade-cost 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >