interface port-channel

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

Syntax

interface port-channel channel-number
no interface port-channel channel-number

Parameters

channel-number
Specifies the channel number assigned to the Ether Channel logical interface. The 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-channel channel-number 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

Show running: 
device# show running-configuration
interface port-channel 1

device(config)# no interface port-channel 1
Error: first delete member ports from port-channel 1

The following example adds a port-channel to the specified ingress-group.

device# configure terminal
device(config)# ingress-group ingress1 
device(config-ingress-group)# interface port-channel 2

The following example adds a port-channel to the specified egress-group.

device# configure terminal 
device(config)# egress-group egress1
device(config-egress-group)# interface port-channel 2