interface port-channel

Adds or removes a Link Aggregation Group (LAG) or port-channel from the ingress or egress group.

Syntax

interface port-channel
PORANGE
no interface port-channel PORANGE

Parameters

PORANGE
Specifies the channel number or range of channel numbers assigned to the Ether Channel logical interface. Valid range is 1-255.

Modes

Config mode

Usage Guidelines

This command is available only to users with admin role.

The packets are load balanced on member port-channel ports when a port-channel is added as part of the egress-group.

The no interface port-channelPORANGE command deletes the LAG group.

Examples

The following example configures the link aggregation group.

device# configure terminal 
device(config)# interface port-channel 1 
device(config-if-po-1)# no shutdown 

device# configure terminal 
device(config)# interface port-channel 1-3,5,7-9 
device(config-if-po-1-3,5,7-9)# no shutdown

Error Messages

Table 1. Error Messages
Error Description
Error: port-channel wrong format or range. Valid range is 1-255
The port-channel entry is out-of-range or in the wrong format, the system displays:
9920(config)# interface port-channel 256
Error: Port-channel range too long, max 255 char supported
The port-channel entry is too long.
Error: first delete member ports from port-channel 1
The system requires that a member port be deleted.