lag

Creates a Link Aggregation Group (LAG).
Syntax
lag lag-name { dynamic | static } { id { number | auto } }
no lag lag-name { dynamic | static } { id { number | auto } }
lag lag-name keep-alive
no lag lag-name keep-alive
Command Default

LAG is not configured

Parameters
lag-name
Specifies the name of the LAG as an ASCII string. The LAG name can be up to 64 characters in length.
dynamic
Configures a dynamic LAG.
static
Configures a static LAG.
id number
Specifies a LAG ID. The value ranges from 1 through 2047. The range is from 1 through 256 for user LAG and 256 and above for SPX LAG.
auto
Auto generates a LAG ID.
keep-alive
Configures a keep-alive LAG.
Modes

Global configuration mode

Usage Guidelines

The keep-alive LAG configuration can be used to configure a LAG for use in keep-alive applications similar to the UDLD.

A keep-alive LAG contains only one port while static and dynamic LAGs can have 1 to 8 or 1 to 12 ports depending on the device.

LAG IDs are unique for each LAG in the system. A LAG ID cannot be assigned to more than one LAG. If a LAG ID is already used, the CLI will reject the new LAG configuration and display an error message that suggests the next available LAG ID that can be used.

Note: The LAG ID parameter is applicable for static and dynamic LAGs only. No explicit configuration of a LAG ID is allowed on keep-alive LAGs.

The no form of the command removes the LAG.

Examples

The following example shows how to configure a static LAG.

device(config)# lag blue static id 11
device(config-lag-blue)# ports ethernet 1/1/1 ethernet 1/1/5
History
Release version Command history
08.0.61 This command was modified to make the id option a mandatory configuration parameter and to make the subsequent options (id-number and auto) mandatory.