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.
Parameter |
Description |
Value |
---|---|---|
force |
Locks data streams on the slave interface. |
- |
lock |
Locks data streams on the master interface. |
- |
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.