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.
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.
<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