Changing the LAG membership for an interface

Prerequisites

You must be in the global configuration context:switch(config)#

Procedure
  1. Remove an interface from the LAG. Enter:
    switch(config)#interfaceswitch(config-if)#no lag

    For example:

    For 6100, 6200, 6300, and 6400 switch series:
    switch(config)#interface 1/1/1switch(config-if)#no lag 100switch(config-if)#show running-config当前配置:!…!vlan 1界面拉g 100 no shutdown vlan trunk native 1 vlan trunk allowed all interface 1/1/1 interface 1/1/2 no shutdown lag 100 switch(config-if)#
    For 8320, 8325, 8360, and 8400 switch series:
    switch(config)#interface 1/1/1switch(config-if)#no lag 100switch(config-if)#show running-config当前配置:!…!vlan 1界面拉g 100 no shutdown no routing vlan trunk native 1 vlan trunk allowed all interface 1/1/1 interface 1/1/2 no shutdown lag 100 switch(config-if)#

    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.

    On 6100 and 6200 Switch Series, after removing a physical interface from a LAG, the interface associated with the LAG becomes layer 2 ports with default layer 2 configurations andadminstatus enabled.

  2. Create the LAG to which you want to add the interface:
    switch(config-if)#interface lag 10

    For example:

    For 6100, 6200, 6300, and 6400 switch series:
    switch(config-if)#interface lag 10switch(config-lag-if)#no shutdownswitch(config-lag-if)#vlan trunk native 1
    For 8320, 8325, 8360, and 8400 switch series:
    switch(config-if)#interface lag 10switch(config-lag-if)#no shutdownswitch(config-lag-if)#no routingswitch(config-lag-if)#vlan trunk native 1
  3. Add the interface from Step 1 to the newly created LAG:
    switch(config)#interface 1/1/1switch(config-if)#lag 10

    For example:

    For 6100, 6200, 6300, and 6400 switch series:
    switch(config)#interface 1/1/1switch(config-if)#lag 10switch(config-if)#show running-config当前配置:!…!vlan 1界面拉g 10 no shutdown vlan trunk native 1 vlan trunk allowed all interface lag 100 no shutdown vlan trunk native 1 vlan trunk allowed all interface 1/1/1 lag 10 interface 1/1/2 no shutdown lag 100
    For 8320, 8325, 8360, and 8400 switch series:
    switch(config)#interface 1/1/1switch(config-if)#lag 10switch(config-if)#show running-config当前配置:!…!vlan 1界面拉g 10 no shutdown no routing vlan trunk native 1 vlan trunk allowed all interface lag 100 no shutdown no routing vlan trunk native 1 vlan trunk allowed all interface 1/1/1 lag 10 interface 1/1/2 no shutdown lag 100

    Notice that interface 1/1/1 in the previous example is still not active, even though it has been added to LAG 10. To change the administrative state of the member interface, enter theno shutdowncommand at the interface level.

    For example:

    For 6100, 6200, 6300, and 6400 switch series:
    switch(config-if)#interface 1/1/1switch(config-if)#no shutdownswitch(config-if)#show running-config当前配置:!…!vlan 1界面拉g 10 no shutdown vlan trunk native 1 vlan trunk allowed all interface lag 100 no shutdown vlan trunk native 1 vlan trunk allowed all interface 1/1/1 no shutdown lag 10 interface 1/1/2 no shutdown lag 100
    For 8320, 8325, 8360, and 8400 switch series:
    switch(config-if)#interface 1/1/1switch(config-if)#no shutdownswitch(config-if)#show running-config当前配置:!…!vlan 1界面拉g 10 no shutdown no routing vlan trunk native 1 vlan trunk allowed all interface lag 100 no shutdown no routing vlan trunk native 1 vlan trunk allowed all interface 1/1/1 no shutdown lag 10 interface 1/1/2 no shutdown lag 100