The direct-route ipv6 track vrrp6 command associates IPv6 direct routes with a Virtual Router Redundancy Protocol for IPv6 (VRRP6) backup group.
The undo direct-route ipv6 track vrrp6 command dissociates IPv6 direct routes from a VRRP6 backup group.
By default, IPv6 direct routes are not associated with any VRRP6 backup group.
Parameter | Description | Value |
---|---|---|
degrade-cost cost-value |
Specifies a cost to be applied to IPv6 direct routes when the associated VRRP6 backup group is in Backup or Initialize status. |
The value is an integer ranging from 1 to 4294967295. |
vrid virtual-router-id |
Specifies the ID of a VRRP6 backup group. |
The value is an integer ranging from 1 to 255. |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
When a VRRP6 backup group functions as a gateway, the forwarding path of user-to-network is determined by the state of the VRRP6 backup group, and the forwarding path of network-to-user traffic is selected by a dynamic routing protocol. As a result, user-to-network and network-to-user traffic may be transmitted over different paths. When a firewall needs to be deployed on the VRRP6 backup group to increase security, network-to-user traffic cannot pass through the firewall because of the inconsistent forwarding paths of network-to-user and user-to-network traffic. To address this problem, run the direct-route ipv6 track vrrp6 command to adjust the cost of IPv6 direct routes based on the VRRP6 backup group status, and configure a dynamic routing protocol to import the IPv6 direct routes.
Prerequisites
VRRP6 has been configured on the interface.
Configuration Impact
After the command is run, the cost of IPv6 direct routes is adjusted based on the VRRP6 backup group status, with details as follows:
Follow-up Procedure
Configure a dynamic routing protocol to import the IPv6 direct routes.
Precautions
The IPv6 direct routes on an interface can be associated with only one VRRP6 backup group. To change the associated VRRP6 backup group, dissociate the IPv6 direct routes from the original VRRP6 backup group first.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ipv6 enable [*HUAWEI-GigabitEthernet0/1/0] ipv6 address 1::1 64 [*HUAWEI-GigabitEthernet0/1/0] vrrp6 vrid 1 [*HUAWEI-GigabitEthernet0/1/0] direct-route ipv6 track vrrp6 vrid 1 degrade-cost 300