- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Smart Link Commands | 91.71 KB |
Smart Link configuration commands
display smart-link flush
Syntax
display smart-link flush [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display smart-link flush 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 : GigabitEthernet4/0/1
Receiving time of the last flush packet : 19:19:03 2010/04/21
Device ID of the last flush packet : 000f-e200-8500
Control VLAN of the last flush packet : 1
Table 1 Command output
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 |
Switch ID carried in the last flush message. |
Control VLAN of the last flush packet |
Control VLAN ID carried in the last flush message. |
display smart-link group
Syntax
display smart-link group { group-id | all } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
group-id: Specifies the smart link group ID in the range of 1 to 48.
all: Displays information about all smart link groups.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display smart-link group 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
-------------------------------------------------------------------------------
GigabitEthernet3/0/3 MASTER ACTVIE 1 16:37:20 2010/04/21
GigabitEthernet3/0/6 SLAVE STANDBY 2 17:45:20 2010/04/21
Table 2 Command output
Field |
Description |
Smart link group 1 information |
Information about smart link group 1. |
Preemption mode |
Preemption mode: · role—Preemption is enabled · none—Preemption is disabled. |
Preemption delay |
Preemption delay time, in seconds. |
Control-VLAN |
Control VLAN ID. |
Protected VLAN |
Protected VLANs of the smart link group. Referenced Multiple Spanning Tree Instances (MSTIs) are displayed here. To view the VLANs mapped to the referenced MSTIs, use the display stp region-configuration command. |
Member |
Member of the smart link group. |
Role |
Port role: master or slave. |
State |
Port state: active, standby, or down. |
Flush-count |
Number of transmitted flush messages. |
Last-flush-time |
Time when the last flush message was transmitted. (NA indicates that no flush message has been transmitted.) |
flush enable
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 transmit control VLAN, which transmits flush messages. The value range for the vlan-id argument is 1 to 4094. If no VLAN is specified, VLAN 1 applies by default.
Description
Use flush enable to enable flush update.
Use undo flush enable to disable flush update.
By default, flush update is enabled for smart link groups and VLAN 1 is used for flush message transmission.
You must configure different control VLANs for different smart link groups.
Related commands: smart-link flush enable.
Examples
# Disable flush message sending in smart link group 1.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] undo flush enable
port
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: Specifies a port by its type and number.
master: Specifies a port as the master port.
slave: Specifies a port as the slave port.
Description
Use port to configure the specified port as the master or slave port of the current smart link group.
Use undo port to remove the specified port from the smart link group.
Disable the spanning tree feature 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. On the other hand, you cannot enable the spanning tree feature or RRPP on a smart link group member port or assign a smart link group member port to an aggregation group.
You can assign a port to a smart link group by using the port smart-link group command in Ethernet interface view or aggregate interface view.
Related commands: port smart-link group.
Examples
# Configure GigabitEthernet 4/0/1 as the slave port of smart link group 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] undo stp enable
[Sysname-GigabitEthernet4/0/1] quit
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] port gigabitethernet 4/0/1 slave
port smart-link group
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: Specifies the smart link group ID in the range of 1 to 48.
master: Specifies the port as the master port.
slave: Specifies the port as the slave port.
Description
Use port smart-link group to configure the current port as a member of the specified smart link group.
Use undo port smart-link group to remove the port from the specified smart link group.
Disable the spanning tree feature 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. On the other hand, you cannot enable the spanning tree feature or RRPP on a smart link group member port or assign a smart link group member port to an aggregation group.
You can assign a port to a smart link group using the port command in smart link group view.
Related commands: port.
Examples
# Configure GigabitEthernet 4/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 4/0/1
[Sysname-GigabitEthernet4/0/1] undo stp enable
[Sysname-GigabitEthernet4/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
preemption delay
Syntax
preemption delay delay-time
undo preemption delay
View
Smart link group view
Default level
2: System level
Parameters
delay-time: Specifies the preemption delay (in seconds) in the range of 0 to 300.
Description
Use preemption delay to set the preemption delay. When role preemption is enabled, after the preemption delay is set, the master port waits for a specific period before taking over, so as to collaborate with the switchover of upstream switches.
Use undo preemption delay to restore the default.
By default, the preemption delay is one second.
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
preemption mode
Syntax
preemption mode role
undo preemption mode
View
Smart link group view
Default level
2: System level
Parameters
role: Enables role preemption, which enables the master port to preempt the slave port in active state.
Description
Use preemption mode to enable role preemption.
Use undo preemption mode to disable role preemption.
Examples
# Enable the role preemption mode.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] preemption mode role
protected-vlan
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 you want to reference in the form of instance-id-list = { instance-id [ to instance-id ] }&<1-10>, where instance-id is an MSTI ID in the range of 0 to 47. instance-id 0 represents the common internal spanning tree (CIST). &<1-10> indicates you can specify up to 10 MSTI IDs or ID ranges. You can use the display stp region-configuration command to display the instance-to-VLAN mappings.
Description
Use protected-vlan 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 undo protected-vlan 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.
Before assigning ports to a smart link group, make sure that you have configured protected VLANs for the smart link group.
You can remove all protected VLANs from a smart link group only when the group is empty.
Removing a smart link group also removes its protected VLAN configuration.
If the VLANs mapped to a referenced MSTI changes, the protected VLANs change accordingly.
You must configure the VLANs that the member ports of a smart link group belong to as the protected VLANs of the smart link group.
Related commands: smart-link group; display stp region-configuration (Layer 2—LAN Switching Command Reference).
Examples
# Map VLANs 1 through 30 to MSTI 1, activate the MST region configuration, and configure the VLANs mapped to MSTI 1 as the protected VLANs of smart link group 1.
<Sysname> system-view
[Sysname] stp region-configuration
[Sysname-mst-region] instance 1 vlan 1 to 30
[Sysname-mst-region] active region-configuration
[Sysname-mst-region] quit
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 1
reset smart-link statistics
Syntax
reset smart-link statistics
View
User view
Default level
2: System level
Parameters
None
Description
Use reset smart-link statistics to clear the statistics about flush messages.
Examples
# Clear the statistics about flush messages.
<Sysname> reset smart-link statistics
smart-link flush enable
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 receive control VLANs, which receive 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 is in the range of 1 to 4094, and &<1-10> indicates that you can provide up to ten VLAN IDs or VLAN ID ranges.
Description
Use smart-link flush enable to configure the receive control VLANs, which receive flush messages, on a port in Ethernet interface view or on all ports in system view.
Use undo smart-link flush enable to disable flush message processing.
By default, flush messages are not processed.
If no VLAN is specified, VLAN 1 applies.
Do not use this command on the member port of an aggregation group.
Related commands: flush enable.
Examples
# Enable GigabitEthernet 4/0/1 to process the flush messages received in VLAN 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/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
smart-link group
Syntax
smart-link group group-id
undo smart-link group group-id
View
System view
Default level
2: System level
Parameters
group-id: Specifies the smart link group ID in the range of 1 to 48.
Description
Use smart-link group to create a smart link group and enter smart link group view.
Use undo smart-link group to remove a smart link group.
You cannot remove a smart link group with member ports.
Examples
# Create smart link group 1, and enter smart link group view.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1]