The direct-route track vrrp interface command associates direct routes with a Virtual Router Redundancy Protocol (VRRP) backup group in the loopback interface view.
The undo direct-route track vrrp interface command deletes the association between direct routes and a VRRP group in the loopback interface view.
By default, direct routes are not associated with a VRRP group.
Parameter | Description | Value |
---|---|---|
interface-type |
Specifies the type of the interface on which a VRRP group is configured. |
- |
interface-number |
Specifies the number of the interface on which a VRRP group is configured. |
- |
vrid virtual-router-id |
Specifies the ID of a VRRP group. |
The value is an integer ranging from 1 to 255. |
degrade-cost cost-value |
Specifies a cost to be applied to IP direct routes when the associated VRRP group is in the Backup or Initialize state. |
The value is an integer ranging from 1 to 4294967295. |
Usage Scenario
Two CloudEdge-GWs in equipment room run VRRP, which is deployed on Eth-Trunk interfaces. Packets are transparently transmitted through an AGG-SW. The priority of network segment routes on loopback interfaces is associated with the VRRP status, and the priority of network segment routes on loopback interfaces of the CloudEdge-GW in the Backup state is low.
Prerequisites
VRRP has been configured on interfaces.
Configuration Impact
After the direct-route track vrrp interface command is run, the cost of IP direct routes is adjusted based on the VRRP group status, with details as follows:
Follow-up Procedure
Configure a dynamic routing protocol to import the direct routes.
Precautions
You can run only one direct-route track vrrp interface command on a loopback interface. Before associating the direct routes with the VRRP group specified by vrid in another direct-route track vrrp interface command, you must delete the original direct-route track vrrp interface command.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/0 [~HUAWEI-GigabitEthernet0/1/0] vrrp vrid 1 [*HUAWEI-GigabitEthernet0/1/0] quit [*HUAWEI] interface loopback 1 [*HUAWEI-loopback1] vrrp vrid 1 peer-ip 1.1.1.1 [*HUAWEI-loopback1] direct-route track vrrp interface GigabitEthernet0/1/0 vrid 1 degrade-cost 300