< Home

hrp track ospf

Function

The hrp track ospf command enables the VGMP group to monitor the OSPF neighbor status.

The undo hrp track ospf command disables the VGMP group from monitoring the OSPF neighbor status.

Format

hrp track ospf interface interface-type interface-number [ peer peer-address ]

undo hrp track ospf interface interface-type interface-number [ peer peer-address ]

Parameters

Parameter Description Value
interface interface-type interface-number Specifies the interface connecting to the OSPF neighbor. The interface can be a Layer 3 GE interface, Layer 3 GE subinterface, Layer 3 Eth-Trunk interface, or Layer 3 Eth-Trunk subinterface.
peer peer-address Specifies the IP address of the OSPF neighbor to be monitored. On a multi-access network, such as the Ethernet, one interface may connect to multiple routers in one network segment. If only one OSPF neighbor needs to be monitored, you can specify the IP address of the neighbor. The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the VGMP group does not monitor the OSPF neighbor status.

Application Scenarios

The FW's service interface works at Layer 3 and connects to a router. The FW and router run OSPF. To enable the FW to detect OSPF route faults in a timely manner to trigger an active/standby switchover, run the hrp track ospf command.

Prerequisites

OSPF has been configured on the FW and router.

Configuration Impact

After the VGMP group is configured to monitor the OSPF neighbor status, the VGMP group priority reduces by 2 when the OSPF neighbor state changes from Full to another state, triggering an active/standby switchover. When the OSPF neighbor state changes to Full, the VGMP group priority increases by 2.

Precautions

Hot standby networking in mirroring mode does not support the hrp track ospf command.

On a broadcast network, two routers whose interface state is DROther do not establish an OSPF adjacency relationship and stay in 2-way state. An active/standby switchover will be triggered when the FW detects that the OSPF neighbor state is not Full (including 2-way). Therefore, when the state of the interface connecting the FW to the neighbor is DROther, the monitored neighbor router cannot be DROther.

Intermittent disconnection on the network will cause OSPF neighbor relationship flapping, triggering repeated switchover of active/standby FWs. To prevent this phenomenon, you are advised to run the undo hrp preempt command to disable the preemption function.

Link faults or topology changes may cause the router to recalculate routes. To improve the network availability, the convergence time of routing protocols must be shortened. Therefore, when configuring a VGMP group to monitor the OSPF neighbor status, you are advised to associate BFD with OSPF, so that BFD can rapidly detect link faults and notify OSPF of the fault. This speeds up OSPF's response to network topology changes. In this way, the active/standby switchover is accelerated and the impact on services is reduced.

Example

# Configure the VGMP group to monitor the status of the OSPF neighbor to which the GigabitEthernet0/0/1 connects.

<sysname> system-view
[sysname] hrp track ospf interface GigabitEthernet0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >