< Home

if-match backup-status

Function

The if-match backup-status command sets a matching rule that is based on the status of the device in an IPSec hot standby system in load balancing mode.

The undo if-match backup-status command cancels the matching rule.

Format

if-match backup-status { load-balance | active | standby } *

undo if-match backup-status [ load-balance | active | standby ] *

Parameters

Parameter Description Value

load-balance

Indicates that the device is normally working in load-balance mode.

-

active

Indicates that the device is on active status.

-

standby

Indicates that the device is on standby status.

-

Views

Route-Policy view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Currently, the if-match backup-status command is mainly used in the IPSec hot standby system in load balancing mode.
  • In the IPSec hot standby system in load balancing mode, the active/standby status of a device changes according to the network condition. You can run the if-match backup-status command to enable a device to advertise routing policies according to its running status.
  • If you set multiple parameters when running the if-match backup-status command, the device can advertise the same routing policy in different device states. For example, if you want the device to advertise the same routing policy in both load-balance and active states, set the two states for the corresponding routing policy.

Precautions

If the if-match backup-status command is used when the active and standby priorities are the same, no routing policies can be matched. To resolve this problem, you can run the hrp switch active command on the active device to escalate its priority.

Example

# Set the matching rule based on the active status of the device in the IPSec hot standby system in load balancing mode.

<sysname> system-view
[sysname] route-policy test permit node 10
[sysname-route-policy] if-match backup-status active
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >