Configuration Examples for EtherChannels The following sections provide various configuration examples for EtherChannels: Example: Configuring Layer 2 EtherChannels This example shows how to configure an EtherChannel on a single switch in the stack. It assigns two ports as static-access ports in VLAN 10 to channel 5 with the PAgP mode desirable :
Device# configure terminal Device(config)# interface range gigabitethernet2/0/1 -2 Device(config-if-range)# switchport mode access Device(config-if-range)# switchport access vlan 10 Device(config-if-range)# channel-group 5 mode desirable non-silent Device(config-if-range)# end This example shows how to configure an EtherChannel on a single switch in the stack. It assigns two ports as static-access ports in VLAN 10 to channel 5 with the LACP mode active :
Device# configure terminal Device(config)# interface range gigabitethernet2/0/1 -2 Device(config-if-range)# switchport mode access Device(config-if-range)# switchport access vlan 10 Device(config-if-range)# channel-group 5 mode active Device(config-if-range)# end This example shows how to configure a cross-stack EtherChannel. It uses LACP passive mode and assigns two ports on stack member 1 and one port on stack member 2 as static-access ports in VLAN 10 to channel 5:
Device# configure terminal Device(config)# interface range gigabitethernet2/0/4 -5 Device(config-if-range)# switchport mode access Device(config-if-range)# switchport access vlan 10 Device(config-if-range)# channel-group 5 mode passive Device(config-if-range)# exit Device(config)# interface gigabitethernet3/0/3 Device(config-if)# switchport mode access Device(config-if)# switchport access vlan 10 Device(config-if)# channel-group 5 mode passive Device(config-if)# exit PoE or LACP negotiation errors may occur if you configure two ports from switch to the access point (AP). This scenario can be avoided if the port channel configuration is on the switch side.
For more details, see the following example: Device(config)# interface Port-channel1 Device(config-if)# switchport access vlan 20 Device(config-if)# switchport mode access Device(config-if)# switchport nonegotiate Device(config-if)# no port-channel standalone-disable Device(config-if)# spanning-tree portfast If the port reports LACP errors on port flap, you should include the following command as well: no errdisable detect cause pagp-flap Note Configuring EtherChannels Configuration Examples for EtherChannels Configuring EtherChannels 31