ccnpv7 route lab3-1 ospf-virtual-links student

Upload: garp5791

Post on 06-Jul-2018

312 views

Category:

Documents


4 download

TRANSCRIPT

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    1/12

    CCNPv7 ROUTE

    Chapter 3 Lab 3-1, OSPF Virtual Links

    Topology

    Objectives

    • Configure multi-area OSPF on a router.

    • Verify multi-area behaior.

    • Create an OSPF irtual link.

    • Summari!e an area.

    • "enerate a #efault route into OSPF.

    Background

    $ou are responsible for %onfiguring the ne& net&ork to %onne%t your %ompany's engineering, marketing, an#

    a%%ounting #epartments, represente# by loopba%k interfa%es on ea%h of the three routers. (he physi%al #ei%es hae

     )ust been installe# an# %onne%te# by serial %ables. Configure multiple-area OSPF* to allo& full %onne%tiity bet&een

    all #epartments.

    +n a##ition, 1 has a loopba%k interfa%e representing a %onne%tion to the +nternet. (his %onne%tion &ill not be a##e#into OSPF*. 3 &ill hae four a##itional loopba%k interfa%es representing %onne%tions to bran%h offi%es.

    *1/ Cis%o an#0or its affiliates. ll rights resere#. (his #o%ument is Cis%o Publi%. Page 1 of 1*

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    2/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    Note: (his lab uses Cis%o 12/1 routers &ith Cis%o +OS elease 1./ &ith +P 4ase. (he s&it%hes are Cis%o 5S-

    C*26-*/((-L &ith Fast 7thernet interfa%es, therefore the router &ill use routing metri%s asso%iate# &ith a 1 8b0s

    interfa%e. 9epen#ing on the router or s&it%h mo#el an# Cis%o +OS Soft&are ersion, the %omman#s aailable an#

    output pro#u%e# might ary from &hat is sho&n in this lab.

    Reuired Resources

    • 3 routers :Cis%o +OS elease 1.* or %omparable;

    • Serial an# 7thernet %ables

    !tep ": !uggested starting con#igurations$

    a. pply the follo&ing %onfiguration to ea%h router along &ith the appropriate %ostna&e. (he e'ec(ti&eout " " 

    %omman# shoul# only be use# in a lab enironment.

    Router(config)# no ip domain-lookupRouter(config)# line con 0Router(config-line)# logging synchronousRouter(config-line)# exec-timeout 0 0

    !tep ): Con#igure addressing and loopbacks$

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    3/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    R$(config-if)# ip address 1'2.1"(.101.1 255.255.255.0R$(config-if)# interface loopback 102R$(config-if)# ip address 1'2.1"(.102.1 255.255.255.0R$(config-if)# interface loopback 103R$(config-if)# ip address 1'2.1"(.103.1 255.255.255.0R$(config-if)# interface serial 0!0!1R$(config-if)# ip address 10.1.23.3 255.255.255.0R$(config-if)# no shutdo$n

    !tep *: +dd inter#aces into O!P,$

    a. Create OSPF pro%ess 1 an# OSPF router +9 on all three routers.

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    4/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    R1# clear ip ospf 1 processReset +%6 process 1;

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    5/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    ia - '+-'+ inter area, B - candidate default, > - per-user static route  o - R, % - periodic downloaded static route, - NR%, l - '+%  a - application route  D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is not set

      1*.*.*.*!F is 7aria5l0 su5netted, : su5nets, mas4sC 1*.1.1.*! is directl0 connected, oop5ac41 1*.1.1.1!$ is directl0 connected, oop5ac41 1*.1..*! ! - ****$* 1*.1.1.1 +erial*!*!*

    R# sho$ ip routeCodes - local, C - connected, + - static, R - R'%, 8 - mo5ile, ? - ?@%  - E'@R%, EA - E'@R% e9ternal, - +%6, '3 - +%6 inter area

    N1 - +%6 N++3 e9ternal t0pe 1, N - +%6 N++3 e9ternal t0pe   E1 - +%6 e9ternal t0pe 1, E - +%6 e9ternal t0pe   i - '+-'+, su - '+-'+ summar0, 1 - '+-'+ le7el-1, - '+-'+ le7el-  ia - '+-'+ inter area, B - candidate default, > - per-user static route  o - R, % - periodic downloaded static route, - NR%, l - '+%  a - application route  D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is not set

      1*.*.*.*!F is 7aria5l0 su5netted, su5nets, mas4s 1*.1.1.*!

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    6/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    R$(config-if)# ip ospf net$ork point-to-point

     gain, the s%o- ip osp#  %omman# shoul# use# to erify the OSPF router +9. +f the OSPF router +9 is using a 3*-

    bit alue other than the one spe%ifie# by the router(id %omman#, you %an reset the router +9 by using the clear ip

    osp# pid  process %omman# an# re-erify using the %omman# s%o- ip osp# .

    #. Verify that this neighbor relationship %omes up &ith the s%o- ip osp# neig%bors %omman#.

    R# sho$ ip ospf neighbor

    Neigh5or ' %ri +tate ead Time 3ddress 'nterface1.1.1.1 * 6>! - ****$: 1*.1.1.1 +erial*!*!*$.$.$.$ * 6>! - ****$$ 1*.1.$.$ +erial*!*!1R#

    !tep .: Create a virtual link$

    e. ## loopba%ks 1 through 13 on 3 to 3's OSPF pro%ess in area 1 using the net-ork %omman#. Change

    the net&ork type to a#ertise the %orre%t subnet mask.R$(config)# router ospf 1R$(config-router)# net$ork 1'2.1"(.100.0 0.0.3.255 area 100R$(config-router)# exitR$(config)# interface loopback 100R$(config-if)# ip ospf net$ork point-to-pointR$(config-if)# interface loopback 101R$(config-if)# ip ospf net$ork point-to-pointR$(config-if)# interface loopback 102R$(config-if)# ip ospf net$ork point-to-pointR$(config-if)# interface loopback 103R$(config-if)# ip ospf net$ork point-to-point

    f. Look at the output of the s%o- ip route %omman# on *. >oti%e that the routes to those net&orks #o not appear.

    (he reason for this behaior is that area 1 on 3 is not %onne%te# to the ba%kbone. +t is only %onne%te# to area

    *3. +f an area is not %onne%te# to the ba%kbone, its routes are not a#ertise# outsi#e of its area.

    R#show ip routeCodes - local, C - connected, + - static, R - R'%, 8 - mo5ile, ? - ?@%  - E'@R%, EA - E'@R% e9ternal, - +%6, '3 - +%6 inter area

    N1 - +%6 N++3 e9ternal t0pe 1, N - +%6 N++3 e9ternal t0pe   E1 - +%6 e9ternal t0pe 1, E - +%6 e9ternal t0pe   i - '+-'+, su - '+-'+ summar0, 1 - '+-'+ le7el-1, - '+-'+ le7el-  ia - '+-'+ inter area, B - candidate default, > - per-user static route  o - R, % - periodic downloaded static route, - NR%, l - '+%  a - application route  D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is not set

      1*.*.*.*!F is 7aria5l0 su5netted, F su5nets, mas4s 1*.1.1.*!

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    7/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    1*.1.$.!$ is directl0 connected, +erial*!*!1R#

    5hat &oul# happen if routes %oul# pass bet&een areas &ithout going through the ba%kbone?

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

    $ou %an get aroun# this situation by %reating a irtual link. irtual link is an OSPF feature that %reates a logi%al

    eAtension of the ba%kbone area a%ross a regular area, &ithout a%tually a##ing any physi%al interfa%es into area .

    Note= Prior to %reating a irtual link you nee# to i#entify the OSPF router +9 for the routers inole# :* an# 3;,

    using a %omman# su%h as s%o- ip osp# , s%o- ip protocols or s%o- ip osp# inter#ace. (he output for the s%o-

    ip osp#  %omman# on 1 an# 3 is sho&n belo&.

    R# sho$ ip ospf Routing %rocess &ospf 1& with ' ...Goutput omittedH

    R$# sho$ ip ospf Routing %rocess &ospf 1& with ' $.$.$.$Goutput omittedH

    g. Create a irtual link using the area transit_area virtual(link router-id  OSPF %onfiguration %omman# on both *

    an# 3.

    R(config)# router ospf 1R(config-router)# area 23 )irtual-link 3.3.3.3R(config-router)#

    R$(config)# router ospf 1R$(config-router)# area 23 )irtual-link 2.2.2.2B3ug 1/.11* +%6-:-3IC@ %rocess 1, N5r ... on +%6JK* from3'N@ to 6>, oading oneR$(config-router)#

    >oti%e after irtual links are establishe# +OS &ill report full a#)a%en%y bet&een both routers.

    h. fter you see the a#)a%en%y oer the irtual interfa%e %ome up, issue the s%o- ip route %omman# on * an# see

    the routes from area 1. $ou %an erify the irtual link &ith the s%o- ip osp# neig%bor  an# s%o- ip osp#

    inter#ace %omman#s.

    R# sho$ ip routeCodes - local, C - connected, + - static, R - R'%, 8 - mo5ile, ? - ?@%  - E'@R%, EA - E'@R% e9ternal, - +%6, '3 - +%6 inter area

    N1 - +%6 N++3 e9ternal t0pe 1, N - +%6 N++3 e9ternal t0pe

      E1 - +%6 e9ternal t0pe 1, E - +%6 e9ternal t0pe   i - '+-'+, su - '+-'+ summar0, 1 - '+-'+ le7el-1, - '+-'+ le7el-  ia - '+-'+ inter area, B - candidate default, > - per-user static route  o - R, % - periodic downloaded static route, - NR%, l - '+%  a - application route  D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is not set

      1*.*.*.*!F is 7aria5l0 su5netted, F su5nets, mas4s 1*.1.1.*!

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    8/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    C 1*.1..*! is directl0 connected, oop5ac4 1*.1..1!$ is directl0 connected, oop5ac4 1*.1.$.*! ! - ****$: 1*.1.$.$ +erial*!*!1

    R# sho$ ip ospf interface

    +%6JK* is up, line protocol is up'nternet 3ddress 1*.1.$.!, 3rea *, 3ttached 7ia Not 3ttached

      %rocess ' 1, Router ' ..., Networ4 T0pe K'RT>3J'NL, Cost /  Topolog0-8T' Cost isa5led +hutdown Topolog0 Name  * / no no ?ase  Configured as demand circuit  Run as demand circuit  oNot3ge +3 allowed  Transmit ela0 is 1 sec, +tate %'NTJTJ%'NT  Timer inter7als configured, ello 1*, ead *, Mait *, Retransmit :  oo5-res0nc timeout *  ello due in *****  +upports in4-local +ignaling (+)  Cisco N+6 helper support ena5led  'ET6 N+6 helper support ena5led  'nde9 $!, flood 2ueue length *  Ne9t *9*(*)!*9*(*)  ast flood scan length is 1, ma9imum is 1  ast flood scan time is * msec, ma9imum is * msec  Neigh5or Count is 1, 3dacent neigh5or count is 1

    3dacent with neigh5or $.$.$.$ (ello suppressed)  +uppress hello for 1 neigh5or(s)Goutput omittedH

    5hen are irtual links useful?

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

    5hy are irtual links a poor long-term solution?

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

    *1/ Cis%o an#0or its affiliates. ll rights resere#. (his #o%ument is Cis%o Publi%. Page of 1*

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    9/12

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    10/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    in4 ' 3K Router 3ge +e2# Chec4sum in4 count... ... /*F *9F******$ *9**31 $.$.$.$ $.$.$.$ /* *9F******: *9**E? $

      +ummar0 Net in4 +tates (3rea $)

    in4 ' 3K Router 3ge +e2# Chec4sum1*.1.1.* ... 1F *9F****** *9**$E3F1*.1..* ... 1F *9F****** *9**?*:1*.1.1.* ... 1F *9F****** *9**?31.1/F.1**.* $.$.$.$ $ *9F****** *9**/$ER#

    k. >oti%e on 3 that OSPF has generate# a summary route pointing to&ar# >ull.

    R$#show ip routeCodes - local, C - connected, + - static, R - R'%, 8 - mo5ile, ? - ?@%  - E'@R%, EA - E'@R% e9ternal, - +%6, '3 - +%6 inter area

    N1 - +%6 N++3 e9ternal t0pe 1, N - +%6 N++3 e9ternal t0pe   E1 - +%6 e9ternal t0pe 1, E - +%6 e9ternal t0pe

      i - '+-'+, su - '+-'+ summar0, 1 - '+-'+ le7el-1, - '+-'+ le7el-  ia - '+-'+ inter area, B - candidate default, > - per-user static route  o - R, % - periodic downloaded static route, - NR%, l - '+%  a - application route  D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is not set

      1*.*.*.*!F is 7aria5l0 su5netted, su5nets, mas4s 1*.1.1.*!

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    11/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

     @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

    !tep 1: 2enerate a de#ault route into O!P,$

    $ou %an simulate loopba%k 3 on 1 to be a %onne%tion to the +nternet. $ou #o not nee# to a#ertise this spe%ifi%

    net&ork to the rest of the net&ork. +nstea#, you %an )ust hae a #efault route for all unkno&n traffi% to go to 1.

    l. (o hae 1 generate a #efault route, use the OSPF %onfiguration %omman# de#ault(in#or&ation originate

    al-ays. (he al-ays key&or# is ne%essary for generating a #efault route in this s%enario. 5ithout this key&or#, a

    #efault route is generate# only into OSPF if one eAists in the routing table.

    R1(config)# router ospf 1R1(config-router)# default-information originate al$ays

    m. Verify that the #efault route appears on * an# 3 &ith the s%o- ip route %omman#.

    R#show ip routeCodes - local, C - connected, + - static, R - R'%, 8 - mo5ile, ? - ?@%  - E'@R%, EA - E'@R% e9ternal, - +%6, '3 - +%6 inter area

    N1 - +%6 N++3 e9ternal t0pe 1, N - +%6 N++3 e9ternal t0pe   E1 - +%6 e9ternal t0pe 1, E - +%6 e9ternal t0pe   i - '+-'+, su - '+-'+ summar0, 1 - '+-'+ le7el-1, - '+-'+ le7el-  ia - '+-'+ inter area, B - candidate default, > - per-user static route  o - R, % - periodic downloaded static route, - NR%, l - '+%  a - application route  D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is 1*.1.1.1 to networ4 *.*.*.*

    BE *.*.*.*!*

  • 8/17/2019 CCNPv7 ROUTE Lab3-1 OSPF-Virtual-Links Student

    12/12

    CCNPv7 ROUTE  Lab 3-1, OSPF Virtual Links

    D - replicated route, - ne9t hop o7erride

    @atewa0 of last resort is 1*.1.$. to networ4 *.*.*.*

    BE *.*.*.*!*