Port Channel Commands

This chapter contains the following sections:

channel-group

To associate a port with a port channel, use the channel-group Interface Configuration mode command.

To remove a port from a port channel, use the no form of this command.

Syntax

channel-group port channel mode {active | on | passive}

no channel-group

Parameters

port channel—The number of the port channel that the port will join.

mode—Specifies the mode of the port channel. The possible values are:

  • active—Enables LACP unconditionally. It forces unconditionally the port to join a channel as a result of a LACP operation.

  • on—Enables static only. It forces the port to join a channel without a LACP operation. In this mode, a usable EtherChannel exists only when both connected port groups are in the on mode.

  • passive—Enables LACP only if a LACP device is detected. It forces the port to join a channel as a result of a LACP operation. Active mode places a port into a negotiating state in which the port initiates the negotiations with other ports by sending LACP packets. A channel is formed with another port group in either the active or passive mode.

Default Configuration

The port is not assigned to a port channel.

Command Mode

Interface Configuration (Ethernet) mode

Example

The following example forces gi1 to join the port channel 1 without a LACP operation:

switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# channel-group 1 mode on

port-channel load-balance

To configure the load-balancing policy for a port channel, use the port-channel load-balance Global Configuration mode command.

Syntax

port-channel load-balance {src-dst-mac | src-dst-mac-ip}

Parameters

src-dst-mac—Specifies that the port channel load-balancing is based on the source and destination MAC addresses for all packets.

src-dst-mac-ip—Specifies that the port channel load-balancing is based on the destination IP addresses, source IP addresses, destination MAC addresses, and source MAC addresses for all packets.

Default Configuration

The default option is src-dst-mac.

Command Mode

Global Configuration mode

User Guidelines

In the src-dst-mac-ip port channel load-balancing policy, fragmented packets may be reordered.

Example

switchxxxxxx(config)# port-channel load-balance src-dst-mac

show etherchannel summary

To show information for all port channels, use the show etherchannel summary Privileged EXEC Mode command.

Syntax

show etherchannel summary

Parameters

N/A

Command Mode

Privileged EXEC Mode

Examples

switchxxxxxx# show etherchannel summary
Load Balancing: src-dst-mac.
Flags: D - down
           P - bundled in port-channel
           H - Hot-standby (LACP only)
           U - in use
           w - waiting to be aggregated
Number of channel-groups in use: 4
Group Port-channel Protocol Ports
--------+----------------+---------+--------------------------------------
1         po1(U)           ---         fa4(P) fa5(D) fa19(D) fa20(D)
                                              fa21(D) fa22(D)
2         po2(D)           LACP   fa7(D)  fa8(D)
3         po3(D)           ---         fa15(D) fa16(D) fa17(D)
4         po4(U)           ---         fa9(D) fa10(D) fa18(D) fa23(P)
                                             fa24(P)