device# configure terminal device(config)#
device(config)# interface port-channel 30 device(conf-Port-channel-30)#
device(conf-Port-channel-30)# interface ethernet 0/5 device(conf-if-eth-0/5)#
device(conf-if-eth-0/5)# channel-group 30 mode on
device(conf-if-eth-0/5)# channel-group 30 mode active
device(conf-if-eth-0/5)# channel-group 30 mode passive
The following example is for a static LAG configuration with the mode ON.
device# configure terminal device(config)# interface port-channel 30 device(conf-Port-channel-30)# interface ethernet 0/5 device(conf-if-eth-0/5)# channel-group 30 mode on
The following example adds a port 0/5 to the existing dynamic port channel interface 30 with the mode active.
device# configure terminal device(config)# interface port-channel 30 device(conf-Port-channel-30)# interface ethernet 0/5 device(conf-if-eth-0/5)# channel-group 30 mode active
Note
Run the no shutdown command to bring the above interface online.device(conf-if-eth-0/5)# no shutdown 2016/10/18-03:47:15, [NSM-1019], 528, M2 | Active | DCE, INFO, SLX, Interface Ethernet 0/5 is administratively up. 2016/10/18-03:47:15, [NSM-1001], 529, M2 | Active | DCE, INFO, SLX, Interface Ethernet 0/5 is online.
The following example adds a port 0/5 to the existing dynamic port channel interface 30 with the mode passive.
device# configure terminal device(config)# interface port-channel 30 device(conf-Port-channel-30)# interface ethernet 0/5 device(conf-if-eth-0/5)# channel-group 30 mode passive