Ccnpv7 Switch Lab3-2 Etherchannel Student
Ccnpv7 Switch Lab3-2 Etherchannel Student
Ccnpv7 Switch Lab3-2 Etherchannel Student
Objectives
Background
Four switches have just been installed. The distribution layer switches are Catalyst 3560 switches, and the access
layer switches are Catalyst 2960 switches. There are redundant uplinks between the access layer and distribution
layer. Usually, only one of these links could be used; otherwise, a bridging loop might occur. However, using only
one link utilizes only half of the available bandwidth. EtherChannel allows up to eight redundant links to be
bundled together into one logical link. In this lab, you configure Port Aggregation Protocol (PAgP), a Cisco
EtherChannel protocol, and Link Aggregation Control Protocol (LACP), an IEEE 802.3X (formerly IEEE 802.1ad)
open standard version of EtherChannel. LACP and PAgP are signalling protocols allowing two switches to
negotiate the use of selected physical ports as members of a single EtherChannel bundle. Throughout this lab, we
will be using the term EtherChannel to refer to a logical bundling of multiple physical links, and the term Portchannel to refer to a virtual interface that represents an EtherChannel bundle in the Cisco IOS configuration.
Note: This lab uses Cisco Catalyst 3560 and 2960 switches running Cisco IOS 15.0(2)SE6 IP Services and LAN
Base images, respectively. The 3560 and 2960 switches are configured with the SDM templates dual-ipv4-andipv6 routing and lanbase-routing, respectively. Depending on the switch model and Cisco IOS Software version,
the commands available and output produced might vary from what is shown in this lab. Catalyst 3650 switches
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 1 of 11
Required Resources
2 Cisco 2960 with the Cisco IOS Release 15.0(2)SE6 C2960-LANBASEK9-M or comparable
2 Cisco 3560v2 with the Cisco IOS Release 15.0(2)SE6 C3560-IPSERVICESK9-M or comparable
The instructions in this lab assume that the switches are running using the final configuration from Lab 2-1
"Static VLANs, Trunking, and VTP".
Encapsulation
802.1q
802.1q
802.1q
802.1q
802.1q
802.1q
Status
trunking
trunking
trunking
trunking
trunking
trunking
Native vlan
666
666
666
666
666
666
Note: When configuring EtherChannels, it can be helpful to shutdown the physical interfaces being grouped
on both devices before configuring them into channel groups. Otherwise, the EtherChannel Misconfig Guard
may place these interfaces into err-disabled state. The interfaces and port channel can be re-enabled after
the EtherChannel is configured.
On ALS1, bundle interfaces Fa0/11 and Fa0/12 under the Port-Channel 1 interface with the channel-group
1 mode desirable command. The mode desirable option indicates that you want the switch to actively
negotiate to form a PAgP link. The Port-Channel interface numbers are locally-significant only. On the 2960,
the number can be anything between 1 and 6, and they do not have to match end to end. If it is possible, use
the same number on both sides of a port-channel so that coordinating troubleshooting is less complicated. At
the very least, clearly document the configuration.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 2 of 11
ALS1(config-if-range)# no shutdown
<output omitted - interfaces logged as coming up>
ALS1(config-if-range)# exit
ALS1(config)#
<the following output is seen after ALS2 configuration is complete>
*Mar 1 00:14:01.570: %LINK-3-UPDOWN: Interface Port-channel1, changed state
to up
*Mar 1 00:14:02.576: %LINEPROTO-5-UPDOWN: Line protocol on Interface Portchannel1, changed state to up
After you configure an EtherChannel, a virtual Port-Channel interface is created automatically that represents
a logical link consisting of the bundled physical interfaces. The Port-channel interface will automatically inherit
the configuration of the first physical interface that was added to the EtherChannel. All configuration changes
applied to the Port-channel interface will then apply to all the physical ports bundled under this interface.
The configuration of the physical interfaces that are bundled into an EtherChannel must be consistent.
Otherwise, the bundle may never form or individual links in the bundle may be suspended. Once physical
interfaces are added to the EtherChannel bundle, the administrator should not make any configuration
changes directly to the physical interfaces. Any necessary adjustments should be made to the appropriate
Port-Channel interface.
Therefore, unless explicitly asked to do so in these labs, after physical ports have been bundled in an
EtherChannel, apply all further commands to the corresponding Port-channel interface only.
Before configuring the EtherChannel bundle on ALS2, issue the command show etherchannel summary
on ALS1 and notice the status of both the bundle and the individual interfaces:
ALS1# show etherchannel
Flags: D - down
I - stand-alone
H - Hot-standby
R - Layer3
U - in use
M
u
w
d
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
PAgP is preventing the bundle from forming because the other end is not speaking the PAgP protocol.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 3 of 11
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 4 of 11
Encapsulation
802.1q
802.1q
802.1q
802.1q
802.1q
Status
trunking
trunking
trunking
trunking
trunking
Native vlan
666
666
666
666
666
Verify that EtherChannel is working by issuing the show etherchannel summary command on both
switches. This command displays the type of EtherChannel, the ports utilized, and port states.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 5 of 11
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 6 of 11
To begin, configure an EtherChannel using LACP on ALS1 interfaces F0/9 and F0/10. Assign this
EtherChannel to Port-channel number 3.
ALS1(config)# interface range f0/9-10
ALS1(config-if-range)# shutdown
ALS1(config-if-range)# channel-group 3 mode active
Creating a port-channel interface Port-channel 3
ALS1(config-if-range)# no shut
ALS1(config-if-range)# exit
ALS1(config)#
Next configure an EtherChannel in "on" mode on DLS1 interfaces F0/11 and F0/12. Assign this EtherChannel
to Port-channel number 12.
DLS1(config)# interface range f0/11-12
DLS1(config-if-range)# shutdown
DLS1(config-if-range)# channel-group 12 mode on
Creating a port-channel interface Port-channel 12
DLS1(config-if-range)# no shut
DLS1(config-if-range)# exit
DLS1(config)#
Now go to DLS2 and configure an EtherChannel using PAgP on interfaces F0/10 and F0/11. Assign this
EtherChannel to Port-channel number 40.
DLS2(config)# interface range f0/10-11
DLS2(config-if-range)# shutdown
DLS2(config-if-range)# channel-group 40 mode desirable
Creating a port-channel interface Port-channel 40
DLS2(config-if-range)# no shut
DLS2(config-if-range)# exit
DLS2(config)#
Now issue the command show etherchannel summary on DLS2. Notice the difference in the individual
interface status'.
DLS2# show etherchannel
Flags: D - down
I - stand-alone
H - Hot-standby
R - Layer3
U - in use
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 7 of 11
Interface F0/10 is attempting to communicate with a distant interface that is configured for LACP. This results
in the interface being in a stand-alone state. Interface F0/11 is attempting to communicate with a distant
interface that is configured not to use a signaling protocol, so the interface is in a down state.
On DLS1, the configuration mismatch caused Etherchannel Misconfig Guard to put F0/11, F0/12, and Portchannel 12 into an error-disabled state. The messages that displayed at DLS1's console when this happened:
*Mar 1 05:43:12.639: %PM-4-ERR_DISABLE: channel-misconfig (STP) error detected on
Fa0/11, putting Fa0/11 in err-disable state
*Mar 1 05:43:12.664: %PM-4-ERR_DISABLE: channel-misconfig (STP) error detected on
Fa0/12, putting Fa0/12 in err-disable state
*Mar 1 05:43:12.698: %PM-4-ERR_DISABLE: channel-misconfig (STP) error detected on
Po12, putting Fa0/11 in err-disable state
*Mar 1 05:43:12.698: %PM-4-ERR_DISABLE: channel-misconfig (STP) error detected on
Po12, putting Fa0/12 in err-disable state
*Mar 1 05:43:12.698: %PM-4-ERR_DISABLE: channel-misconfig (STP) error detected on
Po12, putting Po12 in err-disable state
*Mar 1 05:43:13.654: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/11, changed state to down
*Mar 1 05:43:13.679: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/12, changed state to down
*Mar 1 05:43:13.688: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel12,
changed state to down
To fix all of this, remove Port-channel 40 on DLS2 and create EtherChannels with the proper configurations to
match the distant ends.
DLS2(config)# interface range f0/10-11
DLS2(config-if-range)# shut
DLS2(config-if-range)# no channel-group 40 mode desirable
DLS2(config-if-range)# exit
DLS2(config)# interface range f0/9-10
DLS2(config-if-range)# channel-group 3 mode active
Creating a port-channel interface Port-channel 3
DLS2(config-if-range)# no shut
DLS2(config-if-range)# exit
DLS2(config)# interface range f0/11-12
DLS2(config-if-range)# channel-group 12 mode on
Creating a port-channel interface Port-channel 12
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 8 of 11
DLS2(config-if-range)# no shut
DLS2(config-if-range)# exit
DLS2(config)# no interface port-channel 40
DLS2(config)# exit
summary
P - bundled in port-channel
s - suspended
(LACP only)
S - Layer2
f - failed to allocate aggregator
Challenge
The topology still has redundant links that you can aggregate. Experiment with the other port channel modes
using the question mark on the physical interface command channel-group number mode ?. Look at the
descriptions and implement the remaining EtherChannels in different ways.
You may find the desirable, auto, active, and passive keywords cumbersome and unintuitive to
associate with the particular signaling protocol. Try using the channel-protocol physical interface
command, which limits the keywords in the channel-group number mode command so that only the
keywords appropriate to the selected signaling protocol will be accepted.
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 9 of 11
Change the load balancing configuration on ALS1 and ALS2 to src-dst-ip, which is ideal for most
environments. Example from ALS2:
ALS2(config)# port-channel load-balance ?
dst-ip
Dst IP Addr
dst-mac
Dst Mac Addr
src-dst-ip
Src XOR Dst IP Addr
src-dst-mac Src XOR Dst Mac Addr
src-ip
Src IP Addr
src-mac
Src Mac Addr
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 10 of 11
2014 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 11 of 11