ccnpv7 switch lab5-1 ivl-routing student

Upload: morpheo

Post on 05-Jul-2018

301 views

Category:

Documents


6 download

TRANSCRIPT

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    1/12

    CCNPv7 SWITCH

    Chapter 5-1 Lab – Inter-VLAN Routing

    Topoog!

    "b#e$tive%

    • Implement a Layer 3 EtherChannel

    • Implement Static Routing

    • Implement Inter-VLAN Routing

    &a$'groun(

    Cisco's switching product line oers ro!ust support or I" routing# It is common practice to use only multi-layer switching in the distri!ution layer o the networ$% eliminating routers in all !ut special use cases% usually whena gateway interace is re&uired# oing so pro(ides many !eneits in terms o cost and managea!ility# In thisla! you will conigure Inter-VLAN routing on the multi-layer switches in your pod and then a Layer 3EtherChannel lin$ to interconnect them# )ou will urther conigure one o your access-layer switches tosupport !asic routing% and apply static routes so that there is simple path control#

    Note* +his la! uses Cisco Catalyst 3,. and /0. switches running Cisco I1S 2,#./4SE I" Ser(ices andLAN 5ase images% respecti(ely# +he 3,. and /0. switches are conigured with the S6 templates 7dual-ip(8-and-ip( routing9 and 7lan!ase-routing9% respecti(ely# epending on the switch model and Cisco I1SSotware (ersion% the commands a(aila!le and output produced might (ary rom what is shown in this la!#Catalyst 3,. switches running any Cisco I1S :E release4 and Catalyst /0.-"lus switches running anycompara!le Cisco I1S image4 can !e used in place o the Catalyst 3,. switches and the Catalyst /0.switches#

    ; /.28 Cisco and

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    2/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    Re+uire( Re%our$e%

    • / Cisco /0. with the Cisco I1S Release 2,#./4SE C/0.-LAN5ASE=0-6 or compara!le

    • / Cisco 3,.(/ with the Cisco I1S Release 2,#./4SE C3,.-I"SERVICES=0-6 or compara!le

    • Computer with terminal emulation sotware

    • Ethernet and console ca!les

    • 3 "Cs with appropriate sotware

    Part 1* Con,igure utia!er S.it$hing u%ing /i%tribution La!er S.it$he%

    Step 1* Loa( ba%e $on,ig

    >se the reset#tcl script you created in La! 2 7"reparing the Switch9 to set your switches up or this la!# +henload the ile 5ASE#C?@ into the running-conig with the command copy flash:BASE.CFG running-

    config# An eample rom LS2*

    DLS1# tclsh reset.tcl

    Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

    [O]

    Erase of nvram com"lete

    eloa$ing the switch in 1 minute% ty"e reloa$ cancel to halt

    &rocee$ with reloa$? [confirm]

    '(ar ) 1*+1+,-+,. /S0S)2345LOC46267 6nitiali8e$ the geometry of nvram

    '(ar ) 1*+1+1-1+1 /S0S9ELO:D eloa$ re;ueste$ e to enter the initial configuration $ialog? [yesno] n

    Switch@ en

    '(ar 1 ,,,1.,-A19 /L629CB:2ED 6nterface 3lan1% change$ state toa$ministratively $own

    Switch# copy BASE.CFG running-config

    Destination filename [runningconfig]?

    1*+

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    3/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    Enter configuration comman$s% one "er line- En$ with C27LH-

    :LS1config# sdm pref lanbase-routing 

    Changes to the running SD( "references have

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    4/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    DLSconfig# int loopbac'

    DLSconfigif# ip address ($.)*.. $&&.$&&.$&&.!

    DLSconfigif# no shut

    DLSconfigif# e#it

    DLSconfig#

     At this point% !asic inter(lan routing can !e demonstrated using an attached host# ost is attached to LS/(ia interace ?a.

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    5/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    LS2 2/#2#2/#2

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    6/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    Step 5* Con,igure (e,aut routing bet.een /LS %.it$he%

     At this point% local routing is support at each distri!ution layer switch# Now to pro(ide reacha!ility across thelayer 3 EtherChannel trun$% conigure ully &ualiied static deault routes at LS2 and LS/ that point to eachother# ?rom LS2*

    DLS1config# ip route !.!.!.! !.!.!.! port-channel $

    /efault route +ithout gate+ay0 if not a point-to-point interface0 may impact performance

    DLS1config# ip route !.!.!.! !.!.!.! port-channel $ $.).$.$

    DLS1config#

    1nce done at !oth ends% (eriy connecti(ity !y pinging rom one switch to the other# In the eample !elow%LS/ pings the Loop!ac$ 2 interace at LS2#

    DLS# sho+ ip route

    Co$es L local% C connecte$% S static% 6&% ( mo

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    7/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    Endpoint 2 Channel num!er Endpoint / VLANs Allowed

     ALS2 ?.

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    8/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    :LS1# sho+ interface trun'

    &ort (o$e Enca"sulation Status 2ative vlan

    &o1 on *,-1; trun>ing 1

    &o+ on *,-1; trun>ing 1

    &ort 3lans allowe$ on trun>

    &o1 11,A%111+,A+

    &o+ 11,

    Gout"ut omitte$@

    :LS1#

    Step 7* 3nabe an( Veri,! La!er $onne$tivit! a$ro%% the net.or'

    In this step we will ena!le !asic connecti(ity rom the management VLANs on !oth sides o the networ$#

    • Create the management VLANs 00 at ALS2% 2/. at ALS/4

    • Conigure interace VLAN 00 at ALS2 and interace VLAN 2/. at ALS/

    •  Assign addresses reer to the diagram4 and deault gateways at LS2

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    9/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    Part )* Con,igure utia!er S.it$hing at ALS1

     At this point all routing is going through the LS switches% and the port channel !etween ALS2 and LS/ isnot passing anything !ut control traic 5">s% etc4#

    +he Cisco /0. is a!le to support !asic routing when it is using the LAN5ASE I1S# In this step you willconigure ALS2 to support multiple SVIs and conigure it or !asic static routing# +he o!Gecti(es o this stepare*

    • Ena!le inter(lan routing !etween two VLANs locally at ALS2

    • Ena!le I" Routing

    • Conigure a static route or LS/'s Lo2 networ$ tra(el (ia "ort-Channel 8#

    Step 1* Con,igure a((itiona VLAN% an( VLAN inter,a$e%

     At ALS2% create VLAN 2.. and VLAN 22. and then create SVIs or those VLANs*

    :LS1config# ip routing

    :LS1config# vlan !!

    :LS1configvlan# name %ocal

    :LS1configvlan# e#it

    :LS1config# vlan !

    :LS1configvlan# name 2nter3ode

    :LS1configvlan# e#it

    :LS1config# int vlan !!

    :LS1configif# ip address !..!!. $&&.$&&.$&&.!

    :LS1configif# no shut

    :LS1configif# e#it

    :LS1config# int vlan !:LS1configif# ip address !..!.$ $&&.$&&.$&&.!

    :LS1configif# no shut

    :LS1configif# e#it

    :LS1config#

    Step )* Con,igure an( te%t Ho%t A$$e%%

     Assign interace ?a.

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    10/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    :LS1configif# s+itchport access vlan !!

    :LS1configif# no shut

    :LS1configif# e#it

    +he output rom the host shows that attempts to communicate with interace VLAN 00 at ALS2 were ulilledlocally% and not sent to LS2 or routing#

    Step * Con,igure an( veri,! %tati$ routing a$ro%% the net.or'

     At this point% local routing at ALS24 wor$s% and o-net routing outside o ALS24 will not wor$% !ecause LS2doesn't ha(e any $nowledge o the 2.#2#2..#. su!net# In this step you will conigure routing on se(eraldierent switches*

    •  At LS2% conigure*

    o a static route to the 2.#2#2..#.

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    11/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    ere is an eample rom ALS2*

    :LS1config# ip route ($.)*..! $&&.$&&.$&&.! vlan !

    :LS1config# ip route !.!.!.! !.!.!.! !..((.

    :LS1config# end 

    :LS1# sho+ ip routeCo$es L local% C connecte$% S static% 6&% ( mo

  • 8/16/2019 Ccnpv7 Switch Lab5-1 Ivl-routing Student

    12/12

    CCNPv7 SWITCH* Lab 5-1 – Inter-VLAN Routing

    :LS1#

    +races rom ost A show an additional hop% !ut ollow the appointed path*

    Step 2* 3n( o, Lab

    Sa(e your conigurations# +he switches will !e used as conigured now or la! ,-/% C"#

    ; /.28 Cisco and