< Home

hrp track bgp

Function

The hrp track bgp command enables the VGMP group to monitor the BGP peer status.

The undo hrp track bgp command disables the VGMP group from monitoring the BGP peer status.

Format

hrp track bgp peer peer-address [ vpn-instance vpn-instance-name ]

undo hrp track bgp peer peer-address [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
peer peer-address Specifies the IP address of the BGP peer to be monitored. The value is in dotted decimal notation.
vpn-instance vpn-instance-name Specifies the name of the VPN instance to which the BGP peer belongs. If this parameter is not specified, the monitored BGP peer belongs to the public VPN instance. The VPN instance name must exist.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the VGMP group does not monitor the BGP peer status.

Application Scenarios

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

Prerequisites

BGP has been configured on the FW and router.

Configuration Impact

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

Precautions

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

Intermittent disconnection on the network may cause BGP peer 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 BGP peer status, you are advised to associate BFD with BGP, so that BFD can rapidly detect link faults and notify BGP of the fault. This speeds up BGP'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 BGP peer 1.1.1.1.

<sysname> system-view
[sysname] hrp track bgp peer 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >