direct-route ipv6 track pw-state

Function

The direct-route ipv6 track pw-state command associates the IPv6 direct route on an interface with the PW status.

The undo direct-route ipv6 track pw-state command dissociates the IPv6 direct route on an interface from the PW status.

By default, the IPv6 direct route on an interface is not associated with the PW status.

Format

direct-route ipv6 track pw-state degrade-cost cost

undo direct-route ipv6 track pw-state

Parameters

Parameter Description Value
degrade-cost cost

Specifies the cost of the IPv6 direct route on a specified interface.

The value is an integer ranging from 1 to 4294967295.

Views

Global VE sub-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 adjust the cost of the IPv6 direct route on an interface based on the PW status, run the direct-route ipv6 track pw-state command. When the PW status is backup, the cost of the IPv6 direct route is changed to the configured; when the PW status is active, the cost of the IPv6 direct route is changed to default value 0. For configurations details, see Configuration-IP Routing Basis Configuration-Configuring an IPv6 Direct Route to Respond to L3VE Interface Status Changes After a Delay.

Precautions

The direct-route ipv6 track pw-state and direct-route ipv6 degrade-delay commands are mutually exclusive. If both them are run on one L3VE interface, the latest configuration overrides the previous one.

Example

# Set the cost of the IPv6 direct route on a sub-interface to 30 when the PW status is standby and restore the cost to the default value 0 after the PW status is active.
<HUAWEI> system-view
[~HUAWEI] interface virtual-ethernet0/1/8
[~HUAWEI-Virtual-Ethernet0/1/8] ve-group 2 l3-access
[*HUAWEI-Virtual-Ethernet0/1/8] interface virtual-ethernet0/1/8.1
[*HUAWEI-Virtual-Ethernet0/1/8.1] ipv6 enable
[*HUAWEI-Virtual-Ethernet0/1/8.1] direct-route ipv6 track pw-state degrade-cost 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >