< Home

auto-switch preempt enable

Function

The auto-switch preempt enable command enables automatic switchback to a high-priority link in IPSec intelligent link selection and set the switchback delay.

The undo auto-switch preempt enable command disables automatic switchback to a high-priority link in IPSec intelligent link selection.

By default, automatic switchback to a high-priority link in IPSec intelligent link selection is disabled.

Format

auto-switch preempt enable [ delay delay-time ]

undo auto-switch preempt enable

Parameters

Parameter Description Value

delay delay-time

Specifies the delay of the automatic switchback to a high-priority link in IPSec intelligent link selection.

The value is an integer ranging from 60 to 1800, in seconds. The default value is 180.

Views

IPSec intelligent link selection view

Level

2: Configuration level

Usage Guidelines

In IPSec intelligent link selection based on link quality detection results, when the quality of a link with a higher priority does not

meet the requirements, the FW dynamically switches to a backup link to establish another IPSec tunnel. In this case, the FW will switch back to the primary link that has a higher priority to establish an IPSec tunnel only when the quality of the backup link does not meet the requirement, the backup link is disconnected, or the primary link is manually activated by running the active link link-id command.

After automatic switchback to a high-priority link in IPSec intelligent link selection is enabled using the auto-switch preempt enable command, the FW continuously detects the quality of the high-priority link after the IPSec tunnel is switched to the backup link. If the quality of the high-priority link continuously meets the requirements within the configured switchback delay, the FW automatically switches the IPSec tunnel back to the high-priority link.

After you run the auto-switch preempt enable command to enable automatic switchback to a high-priority link in IPSec intelligent link selection, the link with poor link quality is skipped during cyclic link switching, and switching happens only between links with optimal link quality.

Example

# Enable automatic switchback to a high-priority link in IPSec intelligent link selection and set the switchback delay to 200 seconds.

<sysname> system-view
[sysname] ipsec smart-link profile profile1
[sysname-ipsec-smart-link-profile-profile1] auto-switch preempt enable delay 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >