100% found this document useful (1 vote)
395 views20 pages

Ccie Routing Switching PDF

Uploaded by

thuralwin85
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
395 views20 pages

Ccie Routing Switching PDF

Uploaded by

thuralwin85
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Advanced CCIE

Routing & Switching


Workbook
TECHNOLOGY FOCUSED

WWW.NET-WORKBOOKS.COM
CCIERoutingandSwitching

NarbikKocharians
CCIE#12410
R&S,Security,SP

BGP

Answers

CCIER&SbyNarbikKocharians BGP AnswersPage 1 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
Lab1EstablishingNeighborAdjacency

R1 R2

.1 .2

10.1.1.0/24
.3 .4

R3 R4

LabSetup:

TheF0/0interfaceofthesefourroutersshouldbeconfiguredinVLAN100.

ConfiguretheroutersaccordingtothefollowingIPaddressingchart:

IPAddressingchart:

Routers Interface/IPaddress ASnumber


R1 F0/0=10.1.1.1/24 AS100
Lo0=1.1.1.1/8
Lo1=192.168.1.1/24
R2 F0/0=10.1.1.2/24 AS100
Lo0=2.2.2.2/8
Lo1=192.168.2.2/24
R3 F0/0=10.1.1.3/24 AS100
Lo0=3.3.3.3/8
Lo1=192.168.3.3/24
R4 F0/0=10.1.1.4/24 AS100
Lo0=4.4.4.4/8
Lo1=192.168.4.4/24

ThesetupcanbedownloadedfromtheCDprovidedwiththisworkbook.
CCIER&SbyNarbikKocharians BGP AnswersPage 2 of19
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
Task1

ConfiguretheseroutersinAS100,theseroutersshouldcreateanIBGPpeersessions
between them,ensurethattheseroutersadvertisetheirLoopback0interfaceinthisAS.

OnR1
R1(config)#routerbgp100
R1(configrouter)#neighbor10.1.1.2remoteas100
R1(configrouter)#neighbor10.1.1.3remoteas100
R1(configrouter)#neighbor10.1.1.4remoteas100
R1(configrouter)#nosyn
R1(configrouter)#network1.0.0.0

OnR2
R2(config)#routerbgp100
R2(configrouter)#neighbor10.1.1.1remoteas100
R2(configrouter)#neighbor10.1.1.3remoteas100
R2(configrouter)#neighbor10.1.1.4remoteas100
R2(configrouter)#nosyn
R2(configrouter)#network2.0.0.0

OnR3
R3(config)#routerbgp100
R3(configrouter)#neighbor10.1.1.1remoteas100
R3(configrouter)#neighbor10.1.1.2remoteas100
R3(configrouter)#neighbor10.1.1.4remoteas100
R3(configrouter)#nosyn
R3(configrouter)#network3.0.0.0

OnR4
R1(config)#routerbgp100
R4(configrouter)#neighbor10.1.1.1remoteas100
R4(configrouter)#neighbor10.1.1.2remoteas100
R4(configrouter)#neighbor10.1.1.3remoteas100
R4(configrouter)#nosyn
R4(configrouter)#network4.0.0.0

Toverifytheconfiguration:

CCIER&SbyNarbikKocharians BGP AnswersPage 3 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
OnR1

R1#Showipbgp
BGPtableversionis5,localrouterIDis1.1.1.1
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHop Metric LocPrf Weight Path


*>1.0.0.0 0.0.0.0 0 32768 i
*>i2.0.0.010.1.1.2 0 100 0 i
*>i3.0.0.010.1.1.3 0 100 0 i
*>i4.0.0.0 10.1.1.4 0 100 0 i

* ValidTableEntry.
> ThebestentryforthePrefix.
S Theentryissuppressed.
i TheentrywaslearnedviaanIBGP,thisistheitotheleftofthenetwork
column.Theletteriunderthepathcolumn,specifiestheoriginofthe
route.
Network Prefixentryforthenetwork,ifthemaskisomitted,thedefaultmaskis
assumed.
NextHop ThenexthopsIPaddresstogettothespecifiednetworkaddress,ifitis
0.0.0.0itisaprefixthatisadvertisedbythelocalrouter.
Metric ThisistheInterasmetric,ortheMEDattributewhichis0bydefault.
LocPrf Thisisthelocalpreferenceattribute,usedintherouteselectionprocess
carriedwithinthelocalASONLY.With thelocalpref attributethehigher
valuehasmorepreference.TheprefixesthatarereceivedfromapeerAS
aretaggedwithalocalprefvalueof 100 thisvaluecanbechangedto
influencethebestpathselectionprocess.Thechangedvalueisonly
advertisedtoIBGPpeers. Whenthelocalrouteradvertisesaprefix,no
localprefvalueisseenintheoutputoftheShowipbgpcommand.The
defaultvalueof100canbechangedbytheBGPdefaultlocal
preferencecommand.
Weight Theprefixesthatarereceivedviaaneighbor(IBGPorEBGP) willhavea
weightof0,buttheprefixesthatareoriginatedbythelocalrouterwillhave
aweightvalueof32768.Thisattributeoverridesanyotherattributefor
performingbestpathdetermination.
Path IftheprefixeswereoriginatedorlearnedviaanIBGPneighbor,thepath
columnwillhavetheletter iwithoutanyASN.Iftheprefixwaslearned
throughanotherAS,thenthiscolumnwillhavetheASnumber/sfollowed
bytheletter i,theASNsindicatetheASesthataprefixhastraversed.The
maximumnumberofASesthataprefixcantraversethroughis255.

CCIER&SbyNarbikKocharians BGP AnswersPage 4 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
Task2

Reconfiguretheroutersasfollows:
R2,R3andR4shouldbeconfiguredinAS200,300and400respectively.Configurea
fullmesh peersessionbetween theserouters.

OnR1

R1(config)#routerbgp100
R1(configrouter)#neighbor10.1.1.2remoteas200
R1(configrouter)#neighbor10.1.1.3remoteas300
R1(configrouter)#neighbor10.1.1.4remoteas400
R1(configrouter)#noauto
R1(configrouter)#network1.0.0.0

OnR2

R2(config)#routerbgp200
R2(configrouter)#neighbor10.1.1.1remoteas100
R2(configrouter)#neighbor10.1.1.3remoteas300
R2(configrouter)#neighbor10.1.1.4remoteas400
R2(configrouter)#noauto
R2(configrouter)#network2.0.0.0

OnR3

R3(config)#routerbgp300
R3(configrouter)#neighbor10.1.1.1remoteas100
R3(configrouter)#neighbor10.1.1.2remoteas200
R3(configrouter)#neighbor10.1.1.4remoteas400
R3(configrouter)#noauto
R3(configrouter)#network3.0.0.0

OnR4

R1(config)#routerbgp400
R4(configrouter)#neighbor10.1.1.1remoteas100
R4(configrouter)#neighbor10.1.1.2remoteas200
R4(configrouter)#neighbor10.1.1.3remoteas300
R4(configrouter)#noauto
R4(configrouter)#network4.0.0.0

Toverifytheconfiguration:
CCIER&SbyNarbikKocharians BGP AnswersPage 5 of19
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
On R1

R1#showipbgp

BGPtableversionis5,localrouterIDis1.1.1.1
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

Network NextHopMetricLocPrfWeightPath
*>1.0.0.00.0.0.0032768i
*>2.0.0.010.1.1.200200i
*10.1.1.20300200i
*10.1.1.20400200i
*3.0.0.010.1.1.30200300i
*>10.1.1.300300i
*10.1.1.30400300i
*4.0.0.010.1.1.4 0200400i
*10.1.1.40300400i
*>10.1.1.400400i

Notethelocalpreferenceattributeisnotassignedonanyoftheprefixesthisis
becausetheprefixesareadvertisedbyanEBGPpeer. Thebestselectioninthe
aboveoutputisbasedontheshortestASN.
TheMEDvalue(Metriccolumn)iszerofor someoftheprefixes,andonothers,itis
NOTassigned,thisisbecausewhentheprefixisadvertisedbytheoriginatingAS,
themetricissetto0,butwhenthesameprefixisadvertisedbyanotherAS,the
MEDvalueisremoved.

Task3

Reconfiguretherouters inAS100 usethefollowingpolicyfortheirIBGPpeersessions:

Authenticationmustbeenabledbetweenthepeersusingciscoas thepassword.
ThepeersessionmustbeestablishedbasedontheLoopback0sIPaddress.
TheseroutersshouldONLYadvertisetheirLoopback1inBGP.
ProvideNLRItoLoopback0interfaceusingRIPv2.
Thepeersessionbetweentheroutersshouldonlybeestablishediftheyare
runningBGPversion4.
Usepeergroupstoaccomplishthistask.

CCIER&SbyNarbikKocharians BGP AnswersPage 6 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
CiscosimplementationofBGP inIOS12.0(5)TorearlierreleasessupportsBGP
versions2,3,and4,withdynamicnegotiationdowntoVersion2.ButinIOSversion
12.0(6)Torlater,Ciscoroutersonlysupportversion4and theydonotsupport
dynamicnegotiationdowntoVersion2.ThereasonyoumayseetheNeighbor
versioncommandconfiguredonsomeCiscoroutersisbecausemaybetherouteris
connectingandestablishingapeersessionwithaNonCiscorouter,orthe
administratorisnotawareofthisfact.

OnR1

R1(config)#routerbgp100
R1(configrouter)#noau
R1(configrouter)#net192.168.1.0

R1(configrouter)#neighborTSTpeergroup
R1(configrouter)#neighborTSTremoteas100
R1(configrouter)#neighborTSTupdatesourcelo0
R1(configrouter)#neighborTSTversion4
R1(configrouter)#neighborTSTpasswordcisco

R1(configrouter)#neighbor2.2.2.2peergroupTST
R1(configrouter)#neighbor3.3.3.3peergroupTST
R1(configrouter)#neighbor4.4.4.4peergroupTST

R1(configrouter)#routerrip
R1(configrouter)#noau
R1(configrouter)#ver2
R1(configrouter)#netw10.0.0.0
R1(configrouter)#netw1.0.0.0

OnR2

R2(config)#routerbgp100
R2(configrouter)#noau
R2(configrouter)#netw192.168.2.0

R2(configrouter)#neighborTSTpeergroup
R2(configrouter)#neighborTSTremoteas100
R2(configrouter)#neighborTSTupdatesourcelo0
R2(configrouter)#neighborTSTversion4
R2(configrouter)#neighborTSTpasswordcisco

R2(configrouter)#neighbor1.1.1.1peergroupTST
R2(configrouter)#neighbor3.3.3.3peergroupTST

CCIER&SbyNarbikKocharians BGP AnswersPage 7 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
R2(configrouter)#neighbor4.4.4.4peergroupTST

R2(configrouter)#routerrip
R2(configrouter)#noau
R2(configrouter)#ver2
R2(configrouter)#netw10.0.0.0
R2(configrouter)#netw2.0.0.0

OnR3

R3(config)#routerbgp100
R3(configrouter)#noau
R3(configrouter)#network 192.168.3.0

R3(configrouter)#neighborTSTpeergroup
R3(configrouter)#neighborTSTremoteas100
R3(configrouter)#neighborTSTupdatesourcelo0
R3(configrouter)#neighborTSTversion4
R3(configrouter)#neighborTSTpasswordcisco

R3(configrouter)#neighbor1.1.1.1peergroupTST
R3(configrouter)#neighbor2.2.2.2peergroupTST
R3(configrouter)#neighbor4.4.4.4peergroupTST

R3(configrouter)#routerrip
R3(configrouter)#noau
R3(configrouter)#ver2
R3(configrouter)#netw10.0.0.0
R3(configrouter)#netw3.0.0.0

OnR4
R4(config)#routerbgp100
R4(configrouter)#noau
R4(configrouter)#network 192.168.4.0

R4(configrouter)#neighborTSTpeergroup
R4(configrouter)#neighborTSTremoteas100
R4(configrouter)#neighborTSTupdatesourcelo0
R4(configrouter)#neighborTSTversion4
R4(configrouter)#neighborTSTpasswordcisco

R4(configrouter)#neighbor1.1.1.1peergroupTST
R4(configrouter)#neighbor2.2.2.2peergroupTST
R4(configrouter)#neighbor3.3.3.3peergroupTST

CCIER&SbyNarbikKocharians BGP AnswersPage 8 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
R4(configrouter)#routerrip
R4(configrouter)#noau
R4(configrouter)#ver2
R4(configrouter)#netw10.0.0.0
R4(configrouter)#netw4.0.0.0

Toverifytheconfiguration:

OnR1
R1#Showipbgp

BGPtableversionis7,localrouterIDis1.1.1.1
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHopMetricLocPrfWeightPath
*>192.168.1.00.0.0.00 32768i
*>i192.168.2.02.2.2.201000i
*>i192.168.3.03.3.3.301000i
*>i192.168.4.04.4.4.401000i

Toverifytheconfiguration:

OnR1
R1#Showipbgppeergroup

BGPpeergroupisTST, remoteAS100
BGPversion4
Defaultminimumtimebetweenadvertisementrunsis0seconds

Foraddressfamily:IPv4Unicast
BGPneighborisTST,peergroupinternal,members:
2.2.2.23.3.3.34.4.4.4
Index0,Offset0,Mask0x0
Updatemessagesformatted0,replicated0
NumberofNLRIsintheupdatesent:max0,min0

NotetheoutputoftheShowipbgppeergrouprevealstheipaddressofthe
membersofthepeergroup.

Someofthebenefitsofpeergroups:
CCIER&SbyNarbikKocharians BGP AnswersPage 9 of19
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
PeergroupsprovideoptimizationofBGPconvergence,LetssayaBGP
speakerhas10IBGPpeersthatexchangefullBGProuting(200,000
prefixes),without thecreationofapeergroup,thelocalrouterhastogo
through2millionprefixes,whereas,ifthesamerouterwasconfiguredwitha
peergroup,therouterwouldonlygothrough200,000prefixes.

Itprovidesamechanismforpeersthathaveanidentical outboundpolicy.

Anotherbenefitofpeergroupsisthatit canreducetheadministrative
overheadbycuttingdownredundantconfigurationontherouters.

Task4

RemovetheBGPconfigurationfromtheroutersandreconfiguretheroutersinAS100
usingpeersession templatesyoushouldconfigurethefollowingtwotemplatesto
accomplishthistask:

Common Template:ThistemplateshouldcontaintheNeighborversion4and
Neighborpasswordcommand,thistemplateshouldbeappliedtoall
neighbors.

IBGPTemplate:ThistemplateshouldcontaintheNeighborUpdatesource
andNeighborremoteascommands.Thistemplateshouldbeappliedtoall
IBGPneighbors.

YoushouldadvertiseLoopback1interfaceinBGPandLoopback0shouldbeusedas
theIPaddressforestablishingthepeersessions.DONOTremoveRIPv2s
configuration.

CCIER&SbyNarbikKocharians BGP AnswersPage 10 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
OnR1

R1(config)#routerbgp100
R1(configrouter)#noau
R1(configrouter)#network192.168.1.0

R1(configrouter)#templatepeersession Common
R1(configrouterstmp)#passwordcisco
R1(configrouterstmp)#version4
R1(configrouterstmp)#exitpeersession

R1(configrouter)#templatepeersessionIBGP
R1(configrouterstmp)#inheritpeersession Common
R1(configrouterstmp)#updatesourcelo0
R1(configrouterstmp)#remoteas100
R1(configrouterstmp)#exitpeersession

R1(configrouter)#neighbor2.2.2.2inheritpeersessionIBGP
R1(configrouter)#neighbor3.3.3.3inheritpeersessionIBGP
R1(configrouter)#neighbor4.4.4.4inheritpeersessionIBGP

OnR2
R2(config)#routerbgp100
R2(configrouter)#noau
R2(configrouter)#network192.168.2.0

R2(configrouter)#templatepeersession Common
R2(configrouterstmp)#passwordcisco
R2(configrouterstmp)#version4
R2(configrouterstmp)#exitpeersession

R2(configrouter)#templatepeersessionIBGP
R2(configrouterstmp)#inheritpeersession Common
R2(configrouterstmp)#updatesourcelo0
R2(configrouterstmp)#remoteas100
R2(configrouterstmp)#exitpeersession

R2(configrouter)#neighbor1.1.1.1inheritpeersessionIBGP
R2(configrouter)#neighbor3.3.3.3inheritpeersessionIBGP
R2(configrouter)#neighbor4.4.4.4inheritpeersessionIBGP

OnR3

CCIER&SbyNarbikKocharians BGP AnswersPage 11 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
R3(config)#routerbgp100
R3(configrouter)#noau
R3(configrouter)#network192.168.3.0

R3(configrouter)#templatepeersession Common
R3(configrouterstmp)#passwordcisco
R3(configrouterstmp)#version4
R3(configrouterstmp)#exitpeersession

R3(configrouter)#templatepeersessionIBGP
R3(configrouterstmp)#inheritpeersession Common
R3(configrouterstmp)#updatesourcelo0
R3(configrouterstmp)#remoteas100
R3(configrouterstmp)#exitpeersession

R3(configrouter)#neighbor1.1.1.1inheritpeersessionIBGP
R3(configrouter)#neighbor2.2.2.2inheritpeersessionIBGP
R3(configrouter)#neighbor4.4.4.4inheritpeersessionIBGP

OnR4
R4(config)#routerbgp100
R4(configrouter)#noau
R4(configrouter)#network192.168.4.0

R4(configrouter)#templatepeersession Common
R4(configrouterstmp)#passwordcisco
R4(configrouterstmp)#version4
R4(configrouterstmp)#exitpeersession

R4(configrouter)#templatepeersessionIBGP
R4(configrouterstmp)#inheritpeersession Common
R4(configrouterstmp)#updatesourcelo0
R4(configrouterstmp)#remoteas100
R4(configrouterstmp)#exitpeersession

R4(configrouter)#neighbor1.1.1.1inheritpeersessionIBGP
R4(configrouter)#neighbor2.2.2.2inheritpeersessionIBGP
R4(configrouter)#neighbor3.3.3.3inheritpeersessionIBGP

Toverifytheconfiguration:

CCIER&SbyNarbikKocharians BGP AnswersPage 12 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
OnR1

R1#Showipbgp

BGPtableversionis5,localrouterIDis192.168.1.1
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

Network NextHopMetric LocPrf Weight Path


*>192.168.1.00.0.0.00 32768 i
*>i192.168.2.02.2.2.20 100 0 i
*>i192.168.3.03.3.3.30 100 0 i
*>i192.168.4.04.4.4.40 100 0 i

Peersessiontemplatecanbeusedtoapplysessionspecificconfiguration
commandstoagroupofneighborsthatshareacommonsessionconfiguration.

Peersessiontemplatescanbereusedandtheysupportinheritanceofanother
peersessiontemplate/s,thismeansthatnestedpeersessionscanalsobeused.

PeersessiontemplatessupportsessionspecificcommandsONLY.

Task5

ReconfiguretheroutersbasedonthefollowingIPaddressspaceanddiagram.

LabSetup:
ConfigureF0/0interfaceofR1andR2areinVLAN12andtheF0/1interfaceof
R2,R3andR4inVLAN234.
ConfigureIPaddressingontheroutersusingtheIPaddressingchartonthenext
page.

ThesetupcanbedownloadedfromtheCDprovidedwiththisworkbook.

CCIER&SbyNarbikKocharians BGP AnswersPage 13 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
10.1.12.0/24

F0/0 .1 F0/0 .2
AS200
R1 R2
.2
AS100 F0/1

10.1.234.0/24

F0/1 .3 F0/1 .4

R3 R4

AS200 AS200

IPAddressingchart:

Router ASnumber Interface/IPaddress


R1 AS100 Lo0=1.1.0.1/24
Lo1=1.1.1.1/24
Lo2=1.1.2.1/24
Lo3=1.1.3.1/24
Lo4=100.1.1.1/24
Lo5=100.2.2.1/24
F0/0=10.1.12.1/24
R2 AS200 Lo0=2.2.2.2/8
F0/0=10.1.12.2/24
F0/1=10.1.234.2/24
R3 AS200 Lo0=3.3.3.3/8
F0/1=10.1.234.3/24
R4 AS200 Lo0=4.4.4.4/8
F0/1=10.1.234.4/24

Task 6

R1inAS100shouldestablishanEBGPpeersessionwithR2inAS200.R1
shouldadvertiseallof itsloopbackinterfacesinAS100.

R2,R3andR4shouldbeconfiguredinAS200 theseroutersshouldestablish
IBGPpeersessionsbetweenthemandadvertisetheirloopback0interfaceinAS
200.

CCIER&SbyNarbikKocharians BGP AnswersPage 14 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
Configuretherouteridsoftheroutersasfollows:

R1=10.1.1.1, R2=10.2.2.2,R3=10.3.3.3andR4=10.4.4.4

OnR1

R1(config)#routerbgp100
R1(configrouter)#bgprouterid10.1.1.1
R1(configrouter)#network1.1.0.0mask255.255.255.0
R1(configrouter)#network1.1.1.0mask255.255.255.0
R1(configrouter)#network1.1.2.0mask255.255.255.0
R1(configrouter)#network1.1.3.0mask255.255.255.0
R1(configrouter)#network100.1.1.0mask255.255.255.0
R1(configrouter)#network100.2.2.0mask255.255.255.0
R1(configrouter)#neighbor10.1.12.2remoteas200
R1(configrouter)#noautosummary

OnR2

R2(config)#routerbgp200
R2(configrouter)#nosynchronization
R2(configrouter)#bgp routerid10.2.2.2
R2(configrouter)#network2.0.0.0
R2(configrouter)#neighbor10.1.12.1remoteas100
R2(configrouter)#neighbor10.1.234.3remoteas200
R2(configrouter)#neighbor10.1.234.4remoteas200
R2(configrouter)#noautosummary

OnR3
R3(config)#routerbgp200
R3(configrouter)#nosynchronization
R3(configrouter)#bgp routerid10.3.3.3
R3(configrouter)#network3.0.0.0
R3(configrouter)#neighbor10.1.234.2remoteas200
R3(configrouter)#neighbor10.1.234.4remoteas200
R3(configrouter)#noautosummary

OnR4
R4(config)#routerbgp200
R4(configrouter)#nosynchronization
R4(configrouter)#bgprouterid10.4.4.4
R4(configrouter)#network4.0.0.0
CCIER&SbyNarbikKocharians BGP AnswersPage 15 of19
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
R4(configrouter)#neighbor10.1.234.2remoteas200
R4(configrouter)#neighbor10.1.234.3remoteas200
R4(configrouter)#noautosummary

Toverifytheconfiguration:

OnR1

R1#Showipbgp

BGPtableversionis16,localrouterIDis10.1.1.1
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHopMetricLocPrfWeightPath
*>1.1.0.0/240.0.0.0 032768i
*>1.1.1.0/240.0.0.0032768i
*>1.1.2.0/240.0.0.0032768i
*>1.1.3.0/240.0.0.0032768i
*>2.0.0.010.1.12.200200i
*>3.0.0.010.1.12.20200i
*>4.0.0.010.1.12.20200i
*>100.1.1.0/240.0.0.0032768i
*>100.2.2.0/240.0.0.0032768i

OnR2
R2#Shipbgp

BGPtableversionis10,localrouterIDis10.2.2.2
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHopMetricLocPrfWeightPath
*>1.1.0.0/2410.1.12.10 0100i
*>1.1.1.0/2410.1.12.100100i
*>1.1.2.0/2410.1.12.100100i
*>1.1.3.0/2410.1.12.100100i
*>2.0.0.0 0.0.0.0 0 32768 i
*>i3.0.0.010.1.234.3 0 100 0 i

*>i4.0.0.010.1.234.40 100 0 i
*>100.1.1.0/24 10.1.12.1 0 0100i

CCIER&SbyNarbikKocharians BGP AnswersPage 16 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
*>100.2.2.0/2410.1.12.10 0100i

OnR3
R3#Shipbgp

BGPtableversionis18,localrouterIDis10.3.3.3
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHopMetricLocPrfWeightPath
*i1.1.0.0/2410.1.12.101000100i
*i1.1.1.0/2410.1.12.1 01000100i
*i1.1.2.0/2410.1.12.101000100i
*i1.1.3.0/2410.1.12.101000100i
*>i2.0.0.010.1.234.201000 i
*>3.0.0.00.0.0.0032768i
*>i4.0.0.010.1.234.401000i
*i100.1.1.0/2410.1.12.101000100i
*i100.2.2.0/2410.1.12.1 01000100i

OnR4
R4#Shipbgp

BGPtableversionis20,localrouterIDis10.4.4.4
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHopMetricLocPrfWeightPath
*i1.1.0.0/2410.1.12.101000100i
*i1.1.1.0/2410.1.12.101000100i
*i1.1.2.0/2410.1.12.1 01000100i
*i1.1.3.0/2410.1.12.101000100i
*>i2.0.0.010.1.234.201000i
*>i3.0.0.010.1.234.301000i
*>4.0.0.00.0.0.0032768i
*i100.1.1.0/2410.1.12.101000100i
*i100.2.2.0/2410.1.12.101000100i

NoteR3andR4donothave NLRItothenexthopIPaddressof10.1.12.1,therefore,they
wont havereachabilitytotheseaddresses.

CCIER&SbyNarbikKocharians BGP AnswersPage 17 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
Task7

ConfigureR2tochangethenexthopIPaddressforallthenetworksadvertisedbyR1to
theIPaddressofitsF0/1interface.Youshoulduseatemplatesothefuturepoliciescan
beinstalledonceinthattemplateandhaveiteffectR3andR4.DONOTusepeergroups
toaccomplishthistask.

OnR2
R2(config)#routerbgp200

R2(configrouter)#templatepeerpolicyTST
R2(configrouterptmp)#nexthopself
R2(configrouterptmp)#exitpeerpolicy

R2(configrouter)#neighbor10.1.234.3inheritpeerpolicyTST
R2(configrouter)#neighbor10.1.234.4inheritpeerpolicyTST

Toverifytheconfiguration:

OnR3

R3#Shipbgp

BGPtableversionis18,local routerIDis3.3.3.3
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHop MetricLocPrfWeightPath
*>i1.1.0.0/2410.1.234.2 0 1000 100i
*>i1.1.1.0/2410.1.234.2 0 1000 100i
*>i1.1.2.0/2410.1.234.2 0 1000 100i
*>i1.1.3.0/24 10.1.234.2 0 1000 100i
*>i2.0.0.010.1.234.2 0 1000 i
*>3.0.0.00.0.0.0 0 32768 i
*>i4.0.0.010.1.234.4 0 1000 i
*>i100.1.1.0/2410.1.234.2 0 1000 100i
*>i100.2.2.0/2410.1.234.2 0 1000 100i

OnR4

CCIER&SbyNarbikKocharians BGP AnswersPage 18 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
R4#Shipbgp

BGPtableversionis20,localrouterIDis4.4.4.4
Statuscodes:ssuppressed,ddamped,hhistory,*valid,>best,i internal,
rRIBfailure,SStale
Origincodes:i IGP,e EGP,? incomplete

NetworkNextHop MetricLocPrfWeight Path


*>i1.1.0.0/2410.1.234.2 0 1000 100i
*>i1.1.1.0/2410.1.234.2 0 1000 100i
*>i1.1.2.0/2410.1.234.2 0 1000 100i
*>i1.1.3.0/2410.1.234.2 0 1000 100i
*>i2.0.0.010.1.234.2 0 1000 i
*>i3.0.0.010.1.234.3 0 1000 i
*>4.0.0.00.0.0.0 0 32768 i
*>i100.1.1.0/2410.1.234.2 0 1000 100i
*>i100.2.2.0/2410.1.234.2 0 1000 100i

Peerpolicytemplatesareusedtobuildatemplateof policyinformationthatcanbe
inheritedbyagivenneighbor.Thepeerpolicytemplatecannotbeinheritedbya
peersessiontemplateorapeergroup.

Task8

Erasethestartupconfigurationandreloadtheroutersbeforeproceedingtothenextlab.

CCIER&SbyNarbikKocharians BGP AnswersPage 19 of19


Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.

You might also like