The port command adds an interface to a Smart Link group and specifies the interface as the master or slave interface.
The undo port command deletes a master or slave interface from a Smart Link group.
By default, a Smart Link group has no member interface.
port interface-type interface-number { master | slave }
undo port interface-type interface-number { master | slave }
undo port { all | master | slave }
Parameter |
Description |
Value |
---|---|---|
interface-type interface-number |
|
- |
master |
Specifies an interface as a master interface. |
- |
slave |
Specifies an interface as a slave interface. |
- |
all |
Deletes all the interfaces in a Smart Link group. |
- |
Usage Scenario
The Smart Link function implements link redundancy and rapid link status transition on a dual-homed network. When a device is connected to upstream devices by two uplink interfaces, one link is blocked and functions as the backup of the other link. When the active link fails, traffic is switched to the other link. To implement the Smart Link function, create a Smart Link group and add two interfaces to the Smart Link group, one as the master interface, and the other as the slave interface. The master interface is in active state; the slave interface is in inactive state.
Prerequisites
A Smart Link group has been created using the smart-link group command. The Spanning Tree Protocol (STP) has been disabled on the interfaces to be added to the Smart Link group by using the stp disable command.
Follow-up Procedure
Run the smart-link enable command to enable the Smart Link group. Run the flush send command to enable the Smart Link group to send Flush packets, and run the smart-link flush receive command on the upstream device interface to enable the interface to receive Flush packets.
Precautions
Before adding a new master or slave interface to a Smart Link group, delete the previous one from the Smart Link group.
The slave interface is blocked when the Smart Link group is enabled.
An interface can be added to only one Smart Link group.
An interface cannot be added to a Smart Link group in the following situations: