The hrp adjust enable command enables the function of adjusting the OSPF-related, OSPFv3-related or BGP-related cost value according to HRP status.
The undo hrp adjust enable command disables the function of adjusting the OSPF-related, OSPFv3-related or BGP-related cost value according to HRP status.
hrp adjust { ospf-cost | ospfv3-cost | bgp-cost } enable [ slave-cost ]
hrp adjust ospf-cost enable [ add [ add-cost ] ]
undo hrp adjust { ospf-cost | ospfv3-cost | bgp-cost } enable
| Parameter | Description | Value |
|---|---|---|
slave-cost |
Specifies the cost value used for advertising slave status externally. |
The value is an integer ranging from 1 to 65535. |
add add-cost |
Specifies the cost value added to the OSPF route to be advertised by the standby device. |
The value is an integer ranging from 1 to 65535. The default value is 100. |
By default, the function of adjusting the OSPF-related, OSPFv3-related or BGP-related cost value according to HRP status is enabled.
After this command is enabled on the active and standby devices, the function of this command are different. The details are as follows:
You cannot adjust OSPFv3 COST on the Loopback interface by using the hrp adjust ospfv3-cost enable command.
The hrp adjust enable command cannot be backed up. You must run it on both active and standby devices.