Configuring Smart Link
Smart Link is often used in dual-homing networking to improve reliability.
- Configuring Basic Functions of Smart Link
Basic functions of Smart Link can be configured to implement active/standby link redundancy and switching, improving network reliability. - Configuring Load Balancing on a Smart Link Instance
Configuring load balancing on the device can improve link efficiency.
Configuring Basic Functions of Smart Link
Basic functions of Smart Link can be configured to implement active/standby link redundancy and switching, improving network reliability.
Pre-configuration Tasks
Before configuring basic functions of Smart Link, complete the following tasks:
- Establishing a physical dual-uplink network
- Connecting interfaces and setting physical parameters of the interfaces to ensure that the physical status of the interfaces is Up
Configuration Process
Perform the following configuration tasks in sequence.
Specifying Master and Slave Interfaces in a Smart Link Group
Context
The slave interface is blocked when the Smart Link group is enabled. If the active link becomes faulty, Smart Link unblocks the slave interface and switches traffic to the standby link.
If a Smart Link switchover is performed because of temporary link disconnection, packet forwarding and system performance are affected. To address this problem, you can set the delay in reporting a port-Up or port-Down event. When the member interfaces of a Smart Link group alternate between Up and Down, the Smart Link group waits until the delay expires, and then triggers a switchover.
An interface cannot be added to a Smart Link group in the following situations:
- The interface has been enabled with STP.
- The interface has been added to an Eth-Trunk.
NOTE:
Physical ports that have been added to an Eth-Trunk cannot be added to a Smart Link. Eth-Trunks are logical ports and can be added to a Smart Link.
- The interface has been added to a Monitor Link group.
- The interface has been added to another Smart Link group.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
smart-link group group-id
The Smart Link group view is displayed.
The device supports a maximum of 48 Smart Link groups.
- (Optional) Run:
protected-vlan reference-instance { instance-id1 [ to instance-id2 ] }&<1-10>
A protection instance is bound to the Smart Link group. The Smart Link group takes effect only in the VLAN to which the protection instance is bound. If a Smart Link group is not bound to any protection instance, Smart Link is valid for all VLAN data.
- Run:
port interface-type interface-number master
A specified interface is added to the Smart Link group and is configured as the master interface of the Smart Link group.
- Run:
port interface-type interface-number slave
A specified interface is added to the Smart Link group and is configured as the slave interface of the Smart Link group.
A Smart Link group contains one master interface and one slave interface. By default, a Smart Link group contains no interfaces.
- (Optional) Run:
smart-link hold-time hold-time
A delay in reporting a port-Up or port-Down event is configured.
By default, the delay is 0. That is, a switchover is performed immediately.
- Run:
commit
The configuration is committed.
Configuring the Device to Send and Receive Flush Packets
Context
When a switchover occurs between active and standby links of a Smart Link group, existing forwarding entries no longer apply to the new topology. All the MAC address entries and ARP entries on the network need to be updated. Therefore, the Smart Link group needs to send Flush packets to notify other devices so that the other devices can update their MAC address entries and ARP entries. Because manufacturers define the format of Flush packets differently, the Flush packets described here are used for the intercommunication between Huawei devices only and the remote device must be configured to receive Flush packets.
An interface can receive Flush packets only when the control VLAN ID is configured on the interface and the interface is added to the control VLAN.
You do not need to configure all interfaces on the device to receive Flush packets from the specified control VLAN. This function needs to be configured only on interfaces on the active and standby links connecting the Smart Link device to the destination device.
As shown in Figure 11-83, SwitchA is configured with Smart Link. This function needs to be configured on Interface3 and Interface4 of SwitchB, Interface5 and Interface6 of SwitchC, and Interface7 and Interface8 of SwitchD.
If interfaces are not configured to send and receive Flush packets, a Smart Link group uses the aging mechanism to update MAC address entries and ARP entries, causing slow convergence. It is recommended that the device is configured to send and receive Flush packets when a Smart Link group is configured, ensuring fast convergence.
Procedure
- Configuring SwitchA to send Flush packets
Run:
system-view
The system view is displayed.
Run:
smart-link group group-id
The Smart Link group view is displayed.
Run:
flush send control-vlan vlan-id [ password { simple | sha } password ]
The Smart Link group is configured to send Flush packets, and the encryption mode, control VLAN ID, and password in Flush packets are configured. The VLAN ID specified by vlan-id must already exist on the device. If the specified VLAN ID does not exist on the device, Flush packets cannot be sent.
The encryption mode, control VLAN ID, and password in Flush packets sent by the device must be the same as those in Flush packets received by the device.
NOTE:
This command does not add member interfaces of the Smart Link group to the control VLAN. You must configure the member interfaces to allow the control VLAN.
SHA authentication provides higher security than simple authentication.
Run:
commit
The configuration is committed.
- Configuring interfaces on active and standby links of SwitchB, SwitchC, and SwitchD to receive Flush packets
Run:
system-view
The system view is displayed.
Run:
interface interface-type interface-number
The interface view is displayed.
Run:
smart-link flush receive control-vlan vlan-id [ password { simple | sha } password ]
The interface is configured to receive Flush packets, and the encryption mode, control VLAN ID, and password in received Flush packets.
The password is optional. If no password is specified, no password is used for authentication. If the control VLAN ID is changed, the password must be reconfigured.
The encryption mode, control VLAN ID, and password in Flush packets sent by the device must be the same as those in Flush packets received by the device.
NOTE:
SHA authentication provides higher security than simple authentication.
Run:
commit
The configuration is committed.
(Optional) Enabling Revertive Switching
Context
When the active link in a Smart Link group fails, the traffic is automatically switched to the standby link. After the fault is rectified, the original active link remains blocked to ensure stable traffic transmission. To enable the original active link to transmit traffic, use either of the following methods:
- Enable revertive switching of a Smart Link group. Services are switched to the original active link when the WTR time is reached.
- Run the smart-link manual switch command to perform link switching forcibly.
Services can be switched between links only when both member interfaces in a Smart Link group are in Up state.
Configure revertive switching before enabling Smart Link. If Smart Link is already enabled, revertive switching can be configured only after Smart Link is disabled.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
smart-link group group-id
The Smart Link group view is displayed.
- Run:
restore enable
Revertive switching of the Smart Link group is enabled.
By default, revertive switching of a Smart Link group is disabled.
- Run:
timer wtr wtr-time
The WTR time of the Smart Link group is set.
By default, the WTR time of a Smart Link group is 60 seconds.
- Run:
commit
The configuration is committed.
Configuring Load Balancing on a Smart Link Instance
Configuring load balancing on the device can improve link efficiency.
Pre-Configuration Tasks
Before configuring load balancing on a Smart Link instance, complete the following task:
- Configuring the basic functions of a Smart Link group
Context
Usually, the standby link in a Smart Link group is idle and does not forward service data flows. To improve link utilization efficiency in a Smart Link group, you can configure a load balancing instance for the Smart Link group. Then the standby link transmits traffic of the VLANs specified in the load balancing instance, and the active link does not transmit traffic of these VLANs. As the active and standby links transmit data traffic of different VLANs, load balancing is implemented between the two links.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
stp region-configuration
The MTS region view is displayed.
- Run:
instance instance-id vlan { vlan-id1 [ to vlan-id2 ] }&<1-10>
The mapping between an MSTI and VLANs is configured.
A domain supports up to 63 instances, among which Instance 0 is the default instance and does not need to be created.
By default, all VLANs are mapped to instance 0.
- Run:
commit
The configuration is committed.
- Run:
quit
You have returned to the system view.
- Run:
smart-link group group-id
The Smart Link group view is displayed.
- Run:
load-balance instance { instance-id1 [ to instance-id2 ] } &<1-10> slave
The VLAN packets bound to the instance are sent through the standby interface to implement load balancing.
- Run:
commit
The configuration is committed.