lag
Syntax
lag <ID>
no lag <ID>
Description
Adds an interface to a specified LAG interface ID.
The
no
form of this command removes an interface from a specified LAG interface ID. The member loses its LACP configuration when removed from the LAG. The member also reaches the default state with an administrative shutdown. For 6300 and 6400 series switches, the administrative state is enabled. Configurations, such as MTU and UDLD, are retained.
Command context
config-if
Parameters
<ID>
Specifies a LAG interface ID. Range: 1 to 256.
Authority
Administrators or local user group members with execution rights for this command.
Usage
All members of the LAG must have the same speed. If a member comes up late with a different speed, it will not participate in the LAG/LACP. The hardware restriction is applied before adding an interface to LAG. The member belongs to the card type that has the same maximum speed as the reference port card type.
To move an interface from LagA to LagB, first remove the interface from LagA and then add it to LagB. When a member is attached to a LAG, the nondefault configurations on the member are removed silently.
After removing a physical interface from a LAG, the interface associated with the LAG becomes L3 ports with default L3 configurations and administrative down. For example, suppose interface 1/1/1 was part of LAG 3 and you had administratively enabled the interface. If you later remove interface 1/1/1 from LAG 3, the administrative status automatically changes to down. If you want to use the interface again, you must administratively enable it again.
Examples
Adding an interface to a Link Aggregation Group (LAG) represented by an ID of 100:
switch(config)# interface 1/1/1 switch(config-if)# lag 100
Deleting an interface from a Link Aggregation Group (LAG) represented by an ID of 100:
switch(config)# interface 1/1/1 switch(config-if)# no lag 100