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 Ten-GigabitEthernet 1/0/1 as the secondary port of smart link group 1.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] undo stp enable
[Sysname-Ten-GigabitEthernet1/0/1] quit
[Sysname] smart-link group 1
[Sysname-smlk-group1] protected-vlan reference-instance 0
[Sysname-smlk-group1] port ten-gigabitethernet 1/0/1 secondary

Related commands

port smart-link group