< Home

hrp adjust enable

Function

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.

Format

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

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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:

  • When the FW advertises OSPF or OSPFv3 routes, if it is the active device, advertise the learning OSPF or OSPFv3 routes; if it is the standby device, advertise the OSPF or OSPFv3 routes with Cost value as slave-cost. By default, the Cost value is 65500.
  • If add add-cost is set, the active FW directly advertises a learned OSPF route, whereas the standby FW increases the cost of a learned OSPF route by add-cost before advertising it. By default, add-cost is 100.
  • When the FW advertises BGP (EBGP and IBGP) routes, if it is the active device, it advertises the learned BGP routes directly; if it is the standby device, it advertises the BGP routes with slave-cost adding to MED value. By default, the MED value is increased by 100.

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.

Example

# Enable the function of adjusting the OSPF-related cost value according to the HRP status.

<sysname> system-view
[sysname] hrp adjust ospf-cost enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >