A.K. Gautam                                            ciscobulls@gmail.com             CCNP SWITCH        PORTABLE STUDY ...
A.K. Gautam                                                                                                   ciscobulls@g...
A.K. Gautam                                                                                                       ciscobul...
A.K. Gautam                                                                                             ciscobulls@gmail.c...
A.K. Gautam                                                                                             ciscobulls@gmail.c...
A.K. Gautam                                                                                                 ciscobulls@gma...
A.K. Gautam                                                                                                 ciscobulls@gma...
A.K. Gautam                                        ciscobulls@gmail.comSwitch#show etherchannel load-balanceSwitch#show eh...
Upcoming SlideShare
Loading in...5
×

Port aggregation

274

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
274
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Port aggregation

  1. 1. A.K. Gautam ciscobulls@gmail.com CCNP SWITCH PORTABLE STUDY GUIDE & PRACTICE WORK BOOKANUJ KUMAR email:- ciscobulls@gmail.com anuj_dev007@yahoo.com networkbulls.com
  2. 2. A.K. Gautam ciscobulls@gmail.com PORT AGGREGATION/ETHERCHANNELSpanning tree protocol only allows a single link between switch to switch because it prevents bridge loop.Cisco Ether channel technology allows for the scaling of the link bandwidth by aggregating or bundling parallel links.In Ether channel treats multiple line as a single link, logical link. The ether channel allows for two or eight links.The Cisco catalyst family of switches supports two types of link aggregation.PAgP (port aggregation protocol): - It is cisco proprietary protocol. It is default protocol, when we port channelcreated.LACP (link aggregation control protocol): - It is industy standard protocol. Its standard IEEE 802.3ad based protocol.Etherchannel provide redundancy.If one link fails traffic is automatically moved to another link.Conditions:- 1. Both side same media type and speed. 2. Same duplex. 3. Same Vlan(If access) 4. Same trunking encapsulation and mode(if trunk) 5. Same native vlan.Note: - Load is not balanced equally across links.Etherchannel uses a hashing algorithm. Two inputs are used (Source IP address and Destination IP address)How this work.We will focus on the 2, 4, or 8 link because it is easier to understand for you.A 2 link Etherchannel bundle require a 1 bit index using an XOR.If the index is 0, link 0 is selected.If the index is 1, link 1 is selected.A 4 link Etherchannel bundle requires a 2 bit index using an XOR.4 possible links: 00, 01, 10, 11Let’s See00 = link 001 = link 110 = link 211 = link 3An 8 link etherchannel bundle requires a 3 bit index using an XOR.8 possible links: 000, 001, 010, 011, 100, 101, 110, 111.Same as:-000 = link 0001 = link 1010 = link 2011 = link 3100 = link 4101 = link 5110 = link 6111 = link 7Note: - XOR (Exclusive OR), 0 value = false, 1 value = True. If boot bits have same value (both 0, both 1), the XOR willresult in a 0. Otherwise, if these value are different (one is a 0 and other is a 1), the result will be 1.
  3. 3. A.K. Gautam ciscobulls@gmail.com Example: 2 Link EtherChannel.Packet sent from 172.16.1.1 to 10.10.10.16. The chosen hash uses Source IP (172.16.1.1) and Destination IP(10.10.10.16) address.172.16.1.1 => 00000001 (Source IP address)10.10.10.16 => 00001000 (Destination IP address) In our example we have 2 links in the EtherChannel (1 bit index):  The XOR is performed only one rightmost(right side) bit 1 XOR 0  1 XOR 0 = 1  Link 1 is usedNote: - XOR of the two bits result in 0, then link 0 is used. If XOR of the two bits result in 1, then link 1 is used.Example: 4 Link EtherChannel. Link 0 Link 3Packet sent from 172.16.1.1 to 10.10.10.46. The chosen hash uses Source IP (172.16.1.1) and Destination IP(10.10.10.46) address.172.16.1.1 => 00000001 (Source IP address)10.10.10.46 => 00001110 (Destination IP address) In our example we have 4 links in the EtherChannel (2 bit index):The XOR is performed only 2 rightmost (right side) bit 01 XOR 00Each bit is computed separately01 XOR 10 = 111 XOR 0 = 1
  4. 4. A.K. Gautam ciscobulls@gmail.com0 XOR 1 = 1According to link0 XOR 0 = 0 link = 00 XOR 1 = 1 link = 11 XOR 0 = 1 link = 21 XOR 1 = 0 link = 3 Link 0Example: 4 Link EtherChannel Link 7Packet sent from 172.16.1.1 to 10.10.10.46. The chosen hash uses Source IP (172.16.1.1) and Destination IP(10.10.10.46) address.172.16.1.1 => 00000001 (Source IP address)10.10.10.46 => 00001110 (Destination IP address)If there are 8 links in the EtherChannel (3 bit index):The XOR is performed only on the 3 rightmost bits 001 XOR 110Each bit is computed separately001 XOR 110 = 1111 XOR 0 = 10 XOR 1 = 10 XOR 1 = 1According to link8 possible links: 000, 001, 010, 011, 100, 101, 110, 111.Same as:-000 = link 0001 = link 1010 = link 2011 = link 3100 = link 4101 = link 5110 = link 6111 = link 7See more Information:-  http://www.cisco.com/en/US/tech/tk389/tk213/technologies_tech_note09186a0080094714.shtml
  5. 5. A.K. Gautam ciscobulls@gmail.com CONFIGURE ETHERCHANNEL LOAD BALANCING. EthjerChannel On On PAgP Negotiated EtherChannel Desirable EtherChannel Auto LACP Negotiated EtherChannel Active PassiveLoad balancing configure on Global mode.Switch(config)# port-channel load-balance methodSwitch(config)# port-channel load-balance ? dst-ip Dst IP Addr bits dst-mac Dst Mac Addr bits src-dst-ip Src XOR Dst IP Addr XOR src-dst-mac Src XOR Dst Mac Addr XOR src-ip Src IP Addr bits src-mac Src Mac Addr bitsEtherChannel protocolThe Cisco Catalyst family of switches supports both:Port Aggregation Protocol (PAgP) - Cisco proprietary (Default when port channel is created).Link Aggregation Control Protocol (LACP) - Industry standard 802.3ad-based protocol (When a Cisco switch isconnected to a non-Cisco switch use LACP)Note: - Must be same protocol on the both side.switch(config)# interface range fa 0/1 - 4switch(config-if-range)# channel-protocol ? lacp Prepare interface for LACP protocol pagp Prepare interface for PAgP protocolswitch(config-if-range)# channel-protocol pagpChannel-group number: 1 – 64(Does not need to be the same on both switches but it’s recommended that it usually is)switch(config)# interface range fa 0/1 - 4switch(config-if-range)# channel-protocol ? lacp Prepare interface for LACP protocol pagp Prepare interface for PAgP protocol
  6. 6. A.K. Gautam ciscobulls@gmail.comswitch(config-if-range)# channel-group number mode {active | on | {auto [non-silent]} | {desirable [non-silent]} | passive} if No PAgP or LACP negotiation usedswitch(config)# interface range fa 0/1 – 4switch(config-if-range)# channel-protocol pagpswitch(config-if-range)# channel-group 1 mode on active Enable LACP unconditionally auto Enable PAgP only if a PAgP device is detected desirable Enable PAgP unconditionally on Enable Etherchannel only passive Enable LACP only if a LACP device is detectedNote: - Both ends must be on PAgP (Port Aggregation Protocol)PAgP modes: -1: -Desirable2: -Auto1:- in this mode switch sends a request to neighbor switch for either channel negotiation.2:- in this mode a switch read for negotiation but it does not send a request to neighbor switch for either channelnegotiation.Switch1(config)# interface range fa 0/1 – 4Switch1(config-if-range)#switchport mode trunkSwitch1(config-if-range)# switchport trunk encapsulation dot1qSwitch1(config-if-range)# channel-protocol pagpSwitch1(config-if-range)# channel-group 1 mode desirableSwitch2(config)# interface range fa 0/1 – 4Switch2(config-if-range)#switchport mode trunkSwitch2(config-if-range)#switchport trunk encapsulation dot1qSwitch2(config-if-range)# channel-protocol pagpSwitch2(config-if-range)# channel-group 1 mode autoNote: - Load balancing does not have to match.switch1(config)# port-channel load-balance dst-ipswitch2(config)# port-channel load-balance src-dst-ipVerifying: -Switch#show etherchannel protocolSwitch#show etherchannel load-balanceSwitch#show ehterchannel summarySwitch#show etherchannel port
  7. 7. A.K. Gautam ciscobulls@gmail.com LACP (Link Aggregation control Protocol)LACP Modes: -1: -Active:2: -Passive:1: - An interface in the active mode can negotiation an EtherChannel with another interface that is in the active orpassive mode.2: - An interface in the passive mode cans negotiation an EtherChannel with another interface that is in the activemode.Note: - An interface in the passive mode cannot negotiation an EtherChannel with another interface that is also inthe passive mode because neither interface starts LACP negotiation.Switch1(config)# interface range fa 0/1 – 4Switch1(config-if-range)#switchport mode trunkSwitch1(config-if-range)# switchport trunk encapsulation dot1qSwitch1(config-if-range)# channel-protocol lacpSwitch1(config-if-range)# channel-group 1 mode activeSwitch2(config)# interface range fa 0/1 – 4Switch2(config-if-range)#switchport mode trunkSwitch2(config-if-range)#switchport trunk encapsulation dot1qSwitch2(config-if-range)# channel-protocol lacpSwitch2(config-if-range)# channel-group 1 mode passivePort PriorityLACP uses the port priority to decide which port should be put in standby mode.Ports with lower priority are active, and rest ports are standby (Default32678).For Example we use 4 links.Switch1(config)# interface range fa 0/1 – 2Switch1(config-if-range)#switchport mode trunkSwitch1(config-if-range)# switchport trunk encapsulation dot1qSwitch1(config-if-range)# channel-protocol lacpSwitch1(config-if-range)# channel-group 1 mode activeSwitch1(config-if-range)#lacp port-priority 99Switch1(config)# interface range fa 0/3 – 4Switch1(config-if-range)#switchport mode trunkSwitch1(config-if-range)#switchport trunk encapsulation dot1qSwitch1(config-if-range)# channel-protocol lacpSwitch1(config-if-range)# channel-group 1 mode passiveNote: - Load balancing does not have to match.switch1(config)# port-channel load-balance dst-ipswitch2(config)# port-channel load-balance src-dst-ipVerifying: -Switch#show etherchannel protocol
  8. 8. A.K. Gautam ciscobulls@gmail.comSwitch#show etherchannel load-balanceSwitch#show ehterchannel summarySwitch#show etherchannel portThanks giving me your precious time.A.K. Gautam

×