01-Access Volume

HomeSupportSwitchesH3C S7500E Switch SeriesReference GuidesCommand ReferencesH3C S7500E Series Ethernet Switches Command Manual(Release 6300 series V1.03)01-Access Volume
06-Smart Link Commands
Title Size Download
06-Smart Link Commands 48.53 KB

Smart Link Configuration Commands

Smart Link Configuration Commands

display smart-link flush

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       : GigabitEthernet2/0/1

 Receiving time of the last flush packet            : 19:19:03 2008/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

 

display smart-link group

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 48.

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

 -------------------------------------------------------------------------------

 GigabitEthernet2/0/1      MASTER  ACTVIE    1        16:37:20 2008/04/21

 GigabitEthernet2/0/2     SLAVE  STANDBY     2        17:45:20 2008/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

Device ID

Device ID

Preemption mode

Preemption mode, which can be role for preemption enabled or none for preemption disabled.

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 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

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 control VLAN used for transmitting flush messages. The vlan-id argument ranges from 1 to 4094. If no VLAN is specified, VLAN 1 applies by default.

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.

Different smart link groups must be configured with different control VLANs.

Related commands: smart-link flush enable.

Examples

# Enable flush update for smart link group 1.

<Sysname> system-view

[Sysname] smart-link group 1

[Sysname-smlk-group1] 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: 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 2/0/1 as the slave port of smart link group 1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/0/1] stp disable

[Sysname-GigabitEthernet2/0/1] quit

[Sysname] smart-link group 1

[Sysname-smlk-group1] protected-vlan reference-instance 0

[Sysname-smlk-group1] port GigabitEthernet 2/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: Smart link group ID. The minimum value is 1, while the maximum value is 48.

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 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 2/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 2/0/1

[Sysname-GigabitEthernet2/0/1] stp disable

[Sysname-GigabitEthernet2/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] stp disable

[Sysname-Bridge-Aggregation1] port smart-link group 1 master

preemption mode

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 the role preemption mode.

Use the undo preemption mode command to restore the default.

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

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 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 its protected VLANs.

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 Access Volume.

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

reset smart-link statistics

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

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 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, on a port in Ethernet interface view or on all ports in system view.

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 2/0/1 to process the flush messages received in VLAN 1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 2/0/1

[Sysname-GigabitEthernet2/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: Smart link group ID. The minimum value is 1, while the maximum value is 48.

Description

Use the smart-link group command to create a smart link group and enter smart link group view.

Use the undo link-aggregation 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.

<Sysname> system-view

[Sysname] smart-link group 1

[Sysname-smlk-group1]

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网