Reference Guide

Create port-channel
You can create up to 128 port-channels, with up to 16 port members per group. Congure a port-channel similarly to a physical interface —
you can enable or congure protocols, or assign access control lists (ACLs) to a port channel. After you enable the port-channel, you can
place it in L2 or L3 mode.
To place the port-channel in L2 mode or congure an IP address to place the port-channel in L3 mode, use the switchport command.
1 Create a port-channel in CONFIGURATION mode.
interface port-channel id-number
2 Ensure that the port-channel is active in PORT-CHANNEL mode.
no shutdown
Create port-channel
OS10(config)# interface port-channel 10
OS10(conf-if-po-10)# no shutdown
Add port member
When you add a port interface to a port-channel:
The port-channel conguration and administrative status are applied to member interfaces.
A port-channel operates in either L2 (default) or L3 mode. To place a port-channel in L2 mode, use the switchport mode
command. To place a port-channel in L3 mode and remove L2 conguration before you congure an IP address, use the no
switchport command.
All interfaces should have the same speed (recommended). Port-channels can contain a mix of 10G and 40G Ethernet interfaces, but
interfaces that are not the same speed as the rst channel member in the port-channel are automatically disabled.
An interface should not contain any non-default L2/L3 conguration settings — only the description and shutdown or no
shutdowncommands are supported. You cannot add an IP address or a static MAC address to a member interface.
You cannot enable ow control on a port-channel interface — ow control is supported on physical interfaces that are port-channel
members.
Port-channels support LACP (802.3ad). LACP identies similarly congured links and dynamically groups ports into a logical channel.
LACP activates the maximum number of compatible ports that the switch supports in a port-channel.
If you globally disable spanning-tree operation, L2 interfaces that are LACP-enabled port-channel members may ap due to packet
loops.
Add port member — static LAG
A static port-channel (LAG) contains member interfaces that you manually assign using the channel-group command.
OS10(config)# interface port-channel 10
Aug 24 4:5:38: %Node.1-Unit.1:PRI:OS10 %dn_ifm
%log-notice:IFM_ASTATE_UP: Interface admin state up.:port-channel10
Aug 24 4:5:38: %Node.1-Unit.1:PRI:OS10 %dn_ifm
%log-notice:IFM_OSTATE_DN: Interface operational state is down.:port-channel10
OS10(conf-if-po-10)# exit
OS10(config)# interface ethernet 1/1/2
OS10(conf-if-eth1/1/2)# channel-group 10
Aug 24 4:5:56: %Node.1-Unit.1:PRI:OS10 %dn_ifm
%log-notice:IFM_OSTATE_UP: Interface operational state is up.:port-channel10
Add port member — dynamic LACP
78
Interfaces