lag

Creates a Link Aggregation Group (LAG).
Syntax
lag lag-name
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

A 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 a 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

ES 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 Uni-Directional Link Detection (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.

ES configuration mode is supported for RUCKUS ICX 7850 and ICX 7550 devices only. Only the [ no ] lag lag-name option is available in ES configuration mode.

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# configure terminal
device(config)# lag blue static id 11
device(config-lag-blue)# ports ethernet 1/1/1 ethernet 1/1/5

The following example associates a dynamic LAG with an Ethernet Segment (ES).

device# configure terminal
device(config)# lag 100 dynamic id 100
device(config-lag-100)# exit
device(config)# l2vpn evpn
device(config-evpn)# ethernet-segment 1
device(config-evpn-es-1)# lag 100
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.
10.0.20a Support was added for ES configuration mode so that LAGs can be associated to an ES.