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 all of its configuration when removed from the LAG. The member also reaches the default state with an administrative shutdown.
Command context
config-if
Parameters
<ID>
Specifies a LAG interface ID. Range: 1 to 256.
Authority
Administrators
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 non-default 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