< Home

link

Function

The link command adds links for IPSec intelligent link selection.

The undo link command deletes links for IPSec intelligent link selection.

The virtual system does not support this command.

Format

link link-id interface interface-type interface-number [ local local-address ] [ nexthop nexthop-address ] remote remote-address

undo link link-id

Parameters

Parameter Description Value
link-id Specifies a link ID. The value is an integer ranging from 1 to 30.
interface interface-type interface-number Indicates the local interface of a link.

The configured interface cannot be bound to any VPN instance in IPSec intelligent link selection scenarios.

The interface can be a GigabitEthernet interface and its subinterface, VLANIF interface, Dialer interface, or Eth-Trunk interface and its subinterface.
local local-address Indicates the local address of a link. The value is in dotted decimal notation.
nexthop nexthop-address Indicates the next-hop IP address.

In the scenario in which link switchover is based on link quality detection, you must specify the nexthop nexthop-address parameter or specify a default gateway for the interface. Otherwise, the intelligent uplink selection service might be abnormal.

The value is in dotted decimal notation.
remote remote-address Indicates the remote address of a link. The value is in dotted decimal notation.

Views

IPSec intelligent link selection view

Default Level

2: Configuration level

Usage Guidelines

The IPSec intelligent link selection function can be used in two scenarios based on the link switchover mechanism. One is to switch the link based on the link quality probe result, and the other is to switch the link based on the route status change. The result of configuring the link command varies according to the link switchover mode. For details, see (Optional) Configuring IPSec Intelligent Link Selection Profiles.

Example

# Add a link for IPSec intelligent link selection. Set the link ID to 1, local interface to GigabitEthernet 0/0/1, local address to 1.1.1.1, next-hop address to 1.1.1.254, and remote address to 3.3.3.3.

<sysname> system-view
[sysname] ipsec smart-link profile profile1
[sysname-ipsec-smart-link-profile-profile1] link 1 interface GigabitEthernet 0/0/1 local 1.1.1.1 nexthop 1.1.1.254 remote3.3.3.3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >