Sunteți pe pagina 1din 9

Lab 3-5 Configuring Etherchannel

Objective The purpose of this lab is to configure and observe Etherchannel. Scenario Four switches have just been installed. The distribution layer switches are Catalyst 3560s and the access layer switches are Catalyst !"60s. There are redundant uplin#s between the access layer and distribution layer. $sually only one of these lin#s could be used or a bridging loop %ight occur. &owever this utili'es only half of the available bandwidth. Etherchannel allows up to eight redundant lin#s to be bundled together into one logical lin#. Step 1 (tart by deleting vlan.dat erasing the startup configuration and reloading all your switches. )fter reloading the switches give the% hostna%es. Configure ports f0*+ through f0*,! to be trun#s. -n the 3560s you first need to set the trun# encapsulation to dot,.. -n the !"60s only dot,. is supported so it does not need to be set but the %ode still needs to be changed to trun#. /f you do not set the %ode of the ports to trun# the lin#s do not for% trun#s and re%ain access ports 0default %ode on a 3560 or !"60 is dyna%ic auto1 default %ode on a 3550 or !"50 is dyna%ic desirable2.
DLS1#configure terminal

,3"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

Enter configuration commands, one per line. End with CNTL/ . DLS1!config"#interface range f#/$ % 1& DLS1!config%if%range"#switchport trun' encapsulation dot1( DLS1!config%if%range"#switchport mode trun'

Step 2 The first Etherchannel we create for this lab is aggregating ports f0*,, and f0*,! between )9(, and )9(!. First %a#e sure that you have a trun# lin# active for those two lin#s with the show interfaces trunk co%%and.
)LS1#show interfaces trun' *ort -a#/$ -a#/. -a#// -a#/1# -a#/11 -a#/1& +ode on on on on on on Encapsulation .#&.1( .#&.1( .#&.1( .#&.1( .#&.1( .#&.1( Status trun'ing trun'ing trun'ing trun'ing trun'ing trun'ing Nati,e ,lan 1 1 1 1 1 1

0output ommitted1

-n both switches add ports ,, and ,! to port3channel , with the channel-group 1 o!e !esirable co%%and where o!e !esirable indicates that you want the switch to actively negotiate to for% a 5)g5 lin#. 5)g5 is an Etherchannel protocol. )LS1!config"#interface range f#/11 % 1& )LS1!config%if%range"#channel%group 1 mode desira2le Creating a port%channel interface *ort%channel 1 4ow you can configure the logical interface to beco%e a trun# by first entering the interface port-channel number co%%and and then the switchport o!e trunk co%%and. :o this configuration on both switches. )LS1!config"#interface port%channel 1 )LS1!config%if"#switchport mode trun' ;erify that Etherchannel is wor#ing by issuing the show etherchannel su ar" co%%and on both switches. This co%%and displays the type of Etherchannel the ports utili'ed and port states.
)LS1#show -lags3 D 4 5 7 9 u w d etherchannel summary % down * % in port%channel % stand%alone s % suspended % 5ot%stand26 !L)C* onl6" % La6er8 S % La6er& % in use f % failed to allocate aggregator % unsuita2le for 2undling % waiting to 2e aggregated % default port

!3"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

Num2er of channel%groups in use3 1 Num2er of aggregators3 1 :roup *ort%channel *rotocol *orts %%%%%%;%%%%%%%%%%%%%;%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1 *o1!S9" *)g* -a#/11!*" -a#/1&!*" )LS&#show -lags3 D 4 5 7 9 u w d etherchannel summary % down * % in port%channel % stand%alone s % suspended % 5ot%stand26 !L)C* onl6" % La6er8 S % La6er& % in use f % failed to allocate aggregator % unsuita2le for 2undling % waiting to 2e aggregated % default port

Num2er of channel%groups in use3 1 Num2er of aggregators3 1 :roup *ort%channel *rotocol *orts %%%%%%;%%%%%%%%%%%%%;%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1 *o1!S9" *)g* -a#/11!*" -a#/1&!*"

/f the Etherchannel does not co%e up you %ay want to try <flapping= the physical interfaces involved in the Etherchannel on both ends. This involves using the shut co%%and followed by a no shut co%%and a few seconds later on those interfaces. The co%%ands show interfaces trunk and show spanning-tree also show the port3channel as one logical lin#.
)LS1#show interfaces trunk *ort -a#/$ -a#/. -a#// -a#/1# *o1 +ode on on on on on Encapsulation .#&.1( .#&.1( .#&.1( .#&.1( .#&.1( Status trun'ing trun'ing trun'ing trun'ing trun'ing Nati,e ,lan 1 1 1 1 1

0output ommitted1 )LS1#show spanning-tree <L)N###1 Spanning tree ena2led protocol ieee 7oot 4D *riorit6 8&$=/ )ddress ###a.2.a/.d=.# Cost 1/ *ort 11 !-astEthernet#//" 5ello Time & sec +a> )ge &# sec @ridge 4D

-orward Dela6 1? sec

*riorit6 8&$=/ !priorit6 8&$=. s6s%id%e>t 1" )ddress ##1/.#=8?.?$.# 5ello Time & sec +a> )ge &# sec -orward Dela6 1? sec )ging Time 8##

4nterface 7ole Sts Cost *rio.N2r T6pe %%%%%%%%%%%%%%%% %%%% %%% %%%%%%%%% %%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%

33"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

-a#/$ -a#/. -a#// -a#/1# *o1

)ltn )ltn 7oot )ltn Desg

@LA @LA -BD @LA -BD

1/ 1/ 1/ 1/ 1&

1&../ 1&..1# 1&..11 1&..1& 1&..$&

*&p *&p *&p *&p *&p

Step 3 $sing the co%%ands you have learned above configure the lin# between :9(, and )9(, on ports f0*+ and f0*> to be a 9)C5 Etherchannel. ?ou %ust use a different port3channel nu%ber on )9(, than , because you already used that in the previous step. To configure a port3channel to be 9)C5 use the interface3 level co%%and channel-group number o!e active. )ctive %ode indicates that the switch actively tries to negotiate that lin# to be 9)C5 0as opposed to 5)g52.
)LS1!config"#interface range f#/$ % . )LS1!config%if%range"#channel%group & mode acti,e Creating a port%channel interface *ort%channel & )LS1!config%if%range"#interface port%channel & )LS1!config%if"#switchport mode trun'

)pply a si%ilar configuration on :9(,. ;erify the configuration with the show etherchannel su ar" co%%and.
)LS1#show -lags3 D 4 5 7 9 u w d etherchannel summary % down * % in port%channel % stand%alone s % suspended % 5ot%stand26 !L)C* onl6" % La6er8 S % La6er& % in use f % failed to allocate aggregator % unsuita2le for 2undling % waiting to 2e aggregated % default port

Num2er of channel%groups in use3 & Num2er of aggregators3 & :roup *ort%channel *rotocol *orts %%%%%%;%%%%%%%%%%%%%;%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1 *o1!S9" *)g* -a#/11!*" -a#/1&!*" & *o&!S9" L)C* -a#/$!*" -a#/.!*"

Step # /n the previous steps we configured Etherchannels as 9ayer ! trun# connections between switches. @e can also configure Etherchannels as 9ayer 3 0routed2 connections on switches that can support it. (ince :9(, and :9(! are both %ultilayer switches they can support routed ports. $se the no switchport co%%and on f0*,, and f0*,! to %a#e the% 9ayer 3 ports. 4eAt add the% to the channel group with the channel-group number o!e !esirable co%%and. Then on the logical interface type no switchport to %a#e it a 9ayer 3 port. )dd the /5 address ,0.0.0., for :9(, and ,0.0.0.! for :9(!. Configure both with a * !B subnet %as#.
DLS1!config"#interface range f#/11 % 1&

B3"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

DLS1!config%if%range"#no switchport DLS1!config%if%range"#channel%group 8 mode desira2le Creating a port%channel interface *ort%channel 8 DLS1!config%if%range"#interface port%channel 8 DLS1!config%if"#no switchport DLS1!config%if"#ip address 1#.#.#.1 &??.&??.&??.#

;erify that you have 9ayer 3 connectivity by atte%pting to ping the other side of the lin#6
DLS1#ping 1#.#.#.& T6pe escape se(uence to a2ort. Sending ?, 1##%26te 4C+* Echos to 1#.#.#.&, timeout is & seconds3 CCCCC Success rate is 1## percent !?/?", round%trip min/a,g/ma> D 1/1/1 ms

/f you loo# at the output of show etherchannel su ar" you see that it lists the port channel as a routed port not a switched port. C$ in the parentheses neAt to the na%e %eans routed and up as opposed to switched and up.
DLS1#show -lags3 D 4 5 7 9 u w d etherchannel summar6 % down * % in port%channel % stand%alone s % suspended % 5ot%stand26 !L)C* onl6" % La6er8 S % La6er& % in use f % failed to allocate aggregator % unsuita2le for 2undling % waiting to 2e aggregated % default port

Num2er of channel%groups in use3 & Num2er of aggregators3 & :roup *ort%channel *rotocol *orts %%%%%%;%%%%%%%%%%%%%;%%%%%%%%%%%;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% & *o&!S9" L)C* -a#/$!*" -a#/.!*" 8 *o8!79" *)g* -a#/11!*" -a#/1&!*"

Step 5 The switches can use different %ethods to load balance traffic going through a port channel. 7y default they load balance using the source 8)C address. ?ou can view the current load3balancing configuration with the show etherchannel loa!-balance co%%and6
DLS1#show etherchannel load-balance EtherChannel Load%@alancing Eperational State !src%mac"3 Non%4*3 Source +)C address 4*,F3 Source +)C address 4*,=3 Source 4* address

-ther %ethods of load balancing are based on the destination 8)C address both source and destination 8)C addresses source /5 address destination /5 address and both source and destination /5 addresses. For this scenario we

53"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

configure )9(, to load balance by both source and destination 8)C address using the global configuration co%%and port-channel loa!-balance method where the %ethod is src3dst3%ac.
)LS1!config"#port-channel load-balance src-dst-mac

;erify the configuration with the show etherchannel loa!-balance co%%and6


)LS1#show etherchannel load-balance EtherChannel Load%@alancing Eperational State !src%dst%mac"3 Non%4*3 Source GE7 Destination +)C address 4*,F3 Source GE7 Destination +)C address 4*,=3 Source GE7 Destination 4* address

Challenge The topology still has redundant lin#s that you can aggregate. EAperi%ent with the other port3channel %odes using the .uestion %ar# on the interface3level co%%and channel-group number o!e $. 9oo# at the descriptions and i%ple%ent so%e port channels in different %anners. /f you decide to use the <on= %ode you %ay want to ta#e a loo# at the interface co%%and channelprotocol $. This %ode statically sets the Etherchannel protocol without negotiation.

63"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

E%& O' L() '*%(L CO%'*+S


DLS1#show running%config C hostname DLS1 C C interface *ort%channel& switchport trun' encapsulation dot1( switchport mode trun' C interface *ort%channel8 no switchport ip address 1#.#.#.1 &??.&??.&??.# C C interface -astEthernet#/$ switchport trun' encapsulation dot1( switchport mode trun' channel%group & mode acti,e C interface -astEthernet#/. switchport trun' encapsulation dot1( switchport mode trun' channel%group & mode acti,e C interface -astEthernet#// switchport trun' encapsulation dot1( switchport mode trun' C interface -astEthernet#/1# switchport trun' encapsulation dot1( switchport mode trun' C interface -astEthernet#/11 no switchport no ip address channel%group 8 mode desira2le C interface -astEthernet#/1& no switchport no ip address channel%group 8 mode desira2le C C end DLS&#show running%config C hostname DLS& C C C interface *ort%channel8 no switchport ip address 1#.#.#.& &??.&??.&??.# C C interface -astEthernet#/$ switchport trun' encapsulation dot1(

+3"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

switchport mode trun' C interface -astEthernet#/. switchport trun' encapsulation dot1( switchport mode trun' C interface -astEthernet#// switchport trun' encapsulation dot1( switchport mode trun' C interface -astEthernet#/1# switchport trun' encapsulation dot1( switchport mode trun' C interface -astEthernet#/11 no switchport no ip address channel%group 8 mode desira2le C interface -astEthernet#/1& no switchport no ip address channel%group 8 mode desira2le C C end )LS1#show running%config C hostname )LS1 C C port%channel load%2alance src%dst%mac C interface *ort%channel1 switchport mode trun' C interface *ort%channel& switchport mode trun' C C interface -astEthernet#/$ switchport mode trun' channel%group & mode acti,e C interface -astEthernet#/. switchport mode trun' channel%group & mode acti,e C interface -astEthernet#// switchport mode trun' C interface -astEthernet#/1# switchport mode trun' C interface -astEthernet#/11 switchport mode trun' channel%group 1 mode desira2le C interface -astEthernet#/1& switchport mode trun' channel%group 1 mode desira2le

>3"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

C C end )LS&#show running%config C hostname )LS& C C interface *ort%channel1 switchport mode trun' C C interface -astEthernet#/$ switchport mode trun' C interface -astEthernet#/. switchport mode trun' C interface -astEthernet#// switchport mode trun' C interface -astEthernet#/1# switchport mode trun' C interface -astEthernet#/11 switchport mode trun' channel%group 1 mode desira2le C interface -astEthernet#/1& switchport mode trun' channel%group 1 mode desira2le C C end

"3"

CC456 7uilding 8ultilayer (witched 4etwor#s v5.0 3 9ab 335

Copyright !006 Cisco (yste%s /nc

S-ar putea să vă placă și