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

Default

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 Ten-GigabitEthernet 1/0/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 ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] undo stp enable
[Sysname-Ten-GigabitEthernet1/0/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

Related commands

port