Port-channel/LAG (802.3ad) commands

Use these M4500 CLI commands to create port channels (LAGs), configure LACP and load balancing, and display port-channel and LACP status.

This section describes the commands you use to configure port-channels, which is defined in the 802.3ad specification, and that are also known as link aggregation groups (LAGs). Link aggregation allows you to combine multiple full-duplex Ethernet links into a single logical link. Network devices treat the aggregation as if it were a single link, which increases fault tolerance and provides load sharing. The LAG feature initially load shares traffic based upon the source and destination MAC address. Assign the port-channel (LAG) VLAN membership after you create a port-channel. If you do not assign VLAN membership, the port-channel might become a member of the management VLAN which can result in learning and switching issues.

A port-channel (LAG) interface can be either static or dynamic, but not both. All members of a port channel must participate in the same protocols. A static port-channel interface does not require a partner system to be able to aggregate its member ports.

Note: If you configure the maximum number of dynamic port-channels (LAGs) that your platform supports, additional port-channels that you configure are automatically static.

show interface port-channel brief

This command displays the capability of all port-channels (LAGs) on the device as well as a summary of individual port-channels.

Format show interface port-channel brief
Mode

Privileged EXEC

User EXEC

For each port-channel the following information is displayed:

Parameter Definition
Channel ID The field displays the port-channel’s ID.
Port-Channel Name This field displays the name of the port-channel.
Min-links This field displays the minimum links value of the port-channel.
Link State This field indicates whether the link is up or down.
Trap Flag This object determines whether or not to send a trap when link status changes. The factory default is enabled.
Type This field displays the status designating whether a particular port-channel (LAG) is statically or dynamically maintained. The possible values of this field are Static, indicating that the port-channel is statically maintained; and Dynamic, indicating that the port-channel is dynamically maintained.
Mbr Ports This field lists the ports that are members of this port-channel, in slot/port notation.
Active Ports This field lists the ports that are actively participating in this port-channel.

Example: The following example displays the interface port-channel brief configurations.

CODE
(M4500-48XF8C) #show interface port-channel brief
 Channel  Port-Channel Name Min Link State Trap     Type    Mbr Ports  Active Ports
   ID                                      Flag
--------- ----------------- --- ---------- -------- ------- ---------  ------------
1         ch1               1   Down       Disabled Static
2         ch2               1   Down       Disabled Static
3         ch3               1   Down       Disabled Static
4         ch4               1   Down       Disabled Static
5         ch5               1   Down       Disabled Static
6         ch6               1   Down       Disabled Static
7         ch7               1   Down       Disabled Static
8         ch8               1   Down       Disabled Static
9         ch9               1   Down       Disabled Static
10        ch10              1   Down       Disabled Static
11        ch11              1   Down       Disabled Static
12        ch12              1   Down       Disabled Static
13        ch13              1   Down       Disabled Static
14        ch14              1   Down       Disabled Static
15        ch15              1   Down       Disabled Static
16        ch16              1   Down       Disabled Static
17        ch17              1   Down       Disabled Static
18        ch18              1   Down       Disabled Static
19        ch19              1   Down       Disabled Static

show interface port-channel

This command displays an overview of all port-channels (LAGs) or a specific port-channel on the switch.

Format show interface port-channel [<ID>]
Mode

Privileged EXEC

User EXEC

If you do not use the optional parameters ID, the command displays following information for all port-channels:

Parameter Definition
Channel ID The field displays the port-channel’s ID.
Channel Name This field displays the name of the port-channel.
Min This field displays the minimum links value of the port-channel.
Link This field indicates whether the link is up or down.
Admin Mode May be enabled or disabled. The factory default is enabled.
Link Trap This object determines whether or not to send a trap when link status changes. The factory default is enabled
STP Mode This field displays the MSTP administrative bridge port state.
Type This field displays the status designating whether a particular port-channel (LAG) is statically or dynamically maintained. The possible values of this field are Static, indicating that the port-channel is statically maintained; and Dynamic, indicating that the port-channel is dynamically maintained.
Mbr Ports This field lists the ports that are members of this port-channel, in slot/port notation.
Device Timeout This field displays the device timeout value of actor and partner. The value of device timeout should be short(1 second) or long(30 seconds).
Port Speed Speed of the port-channel port.
Active Ports This field lists the ports that are actively participating in the port-channel (LAG).

Example: The following example displays the interface port-channel configurations.

CODE
M4500-48XF8C) #show  interface port-channel
Channel    Channel                 Adm. Link STP         Mbr    Device/       Port      Port
  ID        Name       Min  Link   Mode Trap Mode   Type Ports  Timeout       Speed     Active
------- -------------- ---- ------ ---- ---- ------ ---- ------ ------------- --------- -------
1       ch1            3    Down   En.  Dis. En.    Stat
2       ch2            1    Down   En.  Dis. En.    Stat
3       ch3            1    Down   En.  Dis. En.    Stat
4       ch4            1    Down   En.  Dis. En.    Stat
5       ch5            1    Down   En.  Dis. En.    Stat
6       ch6            1    Down   En.  Dis. En.    Stat
7       ch7            1    Down   En.  Dis. En.    Stat
8       ch8            1    Down   En.  Dis. En.    Stat
9       ch9            1    Down   En.  Dis. En.    Stat
10      ch10           1    Down   En.  Dis. En.    Stat
11      ch11           1    Down   En.  Dis. En.    Stat
12      ch12           1    Down   En.  Dis. En.    Stat
13      ch13           1    Down   En.  Dis. En.    Stat
14      ch14           1    Down   En.  Dis. En.    Stat
15      ch15           1    Down   En.  Dis. En.    Stat

If you use the optional parameters ID, the command displays following information for the specific port-channel:

Parameter Definition
Port Channel ID The field displays the port-channel’s ID.
Channel Name This field displays the name of the port-channel.
Link State This field indicates whether the link is up or down.
Admin Mode May be enabled or disabled. The factory default is enabled.
Link Trap Mode This object determines whether or not to send a trap when link status changes. The factory default is enabled
STP Mode This field displays the MSTP administrative bridge port state.
Type This field displays the status designating whether a particular port-channel (LAG) is statically or dynamically maintained. The possible values of this field are Static, indicating that the port-channel is statically maintained; and Dynamic, indicating that the port-channel is dynamically maintained.
Port-channel Min-links This field displays the minimum links value of the port-channel.
Load Balance Option (Src/Dest MAC, VLAN, EType, incoming port) The load balance option associated with the port-channel..
LACP Fallback Mode May be enabled or disabled. The factory default is disabled.
LACP Fallback Timeout This field displays the LACP fallback timeout, the timeout default is 5sec.
Mbr Ports This field lists the ports that are members of this port-channel, in slot/port notation.
Device Timeout This field displays the device timeout value of actor and partner. The value of device timeout should be short(1 second) or long(30 seconds).
Port Speed Speed of the port-channel port.
Active Ports This field lists the ports that are actively participating in the port-channel (LAG).

Example: The following example displays the interface port-channel configurations.

CODE
M4500-48XF8C) #show interface port-channel 1
Port Channel ID................................ 1
Channel Name................................... ch1
Link State..................................... Down
Admin Mode..................................... Enabled
Admin Key...................................... 354
Link Trap Mode................................. Disabled
STP Mode....................................... Enabled
Type........................................... Static
Port-channel Min-links......................... 1
Load Balance Option............................ 3
(Src/Dest MAC, VLAN, EType, incoming port)
LACP Fallback Mode............................. Disabled
LACP Fallback Timeout.......................... 5

Mbr    Device/       Port      Port    Fallback
Ports  Timeout       Speed     Active
------ ------------- --------- ------- ---------

show interface port-channel system priority

This command displays the port-channel system priority.

Format show interface port-channel system priority
Mode

Privileged EXEC

User EXEC

show lacp actor

This command displays LACP actor attributes.

Format show lacp actor [slot/port]
Mode Privileged EXEC

User EXEC

Display Message

Parameter Description
Admin Key The administrative value of the key
Port Priority The priority value assigned to the Aggregation Port
Admin State The administrative values of the actor state as transmitted by the Actor in LACPUDs

show lacp interface

This command displays LACP status for interface.

Format show lacp interface [slot/port]
Mode

Privileged EXEC

User EXEC

interface port-channel

This command configures a new port-channel (LAG) with the specified ID. Display the information of this port-channel using the show interface port-channel <portchannel-id>.

Note: Before including a port in a port-channel, set the port physical mode. For more information, see speed-duplex command
Format interface port-channel <portchannel-id>
Mode Global Config

staticcapability

This command enables the static function to support on specific port-channels (static link aggregations - LAGs) on the device.

Default Disabled
Format staticcapability
Mode Interface Config

no staticcapability

This command disables the static function to support on specific port-channels (static link aggregations - LAGs) on the device.

Format no staticcapability
Mode Interface Config

port-channel linktrap

This command enables link trap notifications for the port-channel (LAG). The interface is an ID for a configured port-channel. The option all sets every configured port-channel with the same administrative mode setting.

Default Enabled
Format port-channel linktrap {<ID> | all}
Mode Global Config

no port-channel linktrap

This command disables link trap notifications for the port-channel (LAG). The interface is a ID for a configured port-channel. The option all sets every configured port-channel with the same administrative mode setting.

Format no port-channel linktrap {<ID> | all}
Mode Global Config

port-channel load-balance

This command selects the load-balancing option used on a port-channel (LAG). Traffic is balanced on a port-channel (LAG) by selecting one of the links in the channel over which to transmit specific packets. The link is selected by creating a binary pattern form selected fields in a packet, and associating that pattern with a particular link.

This command can be configured for a single interface, a range of interfaces, or all interfaces.

Default src-dst-mac
Format port-channel load-balance {src-mac | dst-mac | src-dst-mac | src-ip | dst-ip | src-dst-ip }
Mode Global Config
Parameter Definition
src-mac Sets the mode on the source MAC address.
dst-mac Sets the mode on the destination MAC address.
src-dst-mac Sets the mode on the source and destination MAC addresses.
src-ip Sets the mode on the source IP address.
dst-ip Sets the mode on the destination IP addresses.
src-dst-ip Sets the mode on the source and destination IP addresses.
enhanced Set the mode on the source and destination MAC addresses if it is a L2 packet or on the source and destination IP addresses if it is a IP packet.
<ID> | all Global Config Mode only: The interface is an identifier of a configured port-channel. All applies the command to every configured port-channel.

no port-channel load-balance

This command reverts to the default load balancing configuration.

Format no port-channel load-balance {<ID> | all}
Mode Global Config

load-balance

This command selects the load-balancing option used on a port-channel (LAG). Traffic is balanced on a port-channel (LAG) by selecting one of the links in the channel over which to transmit specific packets. The link is selected by creating a binary pattern form selected fields in a packet, and associating that pattern with a particular link.

Default src-dst-mac
Format load-balance {src-mac | dst-mac | dst-src-mac | src-ip | dst-ip | dst-src-ip | enhanced}
Mode Interface Config
Parameter Definition
src-mac Sets the mode on the source MAC address.
dst-mac Sets the mode on the destination MAC address.
src-dst-mac Sets the mode on the source and destination MAC addresses.
src-ip Sets the mode on the source IP address.
dst-ip Sets the mode on the destination IP addresses.
src-dst-ip Sets the mode on the source and destination IP addresses.
enhanced Set the mode on the source and destination MAC addresses if it is a L2 packet or on the source and destination IP addresses if it is a IP packet.

no load-balance

This command reverts to the default load balancing configuration.

Format no load-balance
Mode Interface Config

port-channel system priority

This command configures port-channel system priority. The value range of priority is 0-65535.

Default 32768 (0x8000)
Format port-channel system priority <priority-value>
Mode Global Config

no port-channel system priorty

This command configures the default port-channel system priority vlaue.

Format no port-channel system priority
Mode Global Config

lacp

This command enables Link Aggregation Control Protocol (LACP) on a port or a range of interfaces.

Default Enabled
Format lacp
Mode Interface Config

no lacp

This command disables Link Aggregation Control Protocol (LACP) on a port or a range of interfaces.

Format no lacp
Mode Interface Config

lacp all

This command enables Link Aggregation Control Protocol (LACP) on all ports.

Default Enabled
Format lacp all
Mode Global Config

no lacp

This command disables Link Aggregation Control Protocol (LACP) on all ports.

Format no lacp all
Mode Global Config

lacp admin key

This command configures the administrative value of the key for the port-channel. This command can be used to configure a single interface or a range of interfaces.

Note: This command is applicable only to port-channel interfaces
Default Internal interface number of this port-channel
Format lacp admin key <0-65535>
Mode Interface Config

no lacp admin key

This command configures the default administrative value of the key for the port-channel.

Format no lacp admin key
Mode Interface Config

lacp actor admin key

This command configures the administrative value of the LACP actor admin key on an interface or a range of interfaces. “0” means that this value is not configured yet and the key value of the physical interfaces will be adjusted to the internal interface number of the port-channel that this physical interface is going to join to.

Note: This command is applicable only to physical interfaces
Default 0
Format lacp actor admin key <0-65535>
Mode Interface Config

no lacp actor admin key

This command configures the default administrative value of the key.

Format no lacp actor admin key
Mode Interface Config

lacp actor admin state

This command configures the administrative value of the actor state as transmitted by the Actor in LACPUDs. This command can be used to configure a single interface or a range of interfaces.

Note: This command is applicable only to physical interfaces
Default

no lndividual (aggregation)

longtimeout (no shorttimeout)

no passive (active)

Format lacp actor admin state <individual | longtimeout | passive>
Mode Interface Config

no lacp actor admin state

This command configures the default administrative value of actor state as transmitted by the Actor in LACPDUs.

Note: Both the no port lacptimeout and the no lacp actor admin state commands set the values back to default, regardless of the command used to configure the ports.
Format no lacp actor admin state <individual | longtimeout | passive>
Mode Interface Config

lacp actor port priority

This command configures the priority value assigned to the Aggregation Port for an interface or a range of interfaces.

Note: This command is applicable only to physical interfaces
Default 128 (0x80)
Format lacp actor port priority <0-65535>
Mode Interface Config

no lacp actor port priority

This command configures the default priority value assigned to the Aggregation Port.

Format no lacp actor port priority
Mode Interface Config

lacp fallback

This command configures the fallback feature for Link Aggregation.

Note: This command is applicable only to port-channel interfaces
Default Disabled
Format lacp fallback
Mode Interface Config

no lacp fallback

This command restores the fallback feature to default value.

Format no lacp fallback
Mode Interface Config

lacp fallback timeout

This command configures the fallback timeout value for Link Aggregation.

Note: This command is applicable only to port-channel interfaces
Default 5
Format lacp fallback timeout <1-100>
Mode Interface Config

no lacp fallback timeout

This command restores the fallback feature to default timeout value.

Format no lacp fallback timeout
Mode Interface Config

channel-group

This command assigns and configures an interface to a port-channel (LAG) group. The interface is an ID of a configured port-channel.

Note: Before adding a port to a port-channel, set the physical mode of the port. See ‘port-mode’ command.

You can change the mode for an interface only if it is the only interface designated to the specified channel group. If you enter this command on an interface that is added to a channel with a different protocol (than the protocol you are entering), the command is rejected.

Default None
Format channel-group <ID> mode {active | on}
Mode Interface Config
Parameter Definition
active Enables LACP unconditionally.
on Enables static mode (Cisco EtherChannel-like).

no channel-group

This command removes the interface from the specified channel group.

Format no channel-group <ID>
Mode Interface Config

delete-channel-group

This command deletes all configured ports from the port-channel (LAG). The interface is an ID of a configured port-channel.

Note: This command is applicable only to port-channel interfaces
Default None
Format delete-channel-group <ID> all
Mode Global Config

port lacpmode enable all

This command enables Link Aggregation Control Protocol (LACP) on all ports.

Format port lacpmode enable all

no port lacpmode enable all

Mode Global Config

port lacptimeout

This command sets the timeout for all interfaces of a particular device type (actor or partner) to either long or short timeout.

Format port lacptimeout {actor | partner} {long | short}

no port lacptimeout {actor | partner}

Default long
Mode Global Config