< Home

smart-link

Function

The smart-link command enables a Smart Link group to lock data streams and specifies the locking interface.

The undo smart-link command disables a Smart Link group from locking data streams.

By default, a Smart Link group is disabled from locking data streams.

Format

smart-link { force | lock }

undo smart-link { force | lock }

Parameters

Parameter

Description

Value

force

Locks data streams on the slave interface.

-

lock

Locks data streams on the master interface.

-

Views

Smart Link group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Run the smart-link command to lock data streams on the master or slave link. During the maintenance, the active link in the Smart Link group needs to be inspected. To prevent the inspection from affecting normal services, configure the data stream policy for the Smart Link group. Then the device forcibly locks data streams to the standby link and switches them back to the active link after the inspection is complete.

Prerequisites

The Smart Link group has been enabled by using the smart-link enable command.

Precautions

After data streams are locked on a specified link, traffic cannot be switched to the other link even the specified link fails.

The lock and force keywords are mutually exclusive and only one of them can be entered each time. The lock keyword takes precedence over the force keyword. If you specify force and then lock, data streams are locked on the master interface. If you specify lock first, the configuration fails when you specify force in the command.

Example

# Smart Link group 1 is configured to lock data streams and lock data streams on the slave interface.

<HUAWEI> system-view
[HUAWEI] smart-link group 1
[HUAWEI-smlk-group1] smart-link enable
[HUAWEI-smlk-group1] smart-link force
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >