Adding a member port to a port channel

Follow this procedure to add a port to a specific port channel interface at the interface configuration level. If the port channel is not created, this task creates the port channel and also adds a port to the port channel.

Procedure

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
    device(config)# 
  2. Enter the interface port-channel command to add a port channel interface at the global configuration level.
    device(config)# interface port-channel 30
    device(conf-Port-channel-30)# 
  3. Configure the interface ethernet command to enable the interface.
    device(conf-Port-channel-30)# interface ethernet 0/5
    device(conf-if-eth-0/5)#
    
  4. Add a port to the port channel interface as static.
    device(conf-if-eth-0/5)# channel-group 30 mode on
    
  5. Add a port to the port channel interface as a dynamic (using LACP), active or passive mode.
    device(conf-if-eth-0/5)# channel-group 30 mode active
    
    device(conf-if-eth-0/5)# channel-group 30 mode passive
    

Example

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

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