CCNPv7 ROUTE
Chapter 7 Lab 7-1, Configuring BGP with Default Routing
Instructor Ve Version rsion
Topology
Objectives •
Configure BGP to exchange routing information with two IP!"
Backgroun #he International #ra$el %genc& %genc& 'I#%( 'I#%( relie! exten!i$el& on the Internet for !ale!" )or thi! rea!on, the I#% ha! *eci*e* to create a multihome* IP connecti$it& !olution an* contracte* with two IP! for Internet connecti$it& with fault tolerance" Becau!e the I#% i! connecting to two *ifferent !er$ice pro$i*er!, &ou mu!t configure BGP, which run! between the I#% boun*ar& router an* the two IP router!" Note! #hi! Note! #hi! lab u!e! Ci!co 1+1 1 +1 router! with Ci!co I Relea!e 1." with IP Ba!e" #he !witche! are Ci!co /C0+2-0##-L C0+2-0##-L with )a!t 3thernet interface!, therefore the router will u!e routing metric! a!!ociate* with a 122 4b5!
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 1 of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
interface" Depen*ing on the router or !witch mo*el an* Ci!co I oftware $er!ion, the comman*! a$ailable an* output pro*uce* might $ar& from what i! !hown in thi! lab"
Re"uire Resources •
router! 'Ci!co I Relea!e 1."0 o r comparable(
•
erial an* 3thernet cable!
#tep $! #uggeste starting con%igurations& a"
%ppl& the following configuration to each router along with the appropriate 'ostna(e" #he e)ec*ti(eout $ $ comman* !houl* onl& be u!e* in a lab en $ironment"
Router(config)# no ip domain-lookup Router(config)# line con 0 Router(config-line)# logging synchronous Router(config-line)# exec-timeout 0 0
#tep +! Con%igure inter%ace aresses& a"
8!ing the a**re!!ing !cheme in the *iagram, create the loopbac9 interface! an* appl& IP$ a**re!!e! to the!e an* the !erial interface! on IP1 'R1(, IP0 'R(, an* I#% 'R0(" #he IP loopbac9! !imulate real networ9! that can be reache* through the IP" #he two loopbac9! for the I#% router !imulate the connection! between the I#% boun*ar& router an* their core router!" et a cloc9 rate o n the DC3 !erial interface!"
ISP1(config)# interface Lo0 ISP1(config-if)# description ISP1 Internet Network ISP1(config-if)# ip address 10.1.1.1 !!.!!.!!.0 ISP1(config-if)# exit ISP1(config)# interface Serial0"0"0 ISP1(config-if)# description ISP1 -# I$% ISP1(config-if)# ip address 10.0.0.1 !!.!!.!!.! ISP1(config-if)# clock rate 1&000 ISP1(config-if)# no shutdown ISP1(config-if)# end ISP1# ITA(config)# interface Lo0 ITA(config-if)# description 'ore router network link 1 ITA(config-if)# ip address 1(.1)&.0.1 !!.!!.!!.0 ITA(config)# exit ITA(config-if)# interface Lo1 ITA(config-if)# description 'ore router network link ITA(config-if)# ip address 1(.1)&.1.1 !!.!!.!!.0 ITA(config-if)# exit ITA(config)# interface Serial0"0"0 ITA(config-if)# description I$% -# ISP1 ITA(config-if)# ip address 10.0.0. !!.!!.!!.! ITA(config-if)# no shutdown ITA(config-if)# exit ITA(config)# interface Serial0"0"1 ITA(config-if)# description I$% -# ISP ITA(config-if)# ip address 1*.1).0. !!.!!.!!.!
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 0 of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
ITA(config-if)# clock rate 1&000 ITA(config-if)# no shutdown ITA(config-if)# end ITA# ISP2(config)# interface Lo0 ISP2(config-if)# description ISP Internet Network ISP2(config-if)# ip address 1*.1).1.1 !!.!!.!!.0 ISP2(config)# exit ISP2(config-if)# interface Serial0"0"1 ISP2(config-if)# description ISP -# I$% ISP2(config-if)# ip address 1*.1).0.1 !!.!!.!!.! ISP2(config-if)# no shutdown ISP2(config-if)# end ISP2# b"
8!e ping to te!t the connecti$it& between the *irectl& connecte* router!" :ote that router IP1 cannot reach router IP0"
#tep ,! Con%igure B-P on t'e I#P routers& n the IP1 an* IP0 router!, configure BGP to peer with the I#% boun*ar& router an* a*$erti!e the IP loopbac9 networ9!"
ISP1(config)# router +gp 00 ISP1(config-router)# neigh+or 10.0.0. remote-as 100 ISP1(config-router)# network 10.1.1.0 mask !!.!!.!!.0 ISP2(config)# router +gp ,00 ISP2(config-router)# neigh+or 1*.1).0. remote-as 100 ISP2(config-router)# network 1*.1).1.0 mask !!.!!.!!.0
#tep .! Con%igure B-P on t'e IT/ bounary router& a"
Configure the I#% router to run BGP with both Internet pro$i*er!"
ITA(config)# router ITA(config-router)# ITA(config-router)# ITA(config-router)# ITA(config-router)#
+gp 100 neigh+or 10.0.0.1 remote-as 00 neigh+or 1*.1).0.1 remote-as ,00 network 1(.1)&.0.0 network 1(.1)&.1.0
;ou !houl* !ee BGP neighbor peering me!!age! on the con!ole !imilar to the following"
*Sep b"
8 16:00:21.8!: "$P--A%&'A$: neig+,or 10.0.0.1 p
#o $erif& the configuration, chec9 the I#% routing table with the s'o0 ip route comman*"
ITA# show ip route 'oe/: - locl ' - connecte S - /ttic R - RIP 3 - 4o,ile - $P % - I$RP 5 - I$RP eternl 7 - 7SP IA - 7SP inter re 1 - 7SP SSA eternl t9pe 1 2 - 7SP SSA eternl t9pe 2 1 - 7SP eternl t9pe 1 2 - 7SP eternl t9pe 2 i - IS-IS /u - IS-IS /u44r9 1 - IS-IS leel-1 2 - IS-IS leel-2 i - IS-IS inter re * - cnite efult - per-u/er /ttic route o - 7%R P - perioic o;nloe /ttic route - RP l - ISP - ppliction route < - replicte route " - net +op oerrie 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
$te;9 of l/t re/ort i/ not /et
' ' ' ' ITA#
10.0.0.0=8 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 10.0.0.0=>0 i/ irectl9 connecte Seril0=0=0 10.0.0.2=>2 i/ irectl9 connecte Seril0=0=0 10.1.1.0=2@ 20=0B i 10.0.0.1 00:01:10 1!2.16.0.0=16 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.2=>2 i/ irectl9 connecte Seril0=0=1 1!2.16.1.0=2@ 20=0B i 1!2.16.0.1 00:00:> 1C2.168.0.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.0.0=2@ i/ irectl9 connecte oop,c?0 1C2.168.0.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.1.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.1.0=2@ i/ irectl9 connecte oop,c?1 1C2.168.1.1=>2 i/ irectl9 connecte oop,c?1
I#% ha! BGP route! to the loopbac9 networ9! at each IP router" c"
Run the following #cl !cript on all router! to $erif& connecti$it& If the!e ping! are not !ucce!!ful, trouble!hoot" 8!e e)it to exit the #cl !cript" Note! #he /%: !ubnet! connecting I#% 'R0( to the IP! 'R1 an* R( are not a*$erti!e* in BGP, !o the IP! will not be able to ping each other
ITA# tclsh foreach address 10.0.0.1 10.0.0. 10.1.1.1 1*.1).0.1 1*.1).0. 1*.1).1.1 1(.1)&.0.1 1(.1)&.1.1 ping /address
#tep 1! Veri%y B-P on t'e routers& a"
#o $erif& the BGP operation on I#%, i!!ue the s'o0 ip bgp comman*"
ITA# show ip +gp $P t,le er/ion i/ locl router I% i/ 1C2.168.1.1 Sttu/ coe/: / /uppre//e 4pe + +i/tor9 * li D ,e/t i - internl r RI-filure S Stle 4 4ultipt+ , ,c?up-pt+ f RT-ilter ,e/t-eternl itionl-pt+ c RI-co4pre//e 7rigin coe/: i - I$P e - $P E - inco4plete RPFI lition coe/: G li I inli ot foun
*D *D *D *D ITA#
et;or? 10.1.1.0=2@ 1!2.16.1.0=2@ 1C2.168.0.0 1C2.168.1.0
et op 10.0.0.1 1!2.16.0.1 0.0.0.0 0.0.0.0
3etric ocPrf Heig+t Pt+ 0 0 200 i 0 0 >00 i 0 >2!68 i 0 >2!68 i
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
/hat i! the local router ID= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> #he local router ID i! 1+0"1?"1"1" /hich table $er!ion i! *i!pla&e*= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> #he table $er!ion *i!pla&e* i! ." If there were an& mi!configuration! that were later correcte*, thi! $alue ma& be higher " %n a!teri!9 '@( next to a route in*icate! that it i! $ali*" %n angle brac9et 'A( in*icate! that the route ha! been !electe* a! the be!t route" b" #o $erif& the operation of IP1, i!!ue the s'o0 ip bgp comman*"
ISP1# show ip +gp $P t,le er/ion i/ locl router I% i/ 10.1.1.1 Sttu/ coe/: / /uppre//e 4pe + +i/tor9 * li D ,e/t i - internl r RI-filure S Stle 4 4ultipt+ , ,c?up-pt+ f RT-ilter ,e/t-eternl itionl-pt+ c RI-co4pre//e 7rigin coe/: i - I$P e - $P E - inco4plete RPFI lition coe/: G li I inli ot foun
*D *D *D *D ISP1#
et;or? 10.1.1.0=2@ 1!2.16.1.0=2@ 1C2.168.0.0 1C2.168.1.0
et op 0.0.0.0 10.0.0.2 10.0.0.2 10.0.0.2
3etric ocPrf Heig+t Pt+ 0 >2!68 i 0 100 >00 i 0 0 100 i 0 0 100 i
/hich table $er!ion i! *i!pla&e* an* i! it the !ame a! the BGP table $er!ion for I#%= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> #he table $er!ion *i!pla&e* i! ., which i! the !ame a! *i!pla&e* for I#%" )rom IP1, what i! the path to networ9 170"1"1"250= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> #he path i! through % 122 'I#%( an* % 22 'IP0(" c"
n the IP1 router, i!!ue the s'uto0n comman* on Loopbac92" #hen on I#%, i!!ue the s'o0 ip bgp comman* again"
ISP1(config)# interface loop+ack 0 ISP1(config-if)# shutdown ISP1(config-if)# ITA# show ip +gp $P t,le er/ion i/ 6 locl router I% i/ 1C2.168.1.1 Sttu/ coe/: / /uppre//e 4pe + +i/tor9 * li D ,e/t i - internl r RI-filure S Stle 4 4ultipt+ , ,c?up-pt+ f RT-ilter ,e/t-eternl itionl-pt+ c RI-co4pre//e 7rigin coe/: i - I$P e - $P E - inco4plete RPFI lition coe/: G li I inli ot foun *D *D
et;or? 1!2.16.1.0=2@ 1C2.168.0.0
et op 1!2.16.0.1 0.0.0.0
3etric ocPrf Heig+t Pt+ 0 0 >00 i 0 >2!68 i
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page . of 1.
CCNPv7 ROUTE
*D 1C2.168.1.0 ITA#
Lab 7-1, Configuring BGP with Default Routing
0.0.0.0
0
>2!68 i
/hich table $er!ion i! *i!pla&e*= /h&= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> #he table $er!ion *i!pla&e* i! an increment of the la!t one, which i! in the example" #he s'uto0n comman* cau!e! a routing table up*ate, !o the $er!ion !houl* be one higher than the la!t" /hat happene* to the route for networ9 12"1"1"250= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> It i! no longer in the BGP table becau!e interface Lo2 on IP1 i! *own" *"
Bring IP1 router Loopbac92 bac9 up b& i!!uing the no s'uto0n comman*"
ISP1(config)# interface loop+ack 0 ISP1(config-if)# no shutdown ISP1(config-if)# e" n I#%, i!!ue the s'o0 ip bgp neig'bors comman*" #he following i! a partial !ample output of the comman* !howing neighbor 170"1"2"1"
ITA# show ip +gp neigh+ors $P neig+,or i/ 10.0.0.1 re4ote AS 200 eternl lin? $P er/ion @ re4ote router I% 10.1.1.1 $P /tte /t,li/+e up for 00:20:@! /t re 00:00:@C l/t ;rite 00:00:@1 +ol ti4e i/ 180 ?eeplie interl i/ 60 /econ/ eig+,or /e//ion/: 1 ctie i/ not 4ulti/e//ion cp,le (i/,le) eig+,or cp,ilitie/: Route refre/+: erti/e n receie(ne;) our-octet/ AS 'p,ilit9: erti/e n receie Are// f4il9 IP@ nic/t: erti/e n receie n+nce Refre/+ 'p,ilit9: erti/e n receie 3ulti/e//ion 'p,ilit9: Stteful /;itc+oer /upport en,le: 7 for /e//ion 1 3e//ge /tti/tic/: InJ ept+ i/ 0 7utJ ept+ i/ 0 Sent Rc 7pen/: 1 1 otifiction/: 0 0 pte/: 1 Feeplie/: 1 1! Route Refre/+: 0 0 Totl: 21 1C %efult 4ini4u4 ti4e ,et;een erti/e4ent run/ i/ >0 /econ/ Koutput o4itteD Ba!e* on the output of thi! comman*, what i! the BGP !tate between thi! router an* IP0= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
#he BGP !tate i! e!tabli!he*" ow long ha! thi! connection been up= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>> #he connection ha! been up for 22027" ';our an!wer will mo!t li9el& be *ifferent"(
#tep 2! Con%igure route %ilters& a" Chec9 the IP0 routing table u!ing the s'o0 ip route comman*" IP0 !houl* ha$e a route that belong! to IP1, networ9 12"1"1"2"
ISP2# show ip route Koutput o4itteD
' ' ISP2#
10.0.0.0=2@ i/ /u,nette 1 /u,net/ 10.1.1.0 20=0B i 1!2.16.0.2 00:0C:26 1!2.16.0.0=16 i/ ri,l9 /u,nette @ /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.1=>2 i/ irectl9 connecte Seril0=0=1 1!2.16.1.0=2@ i/ irectl9 connecte oop,c?0 1!2.16.1.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.0.0=2@ 20=0B i 1!2.16.0.2 00:28:0 1C2.168.1.0=2@ 20=0B i 1!2.16.0.2 00:28:0
If I#% a*$erti!e! a route belonging to IP1, IP0 in!tall! that route in it! table" IP0 might then attempt to route tran!it traffic through the I#%" #hi! woul* ma9e I#% a tran!it router" % traceroute to IP1
ISP2# traceroute 10.1.1.1 T9pe e/cpe /eLuence to ,ort. Trcing t+e route to 10.1.1.1 GR info: (rf in n4e=i rf out n4e=i) 1 1!2.16.0.2 8 4/ec @ 4/ec 8 4/ec 2 * * * > * * * @ * * * Kcontrol-/+ift-6 to ,re?D ISP2# #he traceroute +$&+&+&+ fail! becau!e IP1 *oe! not ha$e a route to the !ource IP$ a**re!! of the traceroute, 170"1"2"1" It i! common in BGP networ9! not to a*$erti!e the lin9! between pro$i*er! in BGP" % traceroute u!ing the !ource IP$ a**re!! of IP0< Lo2 interface i! !ucce!!ful, !howing that I#% i! a tran!it router for thi! networ9"
ISP2# traceroute 10.1.1.1 source loop+ack0 T9pe e/cpe /eLuence to ,ort. Trcing t+e route to 10.1.1.1 GR info: (rf in n4e=i rf out n4e=i) 1 1!2.16.0.2 8 4/ec @ 4/ec 8 4/ec 2 10.0.0.1 12 4/ec * 12 4/ec ISP2# b"
Configure the I#% router !o that it a*$erti!e! onl& I#% networ9! 1+0"1?"2"2 an* 1+0"1?"1"2 to both pro$i*er!" n the I#% router, configure the following acce!! li!t"
ITA(config)# access-list 1 permit 1(.1)&.0.0 0.0.1.!! 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 7 of 1.
CCNPv7 ROUTE c"
Lab 7-1, Configuring BGP with Default Routing
%ppl& thi! acce!! li!t a! a route filter u!ing the istribute*list 9e&wor* with the BGP neig'bor !tatement"
ITA(config)# router +gp 100 ITA(config-router)# neigh+or 10.0.0.1 distri+ute-list 1 out ITA(config-router)# neigh+or 1*.1).0.1 distri+ute-list 1 out *"
Chec9 the routing table for IP0 again" #he route to 12"1"1"2, IP1, !houl* !till be in the table"
ISP2# show ip route Koutput o4itteD
' ' ISP2#
10.0.0.0=2@ i/ /u,nette 1 /u,net/ 10.1.1.0 20=0B i 1!2.16.0.2 00:2:1@ 1!2.16.0.0=16 i/ ri,l9 /u,nette @ /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.1=>2 i/ irectl9 connecte Seril0=0=1 1!2.16.1.0=2@ i/ irectl9 connecte oop,c?0 1!2.16.1.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.0.0=2@ 20=0B i 1!2.16.0.2 00:@>:> 1C2.168.1.0=2@ 20=0B i 1!2.16.0.2 00:@>:>
e" Return to I#% an* i!!ue the clear ip bgp 3 comman*" /ait until the router! reach the e!tabli!he* !tate, which might ta9e !e$eral !econ*!, an* then rechec9 the IP0 routing table" #he route to IP1, networ9 12"1"1"2, !houl* no longer be in the routing table for IP0, an* the route to IP0, networ9 170"1"1"2, !houl* not be in the routing table for IP1"
ITA# clear ip +gp ITA# *Sep 8 16:@!:2.1!C: "$P--A%&'A$: neig+,or 10.0.0.1 %o;n /er re/et *Sep 8 16:@!:2.1!C: "$PMSSSI7--A%&'A$: neig+,or 10.0.0.1 IP@ nic/t topolog9 ,/e re4oe fro4 /e//ion /er re/et *Sep 8 16:@!:2.1!C: "$P--A%&'A$: neig+,or 1!2.16.0.1 %o;n /er re/et *Sep 8 16:@!:2.1!C: "$PMSSSI7--A%&'A$: neig+,or 1!2.16.0.1 IP@ nic/t topolog9 ,/e re4oe fro4 /e//ion /er re/et *Sep 8 16:@!:2.81: "$P--A%&'A$: neig+,or 10.0.0.1 p *Sep 8 16:@!:2.81C: "$P--A%&'A$ ITA#: neig+,or 1!2.16.0.1 p ITA# Note #he clear ip bgp 3 comman* i! *i!rupti$e becau!e it completel& re!et! all BGP a*acencie!" #hi! i! acceptable in a lab en$ironment but coul* be problematic in a pro*uction networ9" In!tea*, if onl& a change of inboun*5outboun* routing policie! i! to be p erforme*, it i! !ufficient to i!!ue the clear ip bgp 3 in or clear ip bgp 3 out comman*!& #he!e comman*! perform onl& a new BGP *ataba!e !&nchroniEation without the *i!rupti$e effect! of a complete BGP a*acenc& re!et" %ll current Ci!co I $er!ion! !upport the route refre!h capabilit& that replace! the inboun* !oft reconfiguration feature that pre$iou!l& ha* to be configure* on a per-neighbor ba!i!"
ISP2# show ip route Koutput o4itteD
' '
1!2.16.0.0=16 i/ 1!2.16.0.0=>0 1!2.16.0.1=>2 1!2.16.1.0=2@ 1!2.16.1.1=>2
ri,l9 /u,nette @ /u,net/ > 4/?/ i/ irectl9 connecte Seril0=0=1 i/ irectl9 connecte Seril0=0=1 i/ irectl9 connecte oop,c?0 i/ irectl9 connecte oop,c?0
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page ? of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
1C2.168.0.0=2@ 20=0B i 1!2.16.0.2 00:00:06 1C2.168.1.0=2@ 20=0B i 1!2.16.0.2 00:00:06 ISP2# ISP1# show ip route Koutput o4itteD 10.0.0.0=8 i/ ri,l9 /u,nette @ /u,net/ > 4/?/ ' 10.0.0.0=>0 i/ irectl9 connecte Seril0=0=0 10.0.0.1=>2 i/ irectl9 connecte Seril0=0=0 ' 10.1.1.0=2@ i/ irectl9 connecte oop,c?0 10.1.1.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.0.0=2@ 20=0B i 10.0.0.2 00:00:@2 1C2.168.1.0=2@ 20=0B i 10.0.0.2 00:00:@2 ISP1#
#tep 4! Con%igure pri(ary an backup routes using %loating static routes& /ith bi*irectional communication e!tabli!he* with each IP $ia BGP, configure the primar& an* bac9up route!" #hi! can be *one with floating !tatic route! or BGP" a"
I!!ue the s'o0 ip route comman* on the I#% router"
ITA# show ip route Koutput o4itteD $te;9 of l/t re/ort i/ not /et
' ' ' ' ITA#
10.0.0.0=8 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 10.0.0.0=>0 i/ irectl9 connecte Seril0=0=0 10.0.0.2=>2 i/ irectl9 connecte Seril0=0=0 10.1.1.0=2@ 20=0B i 10.0.0.1 00:0>:1 1!2.16.0.0=16 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.2=>2 i/ irectl9 connecte Seril0=0=1 1!2.16.1.0=2@ 20=0B i 1!2.16.0.1 00:0>:1 1C2.168.0.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.0.0=2@ i/ irectl9 connecte oop,c?0 1C2.168.0.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.1.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.1.0=2@ i/ irectl9 connecte oop,c?1 1C2.168.1.1=>2 i/ irectl9 connecte oop,c?1
:otice that there i! no gatewa& of la!t re!ort *efine*" #hi! i! a problem becau!e I#% i! the bor*er router for the corporate networ9" b"
Configure !tatic route! to reflect the polic& that IP1 i! the primar& pro$i*er an* that IP0 act! a! the bac9up b& !pecif&ing a lower *i!tance metric for the route to IP1 '012( a! compare* to the bac9up route to IP0 '*i!tance metric 002("
ITA(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.1 10 ITA(config)# ip route 0.0.0.0 0.0.0.0 1*.1).0.1 0 c"
Ferif& that a *efault route i! *efine* u!ing the s'o0 ip route comman*"
ITA# show ip route Koutput o4itteD 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page + of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
$te;9 of l/t re/ort i/ 10.0.0.1 to net;or? 0.0.0.0 S* ' ' ' ' ITA# *"
0.0.0.0=0 210=0B i 10.0.0.1 10.0.0.0=8 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 10.0.0.0=>0 i/ irectl9 connecte Seril0=0=0 10.0.0.2=>2 i/ irectl9 connecte Seril0=0=0 10.1.1.0=2@ 20=0B i 10.0.0.1 00:0:>8 1!2.16.0.0=16 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.2=>2 i/ irectl9 connecte Seril0=0=1 1!2.16.1.0=2@ 20=0B i 1!2.16.0.1 00:0:>8 1C2.168.0.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.0.0=2@ i/ irectl9 connecte oop,c?0 1C2.168.0.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.1.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.1.0=2@ i/ irectl9 connecte oop,c?1 1C2.168.1.1=>2 i/ irectl9 connecte oop,c?1
#e!t thi! *efault route b& creating an una*$erti!e* loopbac9 on the router for IP1"
ISP1# config t ISP1(config)# interface loop+ack 100 ISP1(config-if)# ip address 1(.1)&.100.1 !!.!!.!!.0 e"
I!!ue the s'o0 ip route comman* to en!ure that the newl& a**e* 1+0"1?"122"2 50 networ9 *oe! not appear in the routing table"
ITA# show ip route Koutput o4itteD $te;9 of l/t re/ort i/ 10.0.0.1 to net;or? 0.0.0.0 S* ' ' ' ' ITA# f"
0.0.0.0=0 210=0B i 10.0.0.1 10.0.0.0=8 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 10.0.0.0=>0 i/ irectl9 connecte Seril0=0=0 10.0.0.2=>2 i/ irectl9 connecte Seril0=0=0 10.1.1.0=2@ 20=0B i 10.0.0.1 00:0!:08 1!2.16.0.0=16 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.2=>2 i/ irectl9 connecte Seril0=0=1 1!2.16.1.0=2@ 20=0B i 1!2.16.0.1 00:0!:08 1C2.168.0.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.0.0=2@ i/ irectl9 connecte oop,c?0 1C2.168.0.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.1.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.1.0=2@ i/ irectl9 connecte oop,c?1 1C2.168.1.1=>2 i/ irectl9 connecte oop,c?1
In exten*e* ping mo*e, ping the IP1 loopbac9 1 interface 1+0"1?"122"1 with the !ource originating from the I#% loopbac9 1 interface 1+0"1?"1"1"
ITA# ping Protocol ipB: Trget IP re//: 1(.1)&.100.1 Repet count B: %tgr4 /iNe 100B: 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 12 of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
Ti4eout in /econ/ 2B: tene co44n/ nB: y Source re// or interfce: 1(.1)&.1.1 T9pe of /erice 0B: Set % ,it in IP +eerE noB: Glite repl9 tE noB: %t pttern 0A'%B: oo/e Strict Recor Ti4e/t4p Ger,o/enoneB: S;eep rnge of /iNe/ nB: T9pe e/cpe /eLuence to ,ort. Sening 100-,9te I'3P c+o/ to 1C2.168.100.1 ti4eout i/ 2 /econ/: Pc?et /ent ;it+ /ource re// of 1C2.168.1.1 OOOOO Succe// rte i/ 100 percent (=) roun-trip 4in=g=4 12=1@=16 4/ ITA# Note ;ou can b&pa!! exten*e* ping prompte* mo*e an* ping while !pecif&ing a !ource a**re!! u!ing one of the!e abbre$iate* comman*!
ITA# ping 1(.1)&.100.1 source 1(.1)&.1.1 or
ITA# ping 1(.1)&.100.1 source Lo1 Note #e!ting the *efault route b& creating an una*$erti!e* networ9 on IP1 an* pinging it wor9! onl& becau!e the *efault route al!o point! towar* IP1" If the preferre* *efault route pointe* towar* IP0, the ping to that una*$erti!e* networ9 on IP1 woul* not !uccee*" If the lin9 to IP1 faile*, the * efault route to IP0 woul* become acti$e, but the ping! woul* be !ucce!!ful onl& if IP1 an* IP0 ha$e another wor9ing interconnection an* appropriate BGP peering between them, which i! currentl& not the ca!e"
#tep 7! Using B-P to propagate a e%ault route& a"
IP router will be u!e* to inect a *efault route $ia BGP" )ir!t, remo$e the current *efault route! on I#%"
ITA(config)# no ip route 0.0.0.0 0.0.0.0 10.0.0.1 10 ITA(config)# no ip route 0.0.0.0 0.0.0.0 1*.1).0.1 0 b"
:ext, configure the IP1 router to !en* a *efault route to it! neighbor, the I#% router" #hi! comman* *oe! not reuire the pre!ence of 2"2"2"2 in the local IP1 router"
ISP1(config)# router +gp 00 ISP1(config-router)# neigh+or 10.0.0. default-originate ISP1(config-router)# c"
Ferif& that the *efault route wa! recei$e* b& I#% u!ing BGP"
ITA# show ip route Koutput o4itteD $te;9 of l/t re/ort i/ 10.0.0.1 to net;or? 0.0.0.0 * ' '
0.0.0.0=0 20=0B i 10.0.0.1 00:01:@> 10.0.0.0=8 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 10.0.0.0=>0 i/ irectl9 connecte Seril0=0=0 10.0.0.2=>2 i/ irectl9 connecte Seril0=0=0 10.1.1.0=2@ 20=0B i 10.0.0.1 00:06:1 1!2.16.0.0=16 i/ ri,l9 /u,nette > /u,net/ > 4/?/ 1!2.16.0.0=>0 i/ irectl9 connecte Seril0=0=1 1!2.16.0.2=>2 i/ irectl9 connecte Seril0=0=1
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 11 of 1.
CCNPv7 ROUTE
' ' ITA#
Lab 7-1, Configuring BGP with Default Routing
1!2.16.1.0=2@ 20=0B i 1!2.16.0.1 00:06:1 1C2.168.0.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.0.0=2@ i/ irectl9 connecte oop,c?0 1C2.168.0.1=>2 i/ irectl9 connecte oop,c?0 1C2.168.1.0=2@ i/ ri,l9 /u,nette 2 /u,net/ 2 4/?/ 1C2.168.1.0=2@ i/ irectl9 connecte oop,c?1 1C2.168.1.1=>2 i/ irectl9 connecte oop,c?1
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 10 of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
5evice Con%igurations 6Instructor version Initial Con%igurations Router I#P+ 6R+ +o/tn4e ISP1 O interfce o0 e/cription ISP1 Internet et;or? ip re// 10.1.1.1 2.2.2.0 O interfce Seril0=0=0 e/cription ISP1 -D ITA ip re// 10.0.0.1 2.2.2.22 cloc? rte 128000 no /+uto;n O en
Router IT/ 6R, +o/tn4e ITA O interfce o0 e/cription 'ore router net;or? lin? 1 ip re// 1C2.168.0.1 2.2.2.0 O interfce o1 e/cription 'ore router net;or? lin? 2 ip re// 1C2.168.1.1 2.2.2.0 O interfce Seril0=0=0 e/cription ITA -D ISP1 ip re// 10.0.0.2 2.2.2.22 no /+uto;n interfce Seril0=0=1 e/cription ITA -D ISP2 ip re// 1!2.16.0.2 2.2.2.22 cloc? rte 128000 no /+uto;n O en
Router I#P, 6R. +o/tn4e ISP2 O interfce o0 e/cription ISP2 Internet et;or? ip re// 1!2.16.1.1 2.2.2.0 O interfce Seril0=0=1 e/cription ISP2 -D ITA 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 1 of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
ip re// 1!2.16.0.1 2.2.2.22 no /+uto;n O en
5evice Con%igurations 6Instructor version Router I#P+ 6R+ +o/tn4e ISP1 O interfce oop,c?0 e/cription ISP1 Internet net;or? ip re// 10.1.1.1 2.2.2.0 O interfce oop,c?100 ip re// 1C2.168.100.1 2.2.2.0 O interfce Seril0=0=0 e/cription ISP1 -D ITA ip re// 10.0.0.1 2.2.2.22 cloc? rte 128000 no /+uto;n O router ,gp 200 ,gp log-neig+,or-c+nge/ net;or? 10.1.1.0 4/? 2.2.2.0 neig+,or 10.0.0.2 re4ote-/ 100 neig+,or 10.0.0.2 efult-originte O en
Router IT/ 6R, +o/tn4e ITA O interfce oop,c?0 e/cription 'ore router net;or? lin? 1 ip re// 1C2.168.0.1 2.2.2.0 O interfce oop,c?1 e/cription 'ore router net;or? lin? 2 ip re// 1C2.168.1.1 2.2.2.0 O interfce Seril0=0=0 e/cription ITA -D ISP1 ip re// 10.0.0.2 2.2.2.22 no /+uto;n O interfce Seril0=0=1 e/cription ITA -D ISP2 ip re// 1!2.16.0.2 2.2.2.22 cloc? rte 128000 no /+uto;n O 6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 1 of 1.
CCNPv7 ROUTE
Lab 7-1, Configuring BGP with Default Routing
router ,gp 100 ,gp log-neig+,or-c+nge/ net;or? 1C2.168.0.0 net;or? 1C2.168.1.0 neig+,or 10.0.0.1 re4ote-/ 200 neig+,or 10.0.0.1 i/tri,ute-li/t 1 out neig+,or 1!2.16.0.1 re4ote-/ >00 neig+,or 1!2.16.0.1 i/tri,ute-li/t 1 out O cce//-li/t 1 per4it 1C2.168.0.0 0.0.1.2 O en
Router I#P, 6R. +o/tn4e ISP2 O interfce oop,c?0 e/cription ISP2 Internet et;or? ip re// 1!2.16.1.1 2.2.2.0 O interfce Seril0=0=1 e/cription ISP2 -D ITA ip re// 1!2.16.0.1 2.2.2.22 no /+uto;n O router ,gp >00 ,gp log-neig+,or-c+nge/ net;or? 1!2.16.1.0 4/? 2.2.2.0 neig+,or 1!2.16.0.2 re4ote-/ 100 O en
6 021 Ci!co an*5or it! affiliate!" %ll right! re!er$e*" #hi! *ocument i! Ci!co Public"
Page 1. of 1.