SlideShare a Scribd company logo
1 of 9
Download to read offline
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
1
- EtherChannel -
Port Aggregation
A network will often span across multiple switches. Trunk ports are usually
used to connect switches together.
There are two issues with using only a single physical port for the trunk
connection:
• The port represents a single point of failure. If the port goes down,
the trunk connection is lost.
• The port represents a traffic bottleneck. All other ports on the switch
will use that one port to communicate across the trunk connection.
Thus, the obvious benefits of adding redundancy to the trunk connection are
fault tolerance and increased bandwidth, via load balancing.
However, simply trunking two or more ports between the switches will not
work, as this creates a switching loop. One of two things will occur:
• Spanning Tree Protocol (STP) will disable one or more ports to
eliminate the loop.
• If STP is disabled, the switching loop will result in an almost
instantaneous broadcast storm, crippling the network.
Port aggregation allows multiple physical ports to be bundled together to
form a single logical port. The switch and STP will treat the bundled ports as
a single interface, eliminating the possibility of a switching loop.
Cisco’s implementation of port aggregation is called EtherChannel.
EtherChannel supports Fast, Gigabit, and 10 Gigabit Ethernet ports.
A maximum of 8 active ports are supported in a single EtherChannel. If the
ports are operating in full duplex, the maximum theoretical bandwidth
supported is as follows:
• Fast Ethernet – 1600 Mbps
• Gigabit Ethernet – 16 Gbps
• 10 Gigabit Ethernet – 160 Gbps
The maximum number of supported EtherChannels on a single switch is
platform-dependent, though most support up to 64 or 128 EtherChannels.
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
2
EtherChannel Requirements
The previous section described the benefits of port aggregation for a trunk
connection. However, EtherChannels can be formed with either access or
trunk ports. EtherChannels are also supported on Layer-3 interfaces.
Implementing an EtherChannel for access ports provides increased
bandwidth and redundancy to a host device, such as a server. However, the
host device must support a port aggregation protocol, such as LACP. Port
aggregation protocols are covered in great detail later in this guide.
Similarly, implementing EtherChannel for trunk connections provides
increased bandwidth and redundancy to other switches.
If a port in an EtherChannel bundle fails, traffic will be redistributed across
the remaining ports in the bundle. This happens nearly instantaneously.
For an EtherChannel to become active, all ports in the bundle must be
configured identically, regardless if the EtherChannel is being used with
access or trunk ports. Port settings that must be identical include the
following:
• Speed settings
• Duplex settings
• STP settings
• VLAN membership (for access ports)
• Native VLAN (for trunk ports)
• Allowed VLANs (for trunk ports)
• Trunking encapsulation protocol (for trunk ports)
On trunk connections, the above settings must be configured identically
across all participating ports on both switches.
Historically, port-security has not been supported on an EtherChannel.
Newer platforms may provide support as long as port-security is enabled on
both the physical interfaces and the EtherChannel itself.
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
3
EtherChannel Load-Balancing
Traffic sent across an EtherChannel is not evenly distributed across all ports
in the bundle. Instead, EtherChannel utilizes a load-balancing algorithm to
determine the port to send the traffic out, based on one of several criteria:
• Source IP address - src-ip
• Destination IP address - dst-ip
• Source and destination IP address - src-dst-ip
• Source MAC address - src-mac
• Destination MAC address - dst-mac
• Source and Destination MAC address - src-dst-mac
• Source TCP/UDP port number - src-port
• Destination TCP/UDP port number - dst-port
• Source and destination port number - src-dst-port
Using a deterministic algorithm prevents perfect load-balancing. However, a
particular traffic flow is forced to always use the same port in the bundle,
preventing out-of-order delivery.
The default load-balancing method for a Layer-2 EtherChannel is either src-
mac or src-dst-mac, depending on the platform. The default method for a
Layer-3 EtherChannel is src-dst-ip.
The load-balancing method must be configured globally on the switch:
Switch(config)# port-channel load-balance src-dst-mac
To display the currently configured load-balancing method:
Switch# show etherchannel load-balance
EtherChannel Load-balancing Configuration:
src-dst-mac
To view the load on each port in an EtherChannel (output abbreviated):
Switch# show etherchannel 1 port-channel
Index Load Port EC state
------+------+--------+------------
0 55 Gi2/23 active
1 3A Gi2/24 active
The load is rather cryptically represented in a hexadecimal value.
(Reference: http://www.cisco.com/c/en/us/support/docs/lan-switching/etherchannel/12023-4.html)
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
4
EtherChannel Load-Balancing Example
Consider the following example, where ports gi2/23 and gi2/24 on both
switches are members of an EtherChannel:
Assume that the load-balancing method is src-ip. The first port in the
EtherChannel will become Link0; the second will become Link1.
The two links in the EtherChannel can be represented in one binary bit. The
load-balancing algorithm will create an index that associates Link0 with a
binary bit of 0, and Link1 with a bit of 1.
As traffic passes through the EtherChannel, the algorithm will convert the
source IP addresses into a binary hash, to compare against the index. For
example, consider the following IP addresses and their binary equivalents:
10.1.1.2 00001010.00000001.00000001.00000010
10.1.1.3 00001010.00000001.00000001.00000011
Because there are only two ports in the EtherChannel, only one bit needs to
be considered in the IP address – the last bit. The first address ends with a 0
bit, and thus would be sent out Link0. The second address ends with a 1 bit,
and thus would be sent down Link1. Simple, right?
An EtherChannel that contained four ports would require a 2-bit index,
requiring that the last two bits of the IP address be considered:
Link0 00
Link1 01
Link2 10
Link3 11
Best practice dictates that EtherChannels should contain an even number of
ports, to promote uniform load-balancing. An EtherChannel can support an
odd number of ports; however, this may result in one of the ports being
severely overburdened due to uneven load-balancing.
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
5
EtherChannel Load-Balancing Example (continued)
Consider again the following example:
This time, assume that the load-balancing method is src-dst-ip. Again, the
first port in the EtherChannel will become Link0; the second will become
Link1.
Both the source and destination IP must be considered when choosing a link.
This requires performing an exclusive OR (XOR) operation. In an XOR
operation, if the two values being compared are equal, the result is 0. If the
two values are not equal, the result is 1.
The following illustrates all possible results with a 1-bit index:
Source 0 1 0 1
Destination 0 0 1 1
Result 0 1 1 0
Consider the following source and destination IP address pair:
Source 192.168.1.10 11000000.10101000.00000001.00001010
Destination 192.168.2.25 11000000.10101000.00000010.00011001
The XOR result of the above address pair would be 1. Thus, the traffic
would be sent out Link1.
The following illustrates all possible results with a 2-bit index, representing
four ports:
Source 00 00 00 00 01 01 01 01 10 10 10 10 11 11 11 11
Destination 00 01 10 11 00 01 10 11 00 01 10 11 00 01 10 11
Result 00 01 10 11 01 00 11 10 10 11 00 01 11 10 01 00
There are four possible results (00, 01, 10, 11), corresponding to the four
ports in the EtherChannel.
Regardless of the load-balancing method used, STP will always send its
packets through the first operational port in an EtherChannel bundle.
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
6
EtherChannel – Manual Configuration
There are two methods of configuring an EtherChannel:
• Manually
• Dynamically, using an aggregation protocol
To manually configure two ports to join an EtherChannel:
Switch(config)# interface range gi2/23 - 24
Switch(config-if)# channel-group 1 mode on
The remote switch must also have the EtherChannel manually configured as
on. Remember that speed, duplex, VLAN, and STP configuration must be
configured identically across all participating ports on both switches.
The channel-group number identifies the EtherChannel on the local switch.
This number does not need to match on both switches, though for
documentation purposes it should.
Adding switch ports to a channel-group creates a logical port-channel
interface. This interface can be configured by referencing the channel-
group number:
Switch(config)# interface port-channel 1
Switch(config-if)#
Changes made to the logical port-channel interface are applied to all
physical switch ports in the channel-group:
Switch(config)# interface port-channel 1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan 50-100
To configure a port-channel as a Layer-3 interface:
Switch(config)# interface port-channel 1
Switch(config-if)# no switchport
Switch(config-if)# ip address 192.168.10.1 255.255.255.0
By default, a port-channel interface is administratively shutdown. To bring
the port-channel online:
Switch(config)# interface port-channel 1
Switch(config-if)# no shut
Physical port properties, such as speed and duplex, must be configured on
the physical interface, and not on the port-channel interface.
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
7
EtherChannel – Dynamic Configuration
Cisco switches support two dynamic aggregation protocols:
• PAgP (Port Aggregation Protocol) – Cisco proprietary aggregating
protocol.
• LACP (Link Aggregation Control Protocol) – IEEE standardized
aggregation protocol, originally defined in 802.3ad.
Both PAgP and LACP exchange negotiation packets to form the
EtherChannel. When an EtherChannel is configured manually, no
negotiation packets are exchanged.
Thus, an EtherChannel will never form if one switch manually configured
the EtherChannel, and the other switch is using a dynamic aggregation
protocol.
PAgP and LACP are not compatible – both sides of an EtherChannel must
use the same aggregation protocol.
EthernChannel - PAgP
PAgP is a Cisco-proprietary aggregation protocol, and supports two modes:
• Desirable – actively attempts to form a channel
• Auto – waits for the remote switch to initiate the channel
A PAgP channel will form in the following configurations:
• desirable desirable
• desirable auto
A channel will not form if both sides are set to auto. Also, PAgP will not
form a channel if the remote side is running LACP, or manually configured.
To create an EtherChannel using PAgP negotiation:
Switch(config)# interface range gi2/23 – 24
Switch(config-if)# channel-protocol pagp
Switch(config-if)# channel-group 1 mode desirable
Switch(config-if)# channel-group 1 mode auto
PAgP requires that speed, duplex, VLAN, and STP configuration be
configured identically across all participating ports.
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
8
EtherChannel - LACP
LACP is an IEEE standard aggregation protocol, and supports two modes:
• Active – actively attempts to form a channel
• Passive – waits for the remote switch to initiate the channel
An LACP channel will form in the following configurations:
• active active
• active passive
A channel will not form if both sides are set to passive. Also, LACP will
not form a channel if the remote side is running PAgP, or manually
configured.
To create an EtherChannel using LACP negotiation:
Switch(config)# interface range gi2/23 – 24
Switch(config-if)# channel-protocol lacp
Switch(config-if)# channel-group 1 mode active
Switch(config-if)# channel-group 1 mode passive
LACP requires that speed, duplex, VLAN, and STP configuration be
configured identically across all participating ports.
Recall that a maximum of 8 active ports are supported in a single
EtherChannel. LACP supports adding an additional 8 ports into the bundle
in a standby state, to replace an active port if it goes down.
LACP assigns a numerical port-priority to each port, to determine which
ports become active in the EtherChannel. By default, the priority is set to
32768, and a lower priority is preferred. If there is a tie in port-priority, the
lowest port number is preferred.
To change the LACP port-priority to something other than default:
Switch(config)# interface range gi2/23 – 24
Switch(config-if)# lacp port-priority 100
LACP also assigns a system-priority to each switch, dictated which switch
becomes the decision-maker if there is a conflict about active ports. The
default system-priority is 32768, and a lower priority is again preferred. If
there is a tie in system-priority, the lowest switch MAC address is preferred.
To globally change the system-priority on a switch:
Switch(config)# lacp system-priority 500
EtherChannel v1.11 – Aaron Balchunas
* * *
All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com),
unless otherwise noted. All other material copyright © of their respective owners.
This material may be copied and used freely, but may not be altered or sold without the expressed written
consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com.
9
Troubleshooting EtherChannel
To view status information on all configured EtherChannels:
Switch# show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
U - port-channel in use
Group Port-channel Ports
---------- --------------- ---------------
1 Po1(SU) Gi2/23(P) Gi2/24(P)
Note that both ports have a status of P, which indicates that they are up and
active in the EtherChannel.
On Cisco Nexus switches, the syntax for this command is slightly different:
NexusSwitch# show port-channel summary

More Related Content

What's hot

EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)NetProtocol Xpert
 
214270 configure-aci-multi-site-deployment
214270 configure-aci-multi-site-deployment214270 configure-aci-multi-site-deployment
214270 configure-aci-multi-site-deploymentcoolboyasif
 
Como definir un esquema de direcciones IPv6
Como definir un esquema de direcciones IPv6Como definir un esquema de direcciones IPv6
Como definir un esquema de direcciones IPv6Edgardo Scrimaglia
 
Conceptos ipv6, direccionamiento
Conceptos ipv6, direccionamientoConceptos ipv6, direccionamiento
Conceptos ipv6, direccionamientoEdgardo Scrimaglia
 
Implementing Internet and MPLS BGP
Implementing Internet and MPLS BGPImplementing Internet and MPLS BGP
Implementing Internet and MPLS BGPPrivate
 
At8000 s configurando trunking
At8000 s configurando trunkingAt8000 s configurando trunking
At8000 s configurando trunkingNetPlus
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2Febrian ‎
 
Port aggregation
Port aggregationPort aggregation
Port aggregationAnuj Kumar
 
MPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf TrafficMPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf Trafficalco
 
VPC PPT @NETWORKERSHOME
VPC PPT @NETWORKERSHOMEVPC PPT @NETWORKERSHOME
VPC PPT @NETWORKERSHOMEnetworkershome
 
Fabric Path PPT by NETWORKERS HOME
Fabric Path PPT by NETWORKERS HOMEFabric Path PPT by NETWORKERS HOME
Fabric Path PPT by NETWORKERS HOMEnetworkershome
 
L3 Vpn Diagnosing Common Problems
L3 Vpn Diagnosing Common ProblemsL3 Vpn Diagnosing Common Problems
L3 Vpn Diagnosing Common ProblemsAmir Malik
 
NPV and NPIV feature in MDS switches on SAN network
NPV and NPIV feature in MDS switches on SAN networkNPV and NPIV feature in MDS switches on SAN network
NPV and NPIV feature in MDS switches on SAN networkTanay Chakraborty
 
Ucs security part2
Ucs security part2Ucs security part2
Ucs security part2Krunal Shah
 

What's hot (20)

CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
 
214270 configure-aci-multi-site-deployment
214270 configure-aci-multi-site-deployment214270 configure-aci-multi-site-deployment
214270 configure-aci-multi-site-deployment
 
Como definir un esquema de direcciones IPv6
Como definir un esquema de direcciones IPv6Como definir un esquema de direcciones IPv6
Como definir un esquema de direcciones IPv6
 
Conceptos ipv6, direccionamiento
Conceptos ipv6, direccionamientoConceptos ipv6, direccionamiento
Conceptos ipv6, direccionamiento
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
Implementing Internet and MPLS BGP
Implementing Internet and MPLS BGPImplementing Internet and MPLS BGP
Implementing Internet and MPLS BGP
 
Inter as vpn option c
Inter as vpn option c Inter as vpn option c
Inter as vpn option c
 
At8000 s configurando trunking
At8000 s configurando trunkingAt8000 s configurando trunking
At8000 s configurando trunking
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2
 
Port aggregation
Port aggregationPort aggregation
Port aggregation
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
MPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf TrafficMPLS VPN Per Vrf Traffic
MPLS VPN Per Vrf Traffic
 
vPC_Final
vPC_FinalvPC_Final
vPC_Final
 
VPC PPT @NETWORKERSHOME
VPC PPT @NETWORKERSHOMEVPC PPT @NETWORKERSHOME
VPC PPT @NETWORKERSHOME
 
Vpc notes
Vpc notesVpc notes
Vpc notes
 
Fabric Path PPT by NETWORKERS HOME
Fabric Path PPT by NETWORKERS HOMEFabric Path PPT by NETWORKERS HOME
Fabric Path PPT by NETWORKERS HOME
 
L3 Vpn Diagnosing Common Problems
L3 Vpn Diagnosing Common ProblemsL3 Vpn Diagnosing Common Problems
L3 Vpn Diagnosing Common Problems
 
NPV and NPIV feature in MDS switches on SAN network
NPV and NPIV feature in MDS switches on SAN networkNPV and NPIV feature in MDS switches on SAN network
NPV and NPIV feature in MDS switches on SAN network
 
Ucs security part2
Ucs security part2Ucs security part2
Ucs security part2
 

Viewers also liked

Civilian Resume General
Civilian Resume GeneralCivilian Resume General
Civilian Resume GeneralJorge Castillo
 
Listing Hunt - Tracking and Snaring Real Estate Listings
Listing Hunt - Tracking and Snaring Real Estate ListingsListing Hunt - Tracking and Snaring Real Estate Listings
Listing Hunt - Tracking and Snaring Real Estate ListingsMatthew Rathbun
 
Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...
Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...
Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...SimoneHelenDrumond
 
Sean Higgins Resume
Sean Higgins ResumeSean Higgins Resume
Sean Higgins ResumeSean Higgins
 
Tara Howard Professional Resume
Tara Howard Professional ResumeTara Howard Professional Resume
Tara Howard Professional ResumeTara Howard
 
Google 4 Real Estate - 1 Hour Session
Google 4 Real Estate - 1 Hour SessionGoogle 4 Real Estate - 1 Hour Session
Google 4 Real Estate - 1 Hour SessionMatthew Rathbun
 
Qualitative, Quantitative (PowerPoint)
Qualitative, Quantitative (PowerPoint)Qualitative, Quantitative (PowerPoint)
Qualitative, Quantitative (PowerPoint)Yaryalitsa
 
Psychological Insights Into the Brain That Will Improve Your Marketing
Psychological Insights Into the Brain That Will Improve Your MarketingPsychological Insights Into the Brain That Will Improve Your Marketing
Psychological Insights Into the Brain That Will Improve Your MarketingSelf-employed
 
Team Building Practices and Training Programs
Team Building Practices and Training Programs Team Building Practices and Training Programs
Team Building Practices and Training Programs Self-employed
 
Pequeños sistemas de riego
Pequeños sistemas de riegoPequeños sistemas de riego
Pequeños sistemas de riegoJose Jara
 

Viewers also liked (13)

Joselene Jocurin Resume
Joselene Jocurin  ResumeJoselene Jocurin  Resume
Joselene Jocurin Resume
 
Civilian Resume General
Civilian Resume GeneralCivilian Resume General
Civilian Resume General
 
Listing Hunt - Tracking and Snaring Real Estate Listings
Listing Hunt - Tracking and Snaring Real Estate ListingsListing Hunt - Tracking and Snaring Real Estate Listings
Listing Hunt - Tracking and Snaring Real Estate Listings
 
Cogumelo 2
Cogumelo 2Cogumelo 2
Cogumelo 2
 
Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...
Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...
Modalidade 1datahora 02_11_2014_21_41_55_idinscrito_3828_95528a1992a0f8253a0e...
 
Sean Higgins Resume
Sean Higgins ResumeSean Higgins Resume
Sean Higgins Resume
 
Tara Howard Professional Resume
Tara Howard Professional ResumeTara Howard Professional Resume
Tara Howard Professional Resume
 
Real estate Financing
Real estate FinancingReal estate Financing
Real estate Financing
 
Google 4 Real Estate - 1 Hour Session
Google 4 Real Estate - 1 Hour SessionGoogle 4 Real Estate - 1 Hour Session
Google 4 Real Estate - 1 Hour Session
 
Qualitative, Quantitative (PowerPoint)
Qualitative, Quantitative (PowerPoint)Qualitative, Quantitative (PowerPoint)
Qualitative, Quantitative (PowerPoint)
 
Psychological Insights Into the Brain That Will Improve Your Marketing
Psychological Insights Into the Brain That Will Improve Your MarketingPsychological Insights Into the Brain That Will Improve Your Marketing
Psychological Insights Into the Brain That Will Improve Your Marketing
 
Team Building Practices and Training Programs
Team Building Practices and Training Programs Team Building Practices and Training Programs
Team Building Practices and Training Programs
 
Pequeños sistemas de riego
Pequeños sistemas de riegoPequeños sistemas de riego
Pequeños sistemas de riego
 

Similar to EtherChannel Port Aggregation

Basic interview question for Ether Channel.
Basic  interview question for Ether Channel.Basic  interview question for Ether Channel.
Basic interview question for Ether Channel.INFitunes
 
Port aggregation
Port aggregationPort aggregation
Port aggregationAnuj Kumar
 
Chapter 3 link aggregation
Chapter 3   link aggregationChapter 3   link aggregation
Chapter 3 link aggregationJosue Wuezo
 
SRWE_Module_6-EtherChannel.pptx
SRWE_Module_6-EtherChannel.pptxSRWE_Module_6-EtherChannel.pptx
SRWE_Module_6-EtherChannel.pptxSaqibAli696638
 
ether channel_hsrp
ether channel_hsrpether channel_hsrp
ether channel_hsrpnewbie2019
 
Lecture3_LinkAggregation LinkAggregation
Lecture3_LinkAggregation LinkAggregationLecture3_LinkAggregation LinkAggregation
Lecture3_LinkAggregation LinkAggregationmercyzyada1999
 
Networking
NetworkingNetworking
Networkingra na
 
hajer
hajerhajer
hajerra na
 
Ether Channel-Switching Technology1.pptx
Ether Channel-Switching Technology1.pptxEther Channel-Switching Technology1.pptx
Ether Channel-Switching Technology1.pptxAbhradipChatterjee2
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhVijayKaran7
 
Minilink TN Ethernet Config.pdf
Minilink TN Ethernet Config.pdfMinilink TN Ethernet Config.pdf
Minilink TN Ethernet Config.pdfFahruddinThaha
 
CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4Chaing Ravuth
 
newtwork opnet app project
newtwork opnet app project newtwork opnet app project
newtwork opnet app project Mohamed Elagnaf
 
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...Lary Onyeka
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 4
CCNA (R & S) Module 04 - Scaling Networks - Chapter 4CCNA (R & S) Module 04 - Scaling Networks - Chapter 4
CCNA (R & S) Module 04 - Scaling Networks - Chapter 4Waqas Ahmed Nawaz
 
A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...IJERD Editor
 
Basics of OSI and TCP IP Layers
Basics of OSI and TCP IP LayersBasics of OSI and TCP IP Layers
Basics of OSI and TCP IP Layershafsabanu
 

Similar to EtherChannel Port Aggregation (20)

Basic interview question for Ether Channel.
Basic  interview question for Ether Channel.Basic  interview question for Ether Channel.
Basic interview question for Ether Channel.
 
Port aggregation
Port aggregationPort aggregation
Port aggregation
 
Chapter 3 link aggregation
Chapter 3   link aggregationChapter 3   link aggregation
Chapter 3 link aggregation
 
SRWE_Module_6-EtherChannel.pptx
SRWE_Module_6-EtherChannel.pptxSRWE_Module_6-EtherChannel.pptx
SRWE_Module_6-EtherChannel.pptx
 
ether channel_hsrp
ether channel_hsrpether channel_hsrp
ether channel_hsrp
 
Lecture3_LinkAggregation LinkAggregation
Lecture3_LinkAggregation LinkAggregationLecture3_LinkAggregation LinkAggregation
Lecture3_LinkAggregation LinkAggregation
 
Networking
NetworkingNetworking
Networking
 
hajer
hajerhajer
hajer
 
Ether Channel-Switching Technology1.pptx
Ether Channel-Switching Technology1.pptxEther Channel-Switching Technology1.pptx
Ether Channel-Switching Technology1.pptx
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
 
Minilink TN Ethernet Config.pdf
Minilink TN Ethernet Config.pdfMinilink TN Ethernet Config.pdf
Minilink TN Ethernet Config.pdf
 
CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4CCNA3 Verson6 Chapter4
CCNA3 Verson6 Chapter4
 
newtwork opnet app project
newtwork opnet app project newtwork opnet app project
newtwork opnet app project
 
3 2
3 23 2
3 2
 
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
 
CCNA 1 Chapter 5 v5.0 2014
CCNA 1 Chapter 5 v5.0 2014CCNA 1 Chapter 5 v5.0 2014
CCNA 1 Chapter 5 v5.0 2014
 
CCNA (R & S) Module 04 - Scaling Networks - Chapter 4
CCNA (R & S) Module 04 - Scaling Networks - Chapter 4CCNA (R & S) Module 04 - Scaling Networks - Chapter 4
CCNA (R & S) Module 04 - Scaling Networks - Chapter 4
 
A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...A Survey of Different Approaches for Differentiating Bit Error and Congestion...
A Survey of Different Approaches for Differentiating Bit Error and Congestion...
 
Basics of OSI and TCP IP Layers
Basics of OSI and TCP IP LayersBasics of OSI and TCP IP Layers
Basics of OSI and TCP IP Layers
 
Exam viewer2
Exam viewer2Exam viewer2
Exam viewer2
 

Recently uploaded

Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 

Recently uploaded (20)

Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 

EtherChannel Port Aggregation

  • 1. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 1 - EtherChannel - Port Aggregation A network will often span across multiple switches. Trunk ports are usually used to connect switches together. There are two issues with using only a single physical port for the trunk connection: • The port represents a single point of failure. If the port goes down, the trunk connection is lost. • The port represents a traffic bottleneck. All other ports on the switch will use that one port to communicate across the trunk connection. Thus, the obvious benefits of adding redundancy to the trunk connection are fault tolerance and increased bandwidth, via load balancing. However, simply trunking two or more ports between the switches will not work, as this creates a switching loop. One of two things will occur: • Spanning Tree Protocol (STP) will disable one or more ports to eliminate the loop. • If STP is disabled, the switching loop will result in an almost instantaneous broadcast storm, crippling the network. Port aggregation allows multiple physical ports to be bundled together to form a single logical port. The switch and STP will treat the bundled ports as a single interface, eliminating the possibility of a switching loop. Cisco’s implementation of port aggregation is called EtherChannel. EtherChannel supports Fast, Gigabit, and 10 Gigabit Ethernet ports. A maximum of 8 active ports are supported in a single EtherChannel. If the ports are operating in full duplex, the maximum theoretical bandwidth supported is as follows: • Fast Ethernet – 1600 Mbps • Gigabit Ethernet – 16 Gbps • 10 Gigabit Ethernet – 160 Gbps The maximum number of supported EtherChannels on a single switch is platform-dependent, though most support up to 64 or 128 EtherChannels.
  • 2. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 2 EtherChannel Requirements The previous section described the benefits of port aggregation for a trunk connection. However, EtherChannels can be formed with either access or trunk ports. EtherChannels are also supported on Layer-3 interfaces. Implementing an EtherChannel for access ports provides increased bandwidth and redundancy to a host device, such as a server. However, the host device must support a port aggregation protocol, such as LACP. Port aggregation protocols are covered in great detail later in this guide. Similarly, implementing EtherChannel for trunk connections provides increased bandwidth and redundancy to other switches. If a port in an EtherChannel bundle fails, traffic will be redistributed across the remaining ports in the bundle. This happens nearly instantaneously. For an EtherChannel to become active, all ports in the bundle must be configured identically, regardless if the EtherChannel is being used with access or trunk ports. Port settings that must be identical include the following: • Speed settings • Duplex settings • STP settings • VLAN membership (for access ports) • Native VLAN (for trunk ports) • Allowed VLANs (for trunk ports) • Trunking encapsulation protocol (for trunk ports) On trunk connections, the above settings must be configured identically across all participating ports on both switches. Historically, port-security has not been supported on an EtherChannel. Newer platforms may provide support as long as port-security is enabled on both the physical interfaces and the EtherChannel itself.
  • 3. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 3 EtherChannel Load-Balancing Traffic sent across an EtherChannel is not evenly distributed across all ports in the bundle. Instead, EtherChannel utilizes a load-balancing algorithm to determine the port to send the traffic out, based on one of several criteria: • Source IP address - src-ip • Destination IP address - dst-ip • Source and destination IP address - src-dst-ip • Source MAC address - src-mac • Destination MAC address - dst-mac • Source and Destination MAC address - src-dst-mac • Source TCP/UDP port number - src-port • Destination TCP/UDP port number - dst-port • Source and destination port number - src-dst-port Using a deterministic algorithm prevents perfect load-balancing. However, a particular traffic flow is forced to always use the same port in the bundle, preventing out-of-order delivery. The default load-balancing method for a Layer-2 EtherChannel is either src- mac or src-dst-mac, depending on the platform. The default method for a Layer-3 EtherChannel is src-dst-ip. The load-balancing method must be configured globally on the switch: Switch(config)# port-channel load-balance src-dst-mac To display the currently configured load-balancing method: Switch# show etherchannel load-balance EtherChannel Load-balancing Configuration: src-dst-mac To view the load on each port in an EtherChannel (output abbreviated): Switch# show etherchannel 1 port-channel Index Load Port EC state ------+------+--------+------------ 0 55 Gi2/23 active 1 3A Gi2/24 active The load is rather cryptically represented in a hexadecimal value. (Reference: http://www.cisco.com/c/en/us/support/docs/lan-switching/etherchannel/12023-4.html)
  • 4. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 4 EtherChannel Load-Balancing Example Consider the following example, where ports gi2/23 and gi2/24 on both switches are members of an EtherChannel: Assume that the load-balancing method is src-ip. The first port in the EtherChannel will become Link0; the second will become Link1. The two links in the EtherChannel can be represented in one binary bit. The load-balancing algorithm will create an index that associates Link0 with a binary bit of 0, and Link1 with a bit of 1. As traffic passes through the EtherChannel, the algorithm will convert the source IP addresses into a binary hash, to compare against the index. For example, consider the following IP addresses and their binary equivalents: 10.1.1.2 00001010.00000001.00000001.00000010 10.1.1.3 00001010.00000001.00000001.00000011 Because there are only two ports in the EtherChannel, only one bit needs to be considered in the IP address – the last bit. The first address ends with a 0 bit, and thus would be sent out Link0. The second address ends with a 1 bit, and thus would be sent down Link1. Simple, right? An EtherChannel that contained four ports would require a 2-bit index, requiring that the last two bits of the IP address be considered: Link0 00 Link1 01 Link2 10 Link3 11 Best practice dictates that EtherChannels should contain an even number of ports, to promote uniform load-balancing. An EtherChannel can support an odd number of ports; however, this may result in one of the ports being severely overburdened due to uneven load-balancing.
  • 5. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 5 EtherChannel Load-Balancing Example (continued) Consider again the following example: This time, assume that the load-balancing method is src-dst-ip. Again, the first port in the EtherChannel will become Link0; the second will become Link1. Both the source and destination IP must be considered when choosing a link. This requires performing an exclusive OR (XOR) operation. In an XOR operation, if the two values being compared are equal, the result is 0. If the two values are not equal, the result is 1. The following illustrates all possible results with a 1-bit index: Source 0 1 0 1 Destination 0 0 1 1 Result 0 1 1 0 Consider the following source and destination IP address pair: Source 192.168.1.10 11000000.10101000.00000001.00001010 Destination 192.168.2.25 11000000.10101000.00000010.00011001 The XOR result of the above address pair would be 1. Thus, the traffic would be sent out Link1. The following illustrates all possible results with a 2-bit index, representing four ports: Source 00 00 00 00 01 01 01 01 10 10 10 10 11 11 11 11 Destination 00 01 10 11 00 01 10 11 00 01 10 11 00 01 10 11 Result 00 01 10 11 01 00 11 10 10 11 00 01 11 10 01 00 There are four possible results (00, 01, 10, 11), corresponding to the four ports in the EtherChannel. Regardless of the load-balancing method used, STP will always send its packets through the first operational port in an EtherChannel bundle.
  • 6. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 6 EtherChannel – Manual Configuration There are two methods of configuring an EtherChannel: • Manually • Dynamically, using an aggregation protocol To manually configure two ports to join an EtherChannel: Switch(config)# interface range gi2/23 - 24 Switch(config-if)# channel-group 1 mode on The remote switch must also have the EtherChannel manually configured as on. Remember that speed, duplex, VLAN, and STP configuration must be configured identically across all participating ports on both switches. The channel-group number identifies the EtherChannel on the local switch. This number does not need to match on both switches, though for documentation purposes it should. Adding switch ports to a channel-group creates a logical port-channel interface. This interface can be configured by referencing the channel- group number: Switch(config)# interface port-channel 1 Switch(config-if)# Changes made to the logical port-channel interface are applied to all physical switch ports in the channel-group: Switch(config)# interface port-channel 1 Switch(config-if)# switchport mode trunk Switch(config-if)# switchport trunk allowed vlan 50-100 To configure a port-channel as a Layer-3 interface: Switch(config)# interface port-channel 1 Switch(config-if)# no switchport Switch(config-if)# ip address 192.168.10.1 255.255.255.0 By default, a port-channel interface is administratively shutdown. To bring the port-channel online: Switch(config)# interface port-channel 1 Switch(config-if)# no shut Physical port properties, such as speed and duplex, must be configured on the physical interface, and not on the port-channel interface.
  • 7. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 7 EtherChannel – Dynamic Configuration Cisco switches support two dynamic aggregation protocols: • PAgP (Port Aggregation Protocol) – Cisco proprietary aggregating protocol. • LACP (Link Aggregation Control Protocol) – IEEE standardized aggregation protocol, originally defined in 802.3ad. Both PAgP and LACP exchange negotiation packets to form the EtherChannel. When an EtherChannel is configured manually, no negotiation packets are exchanged. Thus, an EtherChannel will never form if one switch manually configured the EtherChannel, and the other switch is using a dynamic aggregation protocol. PAgP and LACP are not compatible – both sides of an EtherChannel must use the same aggregation protocol. EthernChannel - PAgP PAgP is a Cisco-proprietary aggregation protocol, and supports two modes: • Desirable – actively attempts to form a channel • Auto – waits for the remote switch to initiate the channel A PAgP channel will form in the following configurations: • desirable desirable • desirable auto A channel will not form if both sides are set to auto. Also, PAgP will not form a channel if the remote side is running LACP, or manually configured. To create an EtherChannel using PAgP negotiation: Switch(config)# interface range gi2/23 – 24 Switch(config-if)# channel-protocol pagp Switch(config-if)# channel-group 1 mode desirable Switch(config-if)# channel-group 1 mode auto PAgP requires that speed, duplex, VLAN, and STP configuration be configured identically across all participating ports.
  • 8. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 8 EtherChannel - LACP LACP is an IEEE standard aggregation protocol, and supports two modes: • Active – actively attempts to form a channel • Passive – waits for the remote switch to initiate the channel An LACP channel will form in the following configurations: • active active • active passive A channel will not form if both sides are set to passive. Also, LACP will not form a channel if the remote side is running PAgP, or manually configured. To create an EtherChannel using LACP negotiation: Switch(config)# interface range gi2/23 – 24 Switch(config-if)# channel-protocol lacp Switch(config-if)# channel-group 1 mode active Switch(config-if)# channel-group 1 mode passive LACP requires that speed, duplex, VLAN, and STP configuration be configured identically across all participating ports. Recall that a maximum of 8 active ports are supported in a single EtherChannel. LACP supports adding an additional 8 ports into the bundle in a standby state, to replace an active port if it goes down. LACP assigns a numerical port-priority to each port, to determine which ports become active in the EtherChannel. By default, the priority is set to 32768, and a lower priority is preferred. If there is a tie in port-priority, the lowest port number is preferred. To change the LACP port-priority to something other than default: Switch(config)# interface range gi2/23 – 24 Switch(config-if)# lacp port-priority 100 LACP also assigns a system-priority to each switch, dictated which switch becomes the decision-maker if there is a conflict about active ports. The default system-priority is 32768, and a lower priority is again preferred. If there is a tie in system-priority, the lowest switch MAC address is preferred. To globally change the system-priority on a switch: Switch(config)# lacp system-priority 500
  • 9. EtherChannel v1.11 – Aaron Balchunas * * * All original material copyright © 2014 by Aaron Balchunas (aaron@routeralley.com), unless otherwise noted. All other material copyright © of their respective owners. This material may be copied and used freely, but may not be altered or sold without the expressed written consent of the owner of the above copyright. Updated material may be found at http://www.routeralley.com. 9 Troubleshooting EtherChannel To view status information on all configured EtherChannels: Switch# show etherchannel summary Flags: D - down P - in port-channel I - stand-alone s - suspended R - Layer3 S - Layer2 U - port-channel in use Group Port-channel Ports ---------- --------------- --------------- 1 Po1(SU) Gi2/23(P) Gi2/24(P) Note that both ports have a status of P, which indicates that they are up and active in the EtherChannel. On Cisco Nexus switches, the syntax for this command is slightly different: NexusSwitch# show port-channel summary