- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-Smart Link commands | 101.39 KB |
Contents
Smart Link commands
display smart-link flush
Use display smart-link flush to display information about the received flush messages.
Syntax
display smart-link flush
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display information about the received flush messages.
<Sysname> display smart-link flush
Received flush packets : 10
Receiving interface of the last flush packet : FortyGigE1/1/1
Receiving time of the last flush packet : 19:19:03 2014/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 |
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. |
reset smart-link statistics
display smart-link group
Use display smart-link group to display information about the specified or all smart link groups.
Syntax
display smart-link group { group-id | all }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all: Displays information about all smart link groups.
Usage guidelines
If you configure a port as both an aggregation group member and a smart link group member, only the aggregation group configuration takes effect. The port is not shown in the output from the display smart-link group command. The smart link group configuration takes effect after the port leaves the aggregation group.
Examples
# Display information about smart link group 1.
<Sysname> display smart-link group 1
Smart link group 1 information:
Device ID : 0011-2200-0001
Preemption mode : NONE
Preemption delay: 1(s)
Control VLAN : 1
Protected VLAN : Reference Instance 2, 4
Member Role State Flush-count Last-flush-time
-----------------------------------------------------------------------------
FGE1/1/1 PRIMARY ACTIVE 1 16:45:20 2014/04/21
FGE1/1/2 SECONDARY STANDBY 2 16:37:20 2014/04/21
Table 2 Command output
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 Multiple Spanning Tree Instances (MSTIs) are displayed. 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: primary or secondary. |
State |
Port state: active, down, or standby. |
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
Use flush enable to enable flush update.
Use undo flush enable to disable flush update.
Syntax
flush enable [ control-vlan vlan-id ]
undo flush enable
Default
Flush update is enabled for smart link groups, and VLAN 1 is used for flush message transmission.
Views
Smart link group view
Predefined user roles
network-admin
Parameters
control-vlan vlan-id: Specifies the control VLAN used for transmitting flush messages. The vlan-id argument represents the control VLAN ID in the range of 1 to 4094.
Usage guidelines
You must configure different control VLANs for different smart link groups.
· Make sure the configured control VLAN already exists, and assign the smart link group member ports to the control VLAN.
· The control VLAN of a smart link group must also be one of its protected VLANs. Do not remove the control VLAN. Otherwise, flush messages cannot be sent correctly.
Examples
# Disable flush update for smart link group 1.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] undo flush enable
Related commands
smart-link flush enable
port
Use port to assign the specified port as the primary or secondary port of the current smart link group.
Use undo port to remove the specified port from the smart link group.
Syntax
port interface-type interface-number { primary | secondary }
undo port interface-type interface-number
Default
A smart link group has no member ports.
Views
Smart link group view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies a port by its type and number, which can be a Layer 2 Ethernet interface or Layer 2 aggregate interface.
primary: Specifies a port as the primary port.
secondary: Specifies a port as the secondary port.
Usage guidelines
Disable the spanning tree feature and RRPP on the ports you want to add to the smart link group. You cannot enable the spanning tree feature or RRPP on a smart link group member port.
If you configure a port as both an aggregation group member and a smart link group member, only the aggregation group configuration takes effect. The port is not shown in the output from the display smart-link group command. The smart link group configuration takes effect after the port leaves the aggregation group.
You can also assign a port to a smart link group by using the port smart-link group command in interface view.
Examples
# Configure FortyGigE 1/1/1 as the secondary port of smart link group 1.
<Sysname> system-view
[Sysname] interface fortygige 1/1/1
[Sysname-FortyGigE1/1/1] undo stp enable
[Sysname-FortyGigE1/1/1] quit
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] port fortygige 1/1/1 secondary
Related commands
port smart-link group
port smart-link group
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.
Syntax
port smart-link group group-id { primary | secondary }
undo port smart-link group group-id
A port is not a smart link group member.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
group-id: Specifies a smart link group ID in the range of 1 to 48.
primary: Specifies the port as the primary port.
secondary: Specifies the port as the secondary port.
Usage guidelines
Disable the spanning tree feature and RRPP on the ports you want to add to the smart link group. You cannot enable the spanning tree feature or RRPP on a smart link group member port.
If you configure a port as both an aggregation group member and a smart link group member, only the aggregation group configuration takes effect. The port is not shown in the output from the display smart-link group command. The smart link group configuration takes effect after the port leaves the aggregation group.
You can assign a port to a smart link group by using the port command in smart link group view.
Examples
# Configure FortyGigE 1/1/1 as the primary 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 fortygige 1/1/1
[Sysname-FortyGigE1/1/1] undo stp enable
[Sysname-FortyGigE1/1/1] port smart-link group 1 primary
# Configure Layer 2 aggregate interface 1 as the primary 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 primary
port
port smart-link group track
Use port smart-link group track to configure the collaboration between a smart link group member port and a track entry.
Use undo port smart-link group track to remove the collaboration.
Syntax
port smart-link group group-id track track-entry-number
undo port smart-link group group-id track track-entry-number
Default
Smart link group member ports do not collaborate with any track entry.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
group-id: Specifies a smart link group ID in the range of 1 to 48.
track-entry-number: Specifies the ID of a track entry that has been associated with the CC function of CFD.
Usage guidelines
Smart Link collaborates with link detection protocols through track entries. It supports only the CC function of CFD to implement link detection. To associate the CC function of CFD with a track entry, use the track cfd command.
Before configuring the collaboration between Smart Link and Track on a port, make sure the port has been added to the specified smart link group.
Examples
# Configure the collaboration between FortyGigE 1/1/1, the primary port of smart link group 1, and the CC function of CFD through track entry 1 to detect the link status.
<Sysname> system-view
[Sysname] track 1 cfd cc service-instance 100 mep 2
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] quit
[Sysname] interface fortygige 1/1/1
[Sysname-FortyGigE1/1/1] undo stp enable
[Sysname-FortyGigE1/1/1] port smart-link group 1 primary
[Sysname-FortyGigE1/1/1] port smart-link group 1 track 1
# Configure the collaboration between bridge-aggregation 1, the primary port of smart link group 1, and the CC function of CFD through track entry 1 to detect the link status.
<Sysname> system-view
[Sysname] track 1 cfd cc service-instance 100 mep 2
[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 primary
[Sysname-Bridge-Aggregation1] port smart-link group 1 track 1
Related commands
track cfd
preemption delay
Use preemption delay to set the preemption delay.
Use undo preemption delay to restore the default.
Syntax
preemption delay delay
undo preemption delay
Default
The preemption delay is 1 second.
Views
Smart link group view
Predefined user roles
network-admin
Parameters
delay: Specifies the preemption delay in the range of 0 to 300 seconds.
Usage guidelines
The preemption delay configuration takes effect only after role preemption is enabled.
When role preemption is enabled, and after the preemption delay is set, the primary port waits for a specific period before taking over in order to collaborate with the switchover of upstream devices.
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
Related commands
preemption mode
preemption mode
Use preemption mode to enable role preemption.
Use undo preemption mode to disable role preemption.
Syntax
preemption mode role
undo preemption mode
Default
Role preemption is disabled.
Views
Smart link group view
Predefined user roles
network-admin
Parameters
role: Configures the role preemption mode, which enables the primary port to preempt the secondary port in active state.
Examples
# Enable the role preemption mode.
<Sysname> system-view
[Sysname] smart-link group 1
[Sysname-smlk-group1] preemption mode role
protected-vlan
Use protected-vlan to configure protected VLANs for a smart link group.
Use undo protected-vlan to remove the protected VLAN configuration of the smart link group.
Syntax
protected-vlan reference-instance instance-id-list
undo protected-vlan [ reference-instance instance-id-list ]
Default
No protected VLAN is configured for a smart link group.
Views
Smart link group view
Predefined user roles
network-admin
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 instance-id is an MSTI ID in the range of 0 to 4094. An MSTI ID of 0 represents the common internal spanning tree (CIST). &<1-10> means that 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.
Usage guidelines
If the reference-instance instance-id-list option is specified, the undo protected-vlan command removes configuration of VLANs mapped to the specified MSTIs. Otherwise, the command removes configuration of all protected VLANs.
Before assigning ports to a smart link group, configure protected VLANs for the smart link group.
You can remove the protected VLAN configuration of a smart link group when the group is empty but not after a member port is assigned to it.
Removing a smart link group also removes its protected VLAN configuration.
If the VLANs mapped to a referenced MSTI change, the protected VLANs also change.
The VLANs to which the member ports of a smart link group belong must be configured as the protected VLANs of the smart link group.
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
Related commands
· display stp region-configuration (Layer 2—LAN Switching Command Reference)
· smart-link group
reset smart-link statistics
Use reset smart-link statistics to clear the statistics about flush messages.
Syntax
reset smart-link statistics
Views
User view
Predefined user roles
network-admin
Examples
# Clear the statistics about flush messages.
<Sysname> reset smart-link statistics
Related commands
display smart-link flush
smart-link flush enable
Use smart-link flush enable to enable the flush message receiving function.
Use undo smart-link flush enable to remove the configuration.
Syntax
smart-link flush enable [ control-vlan vlan-id-list ]
undo smart-link flush enable [ control-vlan vlan-id-list ]
Default
Flush messages are not processed.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Predefined user roles
network-admin
Parameters
control-vlan vlan-id-list: Specifies the control VLANs used for receiving flush messages. The default is 1. 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 represents the ID of a control VLAN in the range of 1 to 4094. &<1-10> indicates that you can provide up to 10 VLAN IDs or VLAN ID lists.
Examples
# Enable FortyGigE 1/1/1 to process the flush messages received in VLAN 1.
<Sysname> system-view
[Sysname] interface fortygige 1/1/1
[Sysname-FortyGigE1/1/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
Related commands
flush enable
smart-link group
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.
Syntax
smart-link group group-id
undo smart-link group group-id
Views
System view
Predefined user roles
network-admin
Parameters
group-id: Specifies a smart link group ID in the range of 1 to 48.
Usage guidelines
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]