02-Smart Link Commands
Chapters Download (68.54 KB)
Syntax
display smart-link flush
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display smart-link flush command to display information about the received flush messages.
Examples
# Display information about the received flush messages.
<Sysname> display smart-link flush
Received flush packets : 10
Receiving interface of the last flush packet : GigabitEthernet1/0/1
Receiving time of the last flush packet : 19:19:03 2009/06/27
Device ID of the last flush packet : 000f-e200-8500
Control VLAN of the last flush packet : 1
Table 1-1 display smart-link flush command output description
Field |
Description |
Received flush packets |
Total number of received flush messages |
Receiving interface of the last flush packet |
The port that received the last flush message |
Receiving time of the last flush packet |
Time when the last flush message was received |
Device ID of the last flush packet |
Device ID carried in the last flush message |
Control VLAN of the last flush packet |
Control VLAN ID carried in the last flush message |
Syntax
display smart-link group { group-id | all }
View
Any view
Default Level
1: Monitor level
Parameters
group-id: Smart link group ID. The minimum value is 1, while the maximum value is 26.
all: Displays information about all smart link groups.
Description
Use the display smart-link group command to display information about the specified or all smart link groups.
Examples
# Display information about smart link group 1.
<Sysname> display smart-link group 1
Smart link group 1 information:
Device ID: 000f-e200-8500
Preemption mode: ROLE
Preemption delay: 1(s)
Control VLAN: 1
Protected VLAN: Reference Instance 0 to 2, 4
Member Role State Flush-count Last-flush-time
-------------------------------------------------------------------------------
GigabitEthernet1/0/1 MASTER ACTVIE 1 16:37:20 2009/04/21
GigabitEthernet1/0/2 SLAVE STANDBY 2 17:45:20 2009/04/21
Table 1-2 display smart-link group command output description
Field |
Description |
Smart link group 1 information |
Information about smart link group 1 |
Preemption mode |
Preemption mode, which can be role for preemption enabled or none for preemption disabled. |
Preemption delay |
Preemption delay time, in seconds |
Control-VLAN |
Control VLAN ID |
Protected VLAN |
Protected VLANs of the smart link group. Referenced MSTIs are displayed here. To view the VLANs mapped to the referenced MSTIs, use the display stp region-configuration command. |
Member |
Member port of the smart link group |
Role |
Port role: master or slave |
State |
Port state: active or standby |
Flush-count |
Number of transmitted flush messages |
Last-flush-time |
The time when the last flush message was transmitted (NA indicates that no flush message has been transmitted) |
Syntax
flush enable [ control-vlan vlan-id ]
undo flush enable
View
Smart link group view
Default Level
2: System level
Parameters
control-vlan vlan-id: Specifies the control VLAN used for transmitting flush messages. The vlan-id argument ranges from 1 to 4094.
Description
Use the flush enable command to enable flush update.
Use the undo flush enable command to disable flush update.
By default, flush update is enabled for smart link groups and VLAN 1 is used for flush message transmission.
Note that, you need to configure different control VLANs for different smart link groups.
Related commands: smart-link flush enable.
Examples
# Disable flush update for smart link group 1.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] undo flush enable
Syntax
port interface-type interface-number { master | slave }
undo port interface-type interface-number
View
Smart link group view
Default Level
2: System level
Parameters
interface-type interface-number: Port type and port number.
master: Specifies a port as the master port.
slave: Specifies a port as the slave port.
Description
Use the port command to assign the specified port as the master or slave port of the current smart link group.
Use the undo port command to remove the specified port from the smart link group.
Note that:
l Disable STP and RRPP on the ports you want to add to the smart link group, and make sure that the ports are not member ports of any aggregation group or service loopback group. On the other hand, you cannot enable STP or RRPP on a smart link group member port or assign a smart link group member port to an aggregation group or service loopback group.
l You can assign a port to a smart link group with the port smart-link group command in Ethernet interface view or Layer 2 aggregate interface view.
Related commands: port smart-link group.
Examples
# Configure GigabitEthernet 1/0/1 as the slave port of smart link group 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo stp enable
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] port gigabitethernet 1/0/1 slave
Syntax
port smart-link group group-id { master | slave }
undo port smart-link group group-id
View
Ethernet interface view, Layer 2 aggregate interface view
Default Level
2: System level
Parameters
group-id: Smart link group ID. The minimum value is 1, while the maximum value is 26.
master: Specifies the port as the master port.
slave: Specifies the port as the slave port.
Description
Use the port smart-link group command to configure the current port as a member of the specified smart link group.
Use the undo port smart-link group command to remove the port from the specified smart link group.
Note that:
l Disable STP and RRPP on the ports you want to add to the smart link group, and make sure that the ports are not member ports of any aggregation group or service loopback group. On the other hand, you cannot enable STP or RRPP on a smart link group member port or assign a smart link group member port to an aggregation group or service loopback group.
l You can assign a port to a smart link group with the port command in smart link group view.
Related commands: port.
Examples
# Configure GigabitEthernet 1/0/1 as the master port of smart link group 1.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo stp enable
[Sysname-GigabitEthernet1/0/1] port smart-link group 1 master
# Configure Layer 2 aggregate interface 1 as the master port of smart link group 1.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] quit
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] undo stp enable
[Sysname-Bridge-Aggregation1] port smart-link group 1 master
Syntax
preemption delay delay-time
undo preemption delay
View
Smart link group view
Default Level
2: System level
Parameters
delay-time: Preemption delay (in seconds), in the range of 0 to 300.
Description
Use the preemption delay command to set the preemption delay. When role preemption is enabled, after the preemption delay is set, the master port waits for some time before taking over, so as to collaborate with the switchover of upstream devices.
Use the undo preemption delay command to restore the default.
By default, the preemption delay is 1 second.
Note that, the preemption delay configuration takes effect only after role preemption is enabled.
Related commands: preemption mode.
Examples
# Enable role preemption and set the preemption delay to 10 seconds.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] preemption mode role
[Sysname-smlk-group1] preemption delay 10
Syntax
preemption mode role
undo preemption mode
View
Smart link group view
Default Level
2: System level
Parameters
role: Configures the role preemption mode, which enables the master port to preempt the slave port in active state.
Description
Use the preemption mode command to enable role preemption.
Use the undo preemption mode command to disable role preemption.
By default, role preemption is disabled.
Examples
# Enable the role preemption mode.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] preemption mode role
Syntax
protected-vlan reference-instance instance-id-list
undo protected-vlan [ reference-instance instance-id-list ]
View
Smart link group view
Default Level
2: System level
Parameters
reference-instance instance-id-list: Specifies the MSTIs to be referenced in the form of instance-id-list = { instance-id [ to instance-id ] }&<1-10>, where the range of the instance-id argument is as specified in the command configuring MSTIs and &<1-10> indicates that you can provide up to ten MSTIs or MSTI lists.
Description
Use the protected-vlan command to configure protected VLANs for a smart link group by referencing MSTIs. You can use the display stp region-configuration command to view the VLANs mapped to the referenced MSTIs.
Use the undo protected-vlan command to remove the specified protected VLANs from a smart link group by referencing the specified MSTIs. If no MSTI is specified, all the protected VLANs of the smart link group are removed.
By default, no protected VLAN is configured for a smart link group.
Note that:
l Before assigning ports to a smart link group, configure protected VLANs for the smart link group.
l You can remove all protected VLANs from a smart link group when the group is empty but not after a member port is assigned to it.
l Removing a smart link group also removes the protected VLAN configuration of the smart link group.
l If the VLAN(s) mapped to a referenced MSTI changes, the protected VLAN(s) change accordingly.
l The VLANs that the member ports of a smart link group belong to must be configured as the protected VLANs of the smart link group.
Related commands: smart-link group, display stp region-configuration in MSTP Commands in the Command Reference - Part 3 - Access.
Examples
# Configure the VLANs mapped to MSTIs 1 through 10 and MSTI 12 as the protected VLANs of smart link group 1.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 1 to 10 12
Syntax
reset smart-link statistics
View
User view
Default Level
2: System level
Parameters
None
Description
Use the reset smart-link statistics command to clear the statistics about flush messages.
Examples
# Clear the statistics about flush messages.
<Sysname> reset smart-link statistics
Syntax
smart-link flush enable [ control-vlan vlan-id-list ]
undo smart-link flush enable [ control-vlan vlan-id-list ]
View
Ethernet interface view, Layer 2 aggregate interface view
Default Level
2: System level
Parameters
control-vlan vlan-id-list: Specifies the control VLANs used for receiving flush messages. The vlan-id-list is expressed in the form of vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>, where the vlan-id argument ranges from 1 to 4094 and &<1-10> indicates that you can provide up to ten VLAN IDs or VLAN ID lists.
Description
Use the smart-link flush enable command to configure a VLAN for receiving flush messages, that is, a receive control VLAN.
Use the undo smart-link flush enable command to disable flush message processing.
By default, flush messages are not processed.
Note that:
l If no VLAN is specified, VLAN 1 applies.
l This command cannot be used on member port of an aggregation group or service loopback group.
Related commands: flush enable.
Examples
# Enable GigabitEthernet 1/0/1 to process the flush messages received in VLAN 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] smart-link flush enable
# Enable Layer 2 aggregate interface 1 to process the flush messages received in VLAN 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] smart-link flush enable
Syntax
smart-link group group-id
undo smart-link group group-id
View
System view
Default Level
2: System level
Parameters
group-id: Smart link group ID. The minimum value is 1, while the maximum value is 26.
Description
Use the smart-link group command to create a smart link group and enter smart link group view.
Use the undo smart-link group command to remove a smart link group.
Note that a smart link group with member ports cannot be removed.
Examples
# Create smart link group 1 and enter smart link group view.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1]