When configuring smart link, go to these
sections for information you are interested in:
l
Smart
Link Overview
l
Configuring
Smart Link
l
Displaying
and Maintaining Smart Link
l
Smart
Link Configuration Example
As shown in Figure 1-1, dual-uplink networking is
widely applied currently. Usually, Spanning Tree Protocol (STP) is used to implement
link redundancy backup in the network. However, STP is not suitable for users
with a high demand for convergence time. Smart Link can achieve active/standby
link redundancy backup and fast convergence to meet the user demand.
Smart Link has the following features:
l
Active/standby backup for dual-uplink networking
l
Simple configuration and operation
I. Smart link group
A smart link group consists of two member
ports, one master port and one slave port. Normally, only one port (master or
slave) is active, and the other port is blocked, that is, in the standby state.
When link failure occurs on the port in active state, the smart link group will
block the port automatically and turn standby state to active state on the
blocked port.

Figure 1-1 Network diagram of Smart Link
In Figure 1-1, GigabitEthernet 1/0/1 and GigabitEthernet
1/0/2 on Switch A are two member ports of a smart link group.
II. Master port
The master port can be either an Ethernet
port or a manually-configured or static LACP aggregation group. For example, you
can configure GigabitEthernet 1/0/1 of switch A in Figure 1-1 as the master port through the
command line.
III. Slave port
The slave port can be either an Ethernet
port or a manually-configured or static LACP aggregation group. For example, you
can configure GigabitEthernet 1/0/2 of switch A in Figure 1-1 as the slave port through the
command line.
IV. Flush message
When a forwarding link fails, the device
will switch the traffic to the blocked standby link. The former forwarding
entries of each device in the network are no longer suitable for the new
topology, so MAC address forwarding entries and ARP entries must be updated
throughout the network. In this case, the smart link group sends flush messages
to notify other devices to refresh MAC address forwarding entries and ARP
entries.
V. Control VLAN for sending flush messages
This control VLAN sends flush messages.
When link switching occurs, the device (Switch A in Figure 1-1) broadcasts flush messages in
this control VLAN.
VI. Control VLAN for receiving flush messages
This control VLAN is used for receiving and
processing flush messages. When link switching occurs, the devices (Switch B
and Switch C in Figure 1-1)
receive and process flush messages of this control VLAN, and then refresh MAC
forwarding table entries and ARP entries.
l
Currently, the member ports of a smart link
group cannot be dynamic link aggregation groups.
l
If the master port or slave port of a smart link
group is a link aggregation group, you cannot remove this link aggregation
group directly or change the aggregation group into a dynamic aggregation
group. Before removing this aggregation group, you must
unbind the link aggregation group from the Smart Link.

Figure 1-2 Network diagram of Smart Link operating mechanism
As shown in Figure 1-2, GigabitEthernet 1/0/1 on Switch
A is active and GigabitEthernet 1/0/2 on Switch A is blocked. When the link
connected to GigabitEthernet 1/0/1 fails, GigabitEthernet 1/0/1 is blocked automatically,
and the state of GigabitEthernet 1/0/2 turns to active state.
l
When link switching occurs in the smart link
group, MAC forwarding entries and ARP entries of each device in the network may
be out of date. In order to guarantee correct packet transmission, you must
enable the Smart Link device to send flush messages to notify the other devices
in the network to refresh their own MAC forwarding entries and ARP entries. In
this case, all the uplink devices must be capable of identifying flush messages
from the smart link group and refreshing MAC forwarding entries and ARP
entries.
l
On a Smart Link–enabled device, if a port
is blocked due to link failure, the port remains blocked after the link recovers
from the failure, and does not preempt the traffic resource. Therefore, the
traffic stays stable. The port does not come into the forwarding state until
the next link switching.
Before configuring a
member port of a smart link group, you must:
l
Disable the port to avoid loops, thus preventing
broadcast storm.
l
Disable STP on the port.
After completing the
configuration, you need to enable the Ethernet ports disabled before
configuring the smart link group.
Complete the following tasks to configure Smart
Link:
|
Task
|
Remarks
|
|
Configuring a Smart Link Device
|
Create a smart link group
|
Required
|
|
Add member ports to the smart link group
|
|
Enable the function of sending flush
messages in the specified control VLAN
|
|
Configuring Associated Devices
|
Enable the function of processing flush
messages received from the specified control VLAN
|
Required
|
A Smart Link device refers to a device on
which Smart Link is enabled and a smart link group is configured, and that
sends flush messages from the specified control VLAN. A member port of a smart
link group can be either an Ethernet port or a manually-configured or static
LACP aggregation group. You can configure a port or a link aggregation group as
a member of a smart link group.
Follow these steps to configure Smart Link
(with ports as the members of the smart link group):
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Create a smart link group and enter smart
link group view
|
smart-link
group group-id
|
Required
|
|
Enable the function of sending flush
messages in the specified control VLAN
|
flush
enable control-vlan vlan-id
|
Required
By
default, no control VLAN for sending flush messages is specified.
|
|
Configure
a port as a smart link group member
|
smart link
group view
|
port interface-type interface-number { master
| slave }
|
Required
Use either
approach
|
|
Ethernet
port view
|
quit
|
|
interface interface-type interface-number
|
|
port
smart-link group group-id { master | slave }
|
Follow these steps to configure Smart Link
(with link aggregation groups are the members of the smart link group):
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Create a smart link group and enter smart
link group view
|
smart-link group group-id
|
Required
|
|
Configure a link aggregation group as a
member of the smart link group
|
link-aggregation group group-id { master | slave }
|
Optional
|
|
Enable the function of sending flush
messages in the specified control VLAN
|
flush enable control-vlan vlan-id
|
Optional
By default, no control VLAN for sending
flush messages is specified.
|
An associated device mentioned in this
document refers to a device that supports Smart Link and locally configured to process
flush messages received from the specified control VLAN so as to work with the
corresponding Smart Link device. As shown in Figure 1-2, all the devices including
Switch C, Switch D, and Switch E on the active and backup links connecting the
Smart Link device (Switch A) and the target uplink device (Switch E) are all
associated devices.
However, you do not have to enable all the
ports of an associated device to process flush messages received from the
specified control VLAN. You need to enable this function only on the ports that
are on the active and backup links connecting the Smart Link device and the target
device. As shown in Figure
1-2, you need to enable this function on GigabitEthernet 1/0/2
and GigabitEthernet 1/0/3 of Switch C, GigabitEthernet 1/0/2 and GigabitEthernet
1/0/3 of Switch D, and GigabitEthernet 1/0/11 and GigabitEthernet 1/0/12 of
Switch E.
Follow these steps to enable the specified
port to process flush messages received from the specified control VLAN:
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Enable the specified port(s) to process
flush messages received from the control VLAN
|
System
view
|
smart-link
flush enable control-vlan vlan-id port interface-type
interface-number [
to interface-type interface-number ]
|
Required,
use either approach.
By
default, no control VLAN for receiving flush messages is specified.
|
|
Ethernet
port view
|
interface interface-type interface-number
|
|
smart-link
flush enable control-vlan vlan-id
|
When configuring Smart Link, pay attention to
the following points:
1)
A port or a link aggregation group cannot serve
as a member port for two smart link groups. On the other hand, a port or a link
aggregation group cannot serve as a member for a smart link group and a monitor
link group at the same time.
2)
STP cannot be enabled on the member ports of a smart
link group. An STP-enabled port or a link aggregation group with an STP-enabled
port cannot serve as a member port for a smart link group.
3)
A smart link/monitor link group with members
cannot be deleted.
4)
Smart Link/Monitor Link is mutually exclusive
with remote port mirroring.
5)
If you configure both the Smart Link and Monitor
Link functions on an Intelligent Resilient Fabric (IRF) enabled device, the Smart
Link and Monitor Link functions will function abnormally. Thus, you are
recommended to disable the IRF function when configuring the Smart Link or Monitor
Link function.
6)
When a Combo port operates as a member port of a
smart link group, the optical port and the electrical port of the Combo port must
not be both engaged with a cable at the same time.
7)
When you copy a port, the smart link/monitor link
group member information configured on the port will not be copied to other
ports.
8)
If a single port is specified as a member of a smart
link/monitor link group, you cannot execute the lacp enable command on
this port or add this port into other dynamic link aggregation groups, because
these operations will make this port become a link aggregation group member.
9)
If no control VLAN is configured for flush
message processing, the device will forward received flush messages without
processing them.
10)
If the control VLAN for receiving flush messages
configured on an associated device is different than the one for sending flush
messages configured on the corresponding Smart Link device, the device will forward
received flush messages without processing them.
11)
In the static or manual link aggregation group which
serves as a smart link group member, if a member port can process flush
messages, this function cannot be synchronized to the other ports in the
aggregation group automatically, that is, the other member ports in the
aggregation group cannot process flush messages. The function of processing
flush messages must be manually configured for each port in the aggregation
group.
12)
The VLAN configured as a control VLAN to send
and receive flush messages must exist. You cannot directly remove the control
VLAN. When a dynamic VLAN is configured as the control VLAN for the smart link
group, this VLAN will become a static VLAN, and the prompt information is
displayed.
|
To do…
|
Use the command…
|
Remarks
|
|
Display the information of a smart link
group
|
display smart-link group { group-id | all }
|
Available in any view.
|
|
Display the statistics information of
flush messages received and processed by the current device
|
display smart-link flush
|
|
Clear flush message statistics
|
reset smart-link packets counter
|
Available in user view.
|
I. Network requirements
As shown in Figure 1-3, Switch A is an H3C S5600
series Ethernet switch. Switch C, Switch D and Switch E support Smart Link.
Configure Smart Link feature to provide remote PCs with reliable access to the
server.
II. Network diagram

Figure 1-3
Network diagram for Smart Link configuration
III. Configuration procedure
1)
Configure a smart link group on Switch A and
configure member ports for it. Enable the function of sending flush messages in
Control VLAN 1.
# Enter system view.
<switchA> system-view
# Enter Ethernet port view. Disable STP on GigabitEthernet
1/0/1 and GigabitEthernet 1/0/2.
[SwitchA]
interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1]
stp disable
[SwitchA-GigabitEthernet1/0/1]
quit
[SwitchA] interface GigabitEthernet
1/0/2
[SwitchA-GigabitEthernet1/0/2] stp
disable
# Return to system view.
[SwitchA-GigabitEthernet1/0/2] quit
# Create smart link group 1 and enter the
corresponding smart link group view.
[SwitchA] smart-link group 1
# Configure GigabitEthernet 1/0/1 as the
master port and GigabitEthernet 1/0/2 as the slave port for smart link group 1.
[SwitchA-smlk-group1] port GigabitEthernet
1/0/1 master
[SwitchA-smlk-group1] port GigabitEthernet
1/0/2 slave
# Configure to send flush messages within
VLAN 1.
[SwitchA-smlk-group1] flush
enable control-vlan 1
2)
Enable the function of processing flush messages
received from VLAN 1 on Switch C.
# Enter system view.
<SwitchC> system-view
# Enable the function of processing flush
messages received from VLAN 1 on GigabitEthernet 1/0/2.
<SwitchC> smart-link flush
enable control-vlan 1 port GigabitEthernet 1/0/2
3)
Enable the function of processing flush messages
received from VLAN 1 on Switch D.
# Enter system view.
<SwitchD> system-view
# Enable the function of processing flush
messages received from VLAN 1 on GigabitEthernet 1/0/2.
[SwitchD] smart-link flush enable
control-vlan 1 port GigabitEthernet 1/0/2
4)
Enable the function of processing flush messages
received from VLAN 1 on Switch E.
# Enter system view.
<SwitchE> system-view
# Enable the function of processing flush
messages received from VLAN 1 on GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3.
[SwitchE] smart-link flush enable
control-vlan 1 port GigabitEthernet 1/0/2 to GigabitEthernet 1/0/3
When configuring Monitor Link, go to these
sections for information you are interested in:
l
Introduction
to Monitor Link
l
Configuring
Monitor Link
l
Displaying
Monitor Link Configuration
l
Monitor
Link Configuration Example
Monitor Link is a collaboration scheme
introduced to complement for Smart Link. It is used to monitor uplink and to
perfect the backup function of Smart Link.
A monitor Link consists of an uplink port
and one or multiple downlink ports. When the link for the uplink port of a monitor
link group fails, all the downlink ports in the monitor link group are forced down.
When the link for the uplink port recovers, all the downlink ports in the group
are re-enabled.

Figure 2-1 Network diagram for a monitor link group
implementation
As shown in Figure 2-1,
the monitor link group configured on the device Switch A consists of an uplink
port (GigabitEthernet 1/0/1) and two downlink ports (GigabitEthernet 1/0/2 and GigabitEthernet
1/0/3). A member port can be an Ethernet port, static LACP aggregation group,
manual link aggregation group, or smart link group. A smart link group can
serve as the uplink port only.

Figure 2-2 Network diagram for a monitor link group implementation
As shown in Figure 2-2, the devices Switch C and Switch
D are connected to the uplink device Switch E. Switch C is configured with a monitor
link group, where GigabitEthernet 1/0/1 is the uplink port, while GigabitEthernet
1/0/2 and GigabitEthernet 1/0/3 are the downlink ports. Switch A is configured
with a smart link group, where GigabitEthernet 1/0/1 is the master port and GigabitEthernet
1/0/2 is the slave port.
l
If Switch C is not configured with monitor link
group, when the link for the uplink port GigabitEthernet 1/0/1 on Switch C fails,
the links in the smart link group are not switched because the link for the
master port GigabitEthernet 1/0/1 of Switch A configured with smart link group operates
normally. Actually, however, the traffic on Switch A cannot be up-linked to Switch
E through the link of GigabitEthernet 1/0/1.
l
If Switch C is configured with monitor link
group and monitor link group detects that the link for the uplink port GigabitEthernet
1/0/1 fails, all the downlink ports in the group are shut down; therefore, GigabitEthernet
1/0/3 on Switch C is blocked. Now, smart link group configured on Switch A
detects that a link fault occurs on the master port GigabitEthernet 1/0/1.
Then, Smart Link immediately activates the slave port GigabitEthernet 1/0/2 so
that traffic is switched to the backup link.
l
Currently, member ports of a monitor link group
cannot be dynamic link aggregation groups.
l
If the uplink or downlink port in the monitor
link group is a link aggregation group, you cannot directly delete this
aggregation group or change this aggregation group into a dynamic aggregation
group. To delete this aggregation group, you must first unbind this aggregation
group from the Monitor Link.
Before configuring
a monitor link group, you must create a monitor link group and configure member
ports for it. A monitor link group consists of an
uplink port and one or multiple downlink ports. The uplink port can be a manually-configured or static LACP link
aggregation group, an Ethernet port, or a smart link group. The downlink ports
can be manually-configured link
aggregation groups or static LACP link aggregation groups, or Ethernet ports.
Complete the following tasks to configure Monitor
Link:
Follow these steps to create a monitor link
group:
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Create a monitor link group
|
monitor-link group group-id
|
Required
|
Follow these steps to configure the uplink
port:
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Enter the specified monitor link group
view
|
monitor-link group group-id
|
—
|
|
Configure the uplink port for the monitor
link group
|
Configure the specified link aggregation
group as the uplink port of the monitor link group
|
link-aggregation group group-id uplink
|
Required
Use any of the three approaches
|
|
Configure the specified smart link group
as the uplink port of the monitor link group
|
smart-link group group-id uplink
|
|
Configure the specified Ethernet port as
the uplink port of the monitor link group
|
Monitor link group view
|
port interface-type
interface-number uplink
|
|
Ethernet port view
|
quit
|
|
interface interface-type interface-number
|
|
port monitor-link group group-id uplink
|
Follow these steps to configure a downlink
port:
|
To do…
|
Use the command…
|
Remarks
|
|
Enter system view
|
system-view
|
—
|
|
Enter the specified monitor link group
view
|
monitor-link group group-id
|
Required
|
|
Configure a downlink port for the monitor
link group
|
Configure the specified link aggregation
group as a downlink port of the monitor link group
|
link-aggregation group group-id downlink
|
Required
Use either approach
|
|
Configure the specified Ethernet port as a
downlink port of the monitor link group
|
Monitor link group view
|
port interface-type
interface-number downlink
|
|
Ethernet port view
|
quit
|
|
interface interface-type interface-number
|
|
port monitor-link group group-id downlink
|
Caution:
l
A smart link/monitor link group with members cannot
be deleted. A smart link group as a monitor link group
member cannot be deleted.
l
The smart link/monitor link function and the port
mirroring function are incompatible with each other.
l
If a single port is specified as a smart
link/monitor link group member, do not use the lacp enable command on
the port or add the port to another dynamic link aggregation group because
doing so will cause the port to become an aggregation group member.
l
Using the copy command on a port does not copy
the smart link/monitor link group member information configured on the port to
any other port.
|
To do…
|
Use the command…
|
Remarks
|
|
Display the information about one or all monitor
link groups
|
display monitor-link group { group-id | all }
|
Available in any view.
|
I. Network requirements
As shown in Figure 2-3, the PCs access the server and
Internet through the switch. Configure Smart Link and Monitor Link to prevent
the PCs from failing to access the server and Internet due to uplink link or
port failure.
II. Network diagram

Figure 2-3 Network diagram for Monitor
Link configuration
III. Configuration procedure
1)
Enable Smart Link on Switch A and Switch B to
implement link redundancy backup. Perform the following configuration on Switch
A. The configuration on Switch B is the same as on Switch A.
# Enter system view.
<switchA> system-view
# Enter Ethernet port view. Disable STP on GigabitEthernet1/0/1
and GigabitEthernet1/0/2.
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] stp
disable
[SwitchA-GigabitEthernet1/0/1] quit
[SwitchA] interface GigabitEthernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] stp
disable
# Return to system view.
[SwitchA-GigabitEthernet1/0/2] quit
# Create smart link group 1 and enter smart
link group view.
[SwitchA] smart-link group 1
# Configure GigabitEthernet 1/0/1 as the
master port of the smart link group and GigabitEthernet 1/0/2 as the slave
port.
[SwitchA-smlk-group1] port GigabitEthernet
1/0/1 master
[SwitchA-smlk-group1] port GigabitEthernet
1/0/2 slave
# Configure to send flush messages in VLAN
1.
[SwitchA-smlk-group1] flush
enable control-vlan 1
2)
Enable Monitor Link on Switch C and Switch D and
enab