13.9. Smart-Link Commands
13.9.1. smart-link group
Command Purpose
Use this command to create a smart-link group and enter smart-link group configuration mode. To destroy the smart-link group, used no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
smart-link group GROUP-ID
no smart-link group (GROUP-ID|all)
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
GROUP-ID |
Smart-link group ID |
1 - 16 |
all |
All the smart-link groups have been exist |
- |
Command Mode
Global Config
Default
There is no any smart-link group
Usage
Up to 16 smart-link groups can be created.
Examples
Create a smart-link group with ID 1:
Switch# configure terminal
Switch(config)# smart-link group 1
13.9.2. smart-link relay enable
Command Purpose
Use this command to enable the switch to relay the smart-link flush packet. To disable relaying the packets, use no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
smart-link relay enable
no smart-link relay enable
Command Mode
Global Config
Default
Relaying the smart-link flush packet is enabled.
Usage
By default, the smart-link flush packet could be flooded. Use the command, “no smart-link relay enable”, to disable the packet flooding to other switches.
Examples
The example shows how to enable smart-link relay:
Switch# configure terminal
Switch(config)# smart-link relay enable
The example shows how to disable smart-link relay:
Switch# configure terminal
Switch(config)# no smart-link relay enable
Related Commands
None
13.9.3. interface
Command Purpose
Use this command to set master or slave member interface of the smart-link group. To unset the member, uses the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
interface (IFPHYSICAL|IFAGG) (master|slave)
no interface (master|slave|all)
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFPHYSICAL |
The name of physical interface |
- |
IFAGG |
The name of link-agg interface, like agg1 |
- |
master |
The interface act as master role |
- |
slave |
The interface act as slave role |
- |
Command Mode
Smart-link Configuration
Default
There is no any interface member in the smart-link group by default.
Usage
Every smart-link group has two member interfaces, master and slave. The interfaces should be physical (i.e. eth-0-1) or aggregator (i.e. gg1) switch interface.
STP must be disabled in the smart-link interfaces first.
Examples
This example shows how to set interfaces eth-0-9 and eth-0-13 as the member interfaces of smart-link group 1:
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# spanning-tree port disable
Switch(config-if)# exit
Switch(config)# interface eth-0-13
Switch(config-if)# spanning-tree port disable
Switch(config-if)# exit
Switch(config)# smart-link group 1
Switch(config-smlk-group)# interface eth-0-9 master
Switch(config-smlk-group)# interface eth-0-13 slave
Switch(config-smlk-group)# end
Display the smart link group just created:
Switch# show smart-link group 1
Smart-link group 1 information:
The smart-link group was disabled.
============================================================
Auto-restore:
state time count Last-time
disabled 60 0 N/A
============================================================
Protected instance:
Load balance instance:
============================================================
INTERFACE:
Role Member DownCount Last-Down-Time FlushCount Last-Flush-Time
MASTER eth-0-9 0 N/A 0 N/A
SLAVE eth-0-13 0 N/A 0 N/A
Related Commands
show smart-link group
13.9.4. protected mstp instance
Command Purpose
Use this command to set protected MSTP instance to the smart-link group.
Use the no form of this command to unset protected MSTP instance.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
protected mstp instance INSTANCE-ID
no protected mstp instance (all|INSTANCE-ID)
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE-ID |
MSTP instance ID. The range is 0 - 4094 |
0 - 4094 |
all |
All the instance have been exist |
Command Mode
Smart-link Configuration
Default
There is no protected MSTP instance in the smart-link group by default.
Usage
The smart-link groups only protect these VLANs in the protected MSTP instances. The smart-link group can’t be enabled if no protected instance is configured. To protect those VLANs which are not bound with MSTP instance, use the command “protected MSTP instance 0”.
NOTE: If the MTSP instance is removed, it will be removed from smart-link group at the same time.
Examples
This example shows how to set MSTP instance 0, 10 and 100 to the smart-link group 1:
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# protected mstp instance 0
Switch(config-smlk-group)# protected mstp instance 10
Switch(config-smlk-group)# protected mstp instance 100
Switch(config-smlk-group)# end
Switch# show smart-link group 1
Smart-link group 1 information:
The smart-link group was disabled.
============================================================
Auto-restore:
state time count Last-time
disabled 60 0 N/A
============================================================
Protected instance: 0 100 10
Load balance instance:
============================================================
INTERFACE:
Role Member DownCount Last-Down-Time FlushCount Last-Flush-Time
MASTER eth-0-9 0 N/A 0 N/A
SLAVE eth-0-13 0 N/A 0 N/A
Related Commands
show smart-link group
13.9.5. load-balance instance
Command Purpose
Use this command to set load-balancing instance to the smart-link group.
Use this command to unset load-balancing instance.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
load-balance instance INSTANCE-ID
no load-balance instance (all|INSTANCE-ID)
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
INSTANCE-ID |
MSTP instance ID. The range is 0 - 4094 |
0 - 4094 |
all |
All the instance have been exist |
- |
Command Mode
Smart-link Configuration
Default
There is no load-balancing instance in the smart-link group by default.
Usage
Load-balancing instances will be active in the slave interface. If user want to configure load-balancing instances, should before the smart-group is enabled.
Examples
This example shows how to set protected instance 10 as the load-balancing instance:
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# load-balance instance 10
Related Commands
show smart-link group
13.9.6. restore time
Command Purpose
Use this command to set restore time of the smart-link group.
Use the no form of this command to restore the default value.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
restore time RESTORE-TIME
no restore time
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
RESTORE-TIME |
The restore time of the smart-link group |
30 - 1200 seconds |
Command Mode
Smart-link Configuration
Default
The default restore time is 60 seconds.
Usage
When the master interface is resumed, the links will not be immediately restored to the master interface, but will be delayed a while. The delay time is called restore time.
Examples
This example shows how to set restore time as 30 seconds in the smart-link group 1:
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# restore time 30
Related Commands
show smart-link group
13.9.7. restore enable
Command Purpose
Use this command to enable/disable restoring feature of the smart-link group.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
restore enable
no restore enable
Command Mode
Smart-link Configuration
Default
The restoring feature of the smart-link group is disabled by default.
Usage
When master interface fails, the link will be switched to the slave interface. Then, if master interface is resumed, the link will not be switched back to keep the flow stable by default. If restoring feature is enabled, the link will be switched back.
NOTE: If load-balancing instance is configured, this feature is recommended strongly.
Examples
This example shows how to enable the restoring feature in the smart-link group 1:
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# restore enable
Related Commands
show smart-link group
13.9.8. flush send
Command Purpose
Use this command to set/unset the flush packet sender in the smart-link group.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
flush send control-vlan VLAN-ID (password simple PASSWORD| )
no flush send
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
VLAN-ID |
Flush packet will be sent through this VLAN. |
1 - 4094 |
PASSWORD |
The simple password of the flush packet |
String with up to 15 characters |
Command Mode
Smart-link Configuration
Default
There is no flush sender in the smart-link group by default.
Usage
Mac address-table should be updated when a master (forwarding) link goes down and the slave link begins forwarding traffic. Flush packet is used for this purpose.
NOTE: If the control-vlan is not existed in the switch, sending flush packet will fail.
Examples
This example shows how to configure flush sender of the smart-link group 1, control-vlan is 4 and password is “test”:
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# flush send control-vlan 4 password simple test
Related Commands
show smart-link group
smart-link flush receive
13.9.9. group enable
Command Purpose
Use this command to enable/disable the smart-link group.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
group enable
no group enable
Command Mode
Smart-link Configuration
Default
Smart-link group is disabled by default.
Usage
After interface and protected instance configuration is finished, this command could be used to enable the group.
Examples
This example shows how to enable the smart-link group 1:
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# group enable
Related Commands
show smart-link group
13.9.10. smart-link flush receive
Command Purpose
Use this command to set/unset the flush packet receiver in the switch interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
smart-link flush receive control-vlan VLAN_LIST (password simple PASSWORD| ) (vpls-notify| )
no smart-link flush receive (control-vlan VLAN_LIST| )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
VLAN_LIST |
Flush packet will be sent through these VLANs. |
VLAN ID list, example: 2-5,7,9-11, range is 1-4094 |
PASSWORD |
The simple password of the flush packet |
String with up to 15 characters |
vpls-notify |
Flush packet is used for VPLS |
- |
Command Mode
Interface Configuration
Default
There is no flush receiver by default.
Usage
The received flush packet should have the same VLAN-ID and password with the sender. Otherwise, the packet will be discarded.
Examples
This example shows how to configure flush receiver in the interface eth-0-9, control-vlan is 4 and password is “test”:
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# smart-link flush receive control-vlan 4 password simple test
Switch(config-if)# end
Switch# show smart-link
Relay smart-link flush packet is enabled
Smart-link received flush packet number:0
Smart-link processed flush packet number:0
Smart link Group Number is 1.
Group-ID State MASTER SLAVE
1 disabled N/A N/A
Related Commands
flush send
show smart-link
13.9.11. smart-link tcn enable
Command Purpose
Use this command to enable smart link TCN. To disable the smart-link TCN, used no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
smart-link tcn enable
no smart-link tcn enable
Command Mode
Global Config
Default
Disable
Usage
None
Examples
Switch# configure terminal
Switch(config)# no smart-link tcn enable
Switch# configure terminal
Switch(config)# smart-link tcn enable
Related Commands
show smart-link
13.9.12. smart-link tcn query-count
Command Purpose
Use this command to set smart link TCN query count. To reset the smart-link TCN query count to default value, used no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
smart-link tcn query-count QUERY-COUNT
no smart-link tcn query-count
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
QUERY-COUNT |
TCN query count |
1 - 10 |
Command Mode
Global Config
Default
2
Usage
None
Examples
This example shows how to set smart link TCN query count to 5:
Switch# configure terminal
Switch(config)# smart-link tcn query-count 5
Related Commands
show smart-link
13.9.13. smart-link tcn query-interval
Command Purpose
Use this command to set smart link TCN query interval. To reset the smart-link TCN query interval to default value, used no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
smart-link tcn query-interval QUERY-INTERVAL
no smart-link tcn query-interval
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
QUERY-INTERVAL |
TCN query interval. |
1 - 255 seconds |
Command Mode
Global Config
Default
10s
Usage
None
Examples
This example shows how to set smart link TCN query interval to 50:
Switch# configure terminal
Switch(config)# smart-link tcn query-interval 50
Switch# configure terminal
Switch(config)# no smart-link tcn query-interval
Related Commands
show smart-link
13.9.14. show smart-link
Command Purpose
Use this command to display information of all smart-link groups.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
show smart-link
Command Mode
Privileged EXEC
Default
None
Usage
This command is used to display summary information of Smart-link group status, including received flush packet, processed flush packet and current Smart-link group number, etc.
Examples
Switch# show smart-link
Relay smart-link flush packet is enabled
Smart-link received flush packet number:7
Smart-link processed flush packet number:0
Smart link Group Number is 1.
Group-ID State MASTER SLAVE
1 enabled eth-0-1 eth-0-2
Related Commands
None
13.9.15. show smart-link group
Command Purpose
Use this command to display detailed information of all smart-link groups or a specific group.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
show smart-link group (GROUP-ID| )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
GROUP-ID |
Smart-link group ID |
1 - 16 |
Command Mode
Privileged EXEC
Default
None
Usage
This command is used to display detail information of a specified Smart-link group or all Smart-link groups’ status.
Examples
Switch# show smart-link group 1
Related Commands
None
13.9.16. clear smart-link statistic
Command Purpose
Use this command to clear the statistic of the smart-link groups.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
clear smart-link statistic
Command Mode
Privileged EXEC
Default
None
Usage
This command is used to clear the statistic of the smart-link groups.
Examples
Switch# clear smart-link statistic
Related Commands
None
13.9.17. debug smart-link
Command Purpose
Use this command to debug detail information of smart link.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
- |
AQ-N5000 |
7.0 |
Base |
- |
AQ-N6000 |
7.0 |
Base |
- |
Command Syntax
debug smart-link (all|flush|instance|interface|restore)
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
all |
All debugging |
- |
flush |
Smart-Link Flush Packet |
- |
instance |
Smart-Link Instance |
- |
interface |
Smart-Link Interface |
- |
restore |
Smart-Link auto-restore |
- |
mib |
SNMP MIBs of Smart-Link |
- |
trap |
SNMP trap of Smart-Link |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
Switch# debug smart-link all
Related Commands
None