lag

This topic explains the commands that add ports to a LAG in static or dynamic mode, or remove them.

Syntax

CODE
lag lag-id mode {static | active | passive}
no lag

Parameter

lag-id: Set the LAG ID for the interface. The lag-id parameter represents the LAG number. The number of LAGs that can be supported depends on the switch model.

static: Set static mode for the LAG.

active: Set dynamic mode for the LAG with the LACP ports participating as active ports.

passive: Set dynamic mode for the LAG with the LACP ports participating as passive ports.

Default

No default value.

Mode

Interface Configuration

Usage

A link aggregation group (LAG) lets you aggregate multiple physical ports into one logical port for load sharing (increased bandwidth) or fault tolerance.

Use the lag command to let one or more ports join a LAG in static or dynamic mode.

Use the no lag command to remove one or more ports from a LAG.

Example

This example shows how to create a dynamic LAG in which ports g1 through g3 are members:
CODE
Switch(config)# interface range g1-3
Switch(config-if)# lag 1 mode active
This example shows how to display the LAG status:
CODE
Switch# show lag

 Group ID |  Type  |          Ports
----------+--------+--------------------------------
   1      |   LACP |  Inactive: g1-3
   2      | ------ |
   3      | ------ |
   4      | ------ |
...