Professional Documents
Culture Documents
Ccie Routing Switching
Ccie Routing Switching
CCIERoutingandSwitching
NarbikKocharians
CCIE#12410
R&S,Security,SP
BGP
Answers
CCIER&SbyNarbikKocharians
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
Lab1EstablishingNeighborAdjacency
R1
R2
.1
.2
10.1.1.0/24
.3
.4
R3
R4
LabSetup:
TheF0/0interfaceofthesefourroutersshouldbeconfiguredinVLAN100.
ConfiguretheroutersaccordingtothefollowingIPaddressingchart:
IPAddressingchart:
Routers
R1
R2
R3
R4
Interface/IPaddress
F0/0=10.1.1.1/24
Lo0=1.1.1.1/8
Lo1=192.168.1.1/24
F0/0=10.1.1.2/24
Lo0=2.2.2.2/8
Lo1=192.168.2.2/24
F0/0=10.1.1.3/24
Lo0=3.3.3.3/8
Lo1=192.168.3.3/24
F0/0=10.1.1.4/24
Lo0=4.4.4.4/8
Lo1=192.168.4.4/24
ASnumber
AS100
AS100
AS100
AS100
ThesetupcanbedownloadedfromtheCDprovidedwiththisworkbook.
CCIER&SbyNarbikKocharians
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
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
*>1.0.0.0
0.0.0.0
*>i2.0.0.010.1.1.2
*>i3.0.0.010.1.1.3
*>i4.0.0.0
10.1.1.4
Metric LocPrf
0
0
100
0
100
0
100
Weight Path
32768 i
0 i
0 i
0 i
ValidTableEntry.
ThebestentryforthePrefix.
Theentryissuppressed.
TheentrywaslearnedviaanIBGP,thisistheitotheleftofthenetwork
column.Theletteriunderthepathcolumn,specifiestheoriginofthe
route.
Network Prefixentryforthenetwork,ifthemaskisomitted,thedefaultmaskis
assumed.
NextHop ThenexthopsIPaddresstogettothespecifiednetworkaddress,ifitis
0.0.0.0itisaprefixthatisadvertisedbythelocalrouter.
ThisistheInterasmetric,ortheMEDattributewhichis0bydefault.
Metric
Thisisthelocalpreferenceattribute,usedintherouteselectionprocess
LocPrf
carriedwithinthelocalASONLY.With thelocalpref attributethehigher
valuehasmorepreference.TheprefixesthatarereceivedfromapeerAS
aretaggedwithalocalprefvalueof 100 thisvaluecanbechangedto
influencethebestpathselectionprocess.Thechangedvalueisonly
advertisedtoIBGPpeers. Whenthelocalrouteradvertisesaprefix,no
localprefvalueisseenintheoutputoftheShowipbgpcommand.The
defaultvalueof100canbechangedbytheBGPdefaultlocal
preferencecommand.
Theprefixesthatarereceivedviaaneighbor(IBGPorEBGP) willhavea
Weight
weightof0,buttheprefixesthatareoriginatedbythelocalrouterwillhave
aweightvalueof32768.Thisattributeoverridesanyotherattributefor
performingbestpathdetermination.
IftheprefixeswereoriginatedorlearnedviaanIBGPneighbor,thepath
Path
columnwillhavetheletter iwithoutanyASN.Iftheprefixwaslearned
throughanotherAS,thenthiscolumnwillhavetheASnumber/sfollowed
bytheletter i,theASNsindicatetheASesthataprefixhastraversed.The
maximumnumberofASesthataprefixcantraversethroughis255.
*
>
S
i
CCIER&SbyNarbikKocharians
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
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
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
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
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
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
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
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
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
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.
10.1.12.0/24
F0/0 .1
F0/0 .2
AS200
R2
R1
.2
F0/1
AS100
10.1.234.0/24
F0/1 .3
F0/1 .4
R3
R4
AS200
AS200
IPAddressingchart:
Router
R1
ASnumber
AS100
R2
AS200
R3
AS200
R4
AS200
Interface/IPaddress
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
Lo0=2.2.2.2/8
F0/0=10.1.12.2/24
F0/1=10.1.234.2/24
Lo0=3.3.3.3/8
F0/1=10.1.234.3/24
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
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
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
*>100.1.1.0/24 10.1.12.1
0
CCIER&SbyNarbikKocharians
0 i
0100i
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
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
*>i1.1.0.0/2410.1.234.2
*>i1.1.1.0/2410.1.234.2
*>i1.1.2.0/2410.1.234.2
*>i1.1.3.0/24 10.1.234.2
*>i2.0.0.010.1.234.2
*>3.0.0.00.0.0.0
*>i4.0.0.010.1.234.4
*>i100.1.1.0/2410.1.234.2
*>i100.2.2.0/2410.1.234.2
MetricLocPrfWeightPath
0 1000 100i
0 1000 100i
0 1000 100i
0 1000 100i
0
1000 i
0
32768 i
0
1000 i
0 1000 100i
0 1000 100i
OnR4
CCIER&SbyNarbikKocharians
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
*>i1.1.0.0/2410.1.234.2
*>i1.1.1.0/2410.1.234.2
*>i1.1.2.0/2410.1.234.2
*>i1.1.3.0/2410.1.234.2
*>i2.0.0.010.1.234.2
*>i3.0.0.010.1.234.3
*>4.0.0.00.0.0.0
*>i100.1.1.0/2410.1.234.2
*>i100.2.2.0/2410.1.234.2
MetricLocPrfWeight Path
0 1000 100i
0 1000 100i
0 1000 100i
0 1000 100i
0 1000 i
0 1000 i
0
32768 i
0 1000 100i
0 1000 100i
Peerpolicytemplatesareusedtobuildatemplateof policyinformationthatcanbe
inheritedbyagivenneighbor.Thepeerpolicytemplatecannotbeinheritedbya
peersessiontemplateorapeergroup.
Task8
Erasethestartupconfigurationandreloadtheroutersbeforeproceedingtothenextlab.
CCIER&SbyNarbikKocharians
Allcontentsarecopyright20072011NarbikKocharians.
AllRightsreserved.