Sie sind auf Seite 1von 8

Aboutmyself

HelloRoute

NetworkGeekStuff"Thenetworkisvastandinfinite"MotokoKusanagi

CCIE Training - INE IT Training


Networking
Projects
Hobby
Cloud
RSSFeed
Facebook

MULTIHOMINGacompletestepbystepguide[DownloadeBook]

Search...

Search

CiscoIOSXRCompleteGettingStarted
ExamplesGuide,Part2/2
By
PeterHavrila
January8,2013Postedin:Cisco,Networking
Like 16

Tweet

Share

Followingpreviouspart1articleofthisIOSXRguidethatpresentedbasicexamplesforIOSXRon
mostCCNAleveltechnologies,thispostwillcontinueandgivethebasicsofFHRP,MPLS,BGP
andsomeminorfeatureslikerouteredistributiontofinalizethistwoarticleseries.Againtheaimis
nottoexplainindetailtheprotocolsortheorybehindthem,onlytoprovidequicklysearchable
referenceguidetoquicklyconfiguretheseprotocolsonIOSXR.Thisisthesecondandfinalpartof
thisGettingStartedExampleGuide,nextforIOSXRIwillcontinueinaseparatearticlesthatwill
gotospecificadvancedtopicsindependently.
Contentofthisarticle:
1.FirstHopRedundancyProtocolsonIOSXR
HotStandbyRouterProtocol(HSRP)
VirtualRouterRedundancyProtocol(VRRP)
GatewayLoadBalancingProtocol(GLBP)
2.RedistributiononIOSXR
RedistributionintoISIS
RedistributionintoOSPF
3.BasicMPLSconfigurationonIOSXR
4.BasicBGPconfigurationonIOSXR

Contents[hide]
FirstHopRedundancyProtocols
HotStandbyRouterProtocol(HSRP)
VirtualRouterRedundancyProtocol(VRRP)
GatewayLoadBalancingProtocol(GLBP)
InterProtocolRedistribution
RedistributionintoISIS
RedistributionintoOSPF
MultiprotocolLabelSwitching(MPLS)
BasicBGPconfiguration
Summary

FirstHopRedundancy
Protocols
Letsstartwiththemostsimplepart.FirstHop
RedundancyProtocolsareprotocolsthatallows
youtomakeyourdefaultgatewayIPv4virtual
andredundantontwoseparaterouters.Incisco
routers,wehavethreeoftheseprotocolsandfor
eachaquickexampleisvisiblebelow.But
beforethatletsquicklygoviatheIPv4andIPv6
supportondifferentplatform.

FHRPProtocolCiscoIOS/IOSXESoftwareCiscoIOSXRSoftware
HSRPIPv4,IPv6(withversion2)IPv4
VRRPIPv4IPv4,IPv6
GLBPIPv4,IPv6Notsupported

HotStandbyRouterProtocol(HSRP)
HSRPisaciscoproprietaryprotocolforgatewayIPredundancy.Inthefollowingpicture,youhave
verysimpletopologywithbothIOSXRandIOSroutersandtheirconfiguration.

MostPopular

CiscoBGPTimersreExplained
CiscoIOSXRComplete
GettingStartedExamplesGuide,
Part1/2
[minipost]MikrotikQoS
PrioritizationExample
RedundantCiscoACELoad
BalancerDesignConfiguration
Example
RecentArticles

HPEsDCN/NuageSDNPart
2FirstStepsCreating
Virtual/OverlayCustomer
NetworkSeptember23,2016
HPEsDCN/NuageSDNPart
1IntroductionandLAB
InstallationTutorialAugust1,
2016
TutorialforsmallHadoopcloud
clusterLABusingvirtual
machinesandcompiling/running
firstHelloWorldMapReduce
exampleprojectJune12,2016
Pingonyou!Beta2.0isonline
June4,2016
[minipost]QuickLAB/config
exampleforIPv6BGPbetween
HPNetworkingComwarev5
andCiscoJune2,2016
PingonYou!smallweekend
web/CGIprojectMarch28,2016
[minipost]Windowspartition
editingwithdiskpartMarch28,
2016
CheckpointFirewallCLItool
dbeditandquicklabexamples
February27,2016
SovietMi24VHindE,1/72scale
June6,2015
Tutorialforcreatingfirstexternal
SDNapplicationforHPSDN
VANcontrollerPart3/3:Node
CutterSDNapplicationinperl
withwebinterfaceMay24,2015
Tutorialforcreatingfirstexternal
SDNapplicationforHPSDN
VANcontrollerPart2/3:

HSRPConfigurationExampleonIOSXRandIOS
Explanationisquitesimple,HSRProutersbroadcasttheirvirtualIP,priorityandHSRPgroupIDon
multicastIP224.0.0.2inUDPpacketsport1985.Withthisbroadcast,theylocateeachotherandthe
routerwithhighestprioritywinsandstartstoactivelyservethepacketsleavingviedefaultgateway.
HSRPhashellointervalof3secondsandholddowntimerof10seconds.
TheconfigurationisasfollowsonIOS:
interfaceEthernet0/0
ipaddress192.168.101.10255.255.255.0
standby1ip192.168.101.1
standby1priority105
standby1preempt
standby1trackEthernet0/1

ConfiguringHSRPyouhavetostartwithauniqueIDcalledHSRPgroupthatisavaluestandby
<ID>from1to255andhastobeuniqueinabroadcastdomainofthegiveninterface.Ifyouwant
tohavemultiplegroupsonaninterfaceyoucanmakethecommandsuniquebasedonthisHSRP
group.Secondvalueisprioritythatisalsoavaluefrom1to255.Bydefaultthepriorityis100and
highervaluewins.
Preemptionisbydefaultdisabled,thismeansthatbydefaultifyourmasterfails,thebackuprouter
becomesamaster.Howeverwhenthemasterrecovers,hewillnotassumetheroleofthenewmaster
untilthecurrentmasterfailsdespitethepriorityvalue.Ifyouwantthehighestpriorityrouterto
becomemasterinanysituation,youhavetoactivatethepreemptionwiththestandby<ID>preempt
command.
Lastpartistheabilitytotrackanotherinterfaceand/ortrackingobject.Thisisusedforgateway
routersinasituationwhenanoutgoinguplinkinterfacelikeEthernet0/1failsonthecurrentactive
master.Inthissituationthemasterisnolongerthebestroutertobethegatewayashehasnouplink.
Thereforeusingtrackingthecurrentmastercandecreaseitsprioritydynamicallyandallowanother
routertobethenewmaster.
OnIOSXR,itisalittlebitdifferentinasensethattheconfigurationcommandshavemovedtoa
commonrouterhsrpsectionintheconfiguration.Butasyousee,thereisnothingnewtoexplain
comparedtoIOSconfiguration.
TheconfigurationofHSRPonIOSXRisasfollows:
interfaceGigabitEthernet0/0/0/0
ipaddress192.168.101.10255.255.255.0
routerhsrp
interfaceGigabitEthernet0/0/0/0
hsrp1ipv4192.168.101.1
hsrp1priority95
hsrp1preempt
hsrp1trackGigabitEthernet0/0/0/1

InfluencingFlowsviacURL
commandsMay23,2015
Tutorialforcreatingfirstexternal
SDNapplicationforHPSDN
VANcontrollerPart1/3:LAB
creationandRESTAPI
introductionMay22,2015
Tutorial:Emailserverforasmall
companyincludingIMAPfor
mobiles,SPFandDKIMMay19,
2015
Eycalyptuscloudintroduction
andautoscalingtutorialFebruary
2,2015
IntroductionandLABtutorialof
HPHelionCommunityEdition,
theOpenStackbasedcloud
systemthatcangiveyoua
personalcloud!June10,2014
[minipost]Mikrotik/RouterBoard
portknockingexamplefor
firewall/NATopeningsJune9,
2014
[minipost]HowtofixMySQL
losttabledescriptionfrom.frm
filesafteremergencymigrationof
/var/lib/mysqlJune3,2014
SlovakAirForceMiG29with
2008DigitalCamoflage,1/48
March4,2014
PlayingwiththenewHPSDN
Controllerincludinggetting
startedguidewithOpenvSwitch
inGNS3January1,2014
Nexus7kGettingStarted
ExamplesPart1(basics,VDC
andvPC)December19,2013
[minipost]Createaloopback
harddrivepartitioninsideafilein
linuxDecember18,2013
ArmA2CWR2mod:Winter
Kolgujev+MaldenDomination
withXmasextrasDecember18,
2013
BeagleBoneBlackreplaced
RaspberryPIrunning
networkgeekstuff.com(and
performancereasonsreview)
November19,2013
RevellF104GStarfighter1/48
November1,2013
RevellLEOPARD2A6tank
model1:72September26,2013
ArmA2Dominationcoopwith
all@DLCsonSMDorCAA1
SahraniSeptember10,2013
HowtocreatecustomLinuxWi
Firegulatorydatabasetounlock
30db/1000mWSeptember10,
2013
[minipost]Mikrotikscripting:
MonitoringinterfaceIPfor
changesAugust15,2013
PlayingwithotherpeopleWiFi
part2:WPS,thebackdoorto
WPAJuly23,2013
PlayingwithotherpeopleWiFi
part1:ThegoodoldWEPJuly
17,2013

VerificationonIOS:
Router#showstandbybrief
Pindicatesconfiguredtopreempt.
|
InterfaceGrpPriPStateActiveStandbyVirtualIP
Gi0/0/11105PActivelocal192.0.2.3192.0.2.1

VerificationonIOSXR
RP/0/RSP0/CPU0:Router#showhsrp
WedAug1713:51:31.032UTC
Pindicatesconfiguredtopreempt.
|
InterfaceGrpPriPStateActiveaddrStandbyaddrGroupaddr
Gi0/0/0/1195PStandby192.0.2.2local192.0.2.1

VirtualRouterRedundancyProtocol(VRRP)
TheRFCstandardprotocolfordefaultgatewayredundancy.AgaintheinitialexampleofVRRP
deploymentwithbothIOSandIOSXRrouters.Itisusingmulticastaddressof224.0.0.18when
runninginIPv4.

Archives

September2016(1)
August2016(1)
June2016(3)
March2016(2)
February2016(1)
June2015(1)
May2015(4)
February2015(1)
June2014(3)
March2014(1)
January2014(1)
December2013(3)
November2013(2)
September2013(3)
August2013(1)
July2013(2)
May2013(1)
April2013(1)
February2013(1)
January2013(2)
December2012(4)
November2012(3)
October2012(5)

August2012(1)
July2012(2)
June2012(1)
May2012(8)
March2012(2)
January2012(3)
December2011(6)
November2011(1)
July2011(1)
January2011(3)

Mumbai to Kolkata Flights Lowest Price Guarantee

VRRPExampleConfigurationofbothIOSXRandIOS
Explanationisagainquitesimple,VRRProutersbroadcasttheirvirtualIP,priorityandVRRPgroup
IDonmulticastIP224.0.0.18.Withthisbroadcast,theylocateeachotherandtherouterwithhighest
prioritywinsandstartstoactivelyservethepacketsleavingviedefaultgateway.VRRPhas1second
advertisementtimerandholddowntimerbelow4seconds.
TheconfigurationisagainverysimpleforbothIOSandIOSXRasshownbelow.
ConfigurationofVRRPonIOS:
interfaceEthernet0/0
ipaddress192.168.101.1255.255.255.0
vrrp1ip192.168.101.1
vrrp1trackinterfaceEthernet0/1

TheconfigurationconceptofVRRPisagainverysimilartotheHSRP.YouneedtoconfigureVRRP
groupIDinarangefrom1to255thatisuniqueintheL3broadcastdomain.Thereisalsopriority
toconfigureinrangefrom1to254thatisbydefault100,butifthephysicalIPisthesameonan
interfaceastheVirtualIP,therouterautomaticallyassumestheroleofpermanentVRRPmasterwith
255priority(255isreservedforthissituationwhenyouconfigureHSRPvirtualIPthesameas
physicalinterfaceIP).ThispermanentVRRPmasteriscalledVRRPowner.
VRRPisbydefaultinpreemptionmodebutyoucandisableitwithusingnovrrp1preemptif
needed.InterfaceandobjecttrackingissupportedinthesamewayasonHSRP.
ConfigurationofVRRPonIOSXR:
interfaceGigabitEthernet0/0/0/0
ipaddress192.168.101.10255.255.255.0
routervrrp
interfaceGigabitEthernet0/0/0/0
addressfamilyipv4
vrrp1
address192.168.101.1
priority95
trackinterfaceGigabitEthernet0/0/0/010

OnIOSXR,theconfigurationismovedtotheroutervrrpsectionandalsoforthesupportofIPv4
andIPv6dividedundertheaddressfamilysections.
Verification
OnIOS,VRRPverificationcanbedonewithshowvrrpbrief:
Router#showvrrpbrief
InterfaceGrpPriTimeOwnPreStateMasteraddrGroupaddr
Ethernet0/01953223YBackup192.168.101.11192.168.101.1

OnIOSXR,VRRPverificationcanbedonewithshowvrrp:
RP/0/RSP0/CPU0:Router#showvrrp
ThuAug2902:33:00.888UTC
IPv4VirtualRouters:
AindicatesIPaddressowner
|Pindicatesconfiguredtopreempt
||
InterfacevrIDPrioAPStateMasteraddrVRouteraddr
Gi0/0/0/01105PMasterlocal192.168.101.1

GatewayLoadBalancingProtocol(GLBP)
ThisciscoproprietaryprotocolisactuallymyfavoriteprotocolofallFHRPprotocolssimplybecause
itdoesloadbalancingforallthephysicalroutersthatmaketheGLBPgroupwhileallthehostsstill
thinktheyuseasingleIPgateway.ThetrickisthatthereisstillanactiveGLBProuterselectedbased
onpriority,buttherearenotvirtualMACaddressesandonlytheactiveGLBProuterrepliestoARP
requestsonthevirtualIPwithmacaddressesofalltheGLBPgroupmembersinroundrobinfashion
(althoughitispossibletoconfigureeachrouterwithweightandwithitstatisticallyputmoreARP
responsestodifferentroutersinagroup).
GLBPprotocoluse224.0.0.112asamulticastIPinIPv4networkandGLBPisusinggroupIDasthe
otherprotocolsbutwithrangefrom1to1023.Prioritybydefault100,withrange1to255.Hello
timer3,holddowntimer10seconds.Preemptionisnotenabledbydefault.
However,GLBPisnotsupportedonIOSXR,sothefollowingexampleisforIOSroutersonly.

Upto Rs.1,200 Cashback on Flights. Use Code


CTSOCIAL, Offer Valid Till 31st Oct
cleartrip.com/Cheap/Flight-Ticket

GLBPConfigurationExampleontwoIOSrouters
TheconfigurationexampleofGLBPonIOSisasfollows(routerR1perspective):
interfaceFastEthernet0/0
ipaddress192.168.101.11255.255.255.0
glbp1ip192.168.101.1
glbp1priority95
glbp1preempt

IPv6examplebonus:,ifyoulike,hereisaquickmodificationforIPv6autoconfiguredversionof
GLBPonIOS:
interfacefa0/0
ipv6address2002:8:101:1::/64eui64
glbp1ipv6autoconfig
glbp1preempt

Verification
ForasingleGLBPconfiguredVirtualIP,youcanseemultiplelinesofoutputintheshowglbpbrief.
ThisshowsyounotonlytheVirtualIP,butalsoallthemembersofthegroupdoingtheforwarding.
R1#showglbpbrief
InterfaceGrpFwdPriStateAddressActiverouterStandbyroute
Fa0/01100Standby192.168.101.1192.168.101.11local
Fa0/0117Listen0007.b400.0101192.168.101.11
Fa0/0127Active0007.b400.0102local

InterProtocolRedistribution
Oftenyouencounteranetworkthatforvarious(mostlyhistorical)reasonshavemorethanone
routingprotocolimplemented,itisoftenneededtoallowasingleroutetoexistinbothprotocols.To
achievethis,thesolutionistoredistributearoutefromtheprotocolsitwassourcedintotheother
protocols.Veryimportantlyyouhavetotakecareofthedifferencesofthetwoprotocolstonotcreate
moreproblems(mostlyloops)thanbenefitfromredistribution.

RedistributionintoISIS
FirstprotocolwewillmentionisISIS(asmyfavorite).Iwillshowyouaverybasicexamplehowto
configureredistribution.ForthosewhoknowIOSredistribution,thiswillbewellknownonlyon
IOSXR,thecommandhasabitdifferentplacement.

RedistributiontoISISexampleonIOSXR
Theredistributioncommandisinsidetheaddressfamilyipv4unicastandinourexample,wegive
redistributedroutesmetric20.However,bydefaulttheseedmetricforredistributingtoISISin
Ciscorouters(IOS+IOSXR)is0.
routerisis1
net49.0000.0100.0200.0300.00
addressfamilyipv4unicast
redistributeospf1metric20
interfaceGigabitEthernet0/0/0/0
addressfamilyipv4unicast
!
routerospf1
area0
interfaceGigabitEthernet0/0/0/1

Forreference,thisishowtheredistributionwouldlooklikeonIOS:
routerisis1
redistributeospf1metric20

Verification
Forquickverification,youcansimplychecktheroutingtableasshownbelow,pleasenotthatISIS
redistributedroutesarenotmarkedinanyspecialway:
RP/0/RSP0/CPU0:IOSXR#showroute
WedJan0511:12:24.092UTC
Codes:Cconnected,Sstatic,RRIP,BBGP
DEIGRP,EXEIGRPexternal,OOSPF,IAOSPFinterarea
N1OSPFNSSAexternaltype1,N2OSPFNSSAexternaltype2
E1OSPFexternaltype1,E2OSPFexternaltype2,EEGP
iISIS,L1ISISlevel1,L2ISISlevel2
iaISISinterarea,suISISsummarynull,*candidatedefault
Uperuserstaticroute,oODR,Llocal,GDAGR
Aaccess/subscriber,(!)FRRBackuppath
Gatewayoflastresortisnotset
iL210.1.10.0/24[115/20]via192.168.101.11,00:00:35,GigabitEthernet0/0/0/1
iL210.1.1.0/24[115/30]via192.168.102.10,00:21:46,GigabitEthernet0/0/0/0

RedistributionintoOSPF
WhenredistributingintoOSPF,bydefaultthemetricistypeE2*,defaultseedmetricfromIGPis20
andfromBGPis1.AlsoIOSandIOSXErouterbydefaultredistributeonlyclassfullnetworks(you
havetousesubnetskeyword).
*E1vsE2types.E2metricwhengiventoexternalroutewillnotbeincrementedwhenpropagated
ininternalnetworkafterbeinggiveninitialseedmetric.E1ontheotherhandisincrementedin
additiontotheinitialseedmetricasanyotherOSPFrouteoneveryhop.
TheconfigurationisnotthatdifferentincomparisontoolderIOSredistribution,inthefollowing
examplewewillredistributeISIStoOSPF.

RedistributiontoOSPFexampleonIOSXR
CiscoIOSandIOSXE(forreference):
routerospf1
redistributeisis1subnetsmetric30

Notethatthiscommandwillredistributeroutes(alsoclasslesssubnetsthankstothesubnetsword)
withdefaultE2(nonincrementingone)metric30.
CiscoIOSXR:
routerisis1
net49.0000.0100.0300.1001.00
interfaceGigabitEthernet0/0/0/0
addressfamilyipv4unicast
!
routerospf1
redistributeisis1metric30
area0
interfaceGigabitEthernet0/0/0/1

NotethatyoudonothavetousethesubnetskeywordonIOSXRtoredistributealsoclassless
networks.
Verification
Alsoontheverificationfront,theroutingtablelooksveryfamiliaronIOSXR:
RP/0/RSP0/CPU0:IOSXR#showroute
WedJan613:02:20.923UTC
Codes:Cconnected,Sstatic,RRIP,BBGP
DEIGRP,EXEIGRPexternal,OOSPF,IAOSPFinterarea
N1OSPFNSSAexternaltype1,N2OSPFNSSAexternaltype2
E1OSPFexternaltype1,E2OSPFexternaltype2,EEGP
iISIS,L1ISISlevel1,L2ISISlevel2
iaISISinterarea,suISISsummarynull,*candidatedefault
Uperuserstaticroute,oODR,Llocal,GDAGR
Aaccess/subscriber,(!)FRRBackuppath
Gatewayoflastresortisnotset
OE210.1.10.0/24[110/30]via192.168.101.11,00:00:19,GigabitEthernet0/0/0/0
O10.1.1.0/24[110/20]via192.168.102.10,00:15:06,GigabitEthernet0/0/0/1

MultiprotocolLabelSwitching(MPLS)
Nowthisoneisakicker.Actuallythistechnologyislikeanelephantinaroomthatnobody
mentions,butallknowitisthere.MPLShasbecomethemajorplayerinallbiggerISPnetworks
withitsmarvelousbenefitsthatitgives.IpersonallyliketosaythatthebenefitsofMPLSarenotin

anyspeedorotherthings,butitdidtonetworksthesamethatVirtualizationdidtocomputers.Alsoit
hadreturnedthelongmissed(sinceATMtimes)TrafficEngineeringbacktotheIPnetworks.
Inthisquickoverview,IwillnotmentionanythingfromMPLStheory,ifthereissomeonereading
thiswithoutanypriorknowledgeaboutMPLS,thenIwouldaskhimtostoponthispointandgo
readsometheorybasicsofMPLSbeforecontinuinghere.
MPLSconfiguration
Letsfirstgiveyoumylabtopologytohaveyouorientinit.

MPLSconfigurationexampleonIOSXRandIOS
OnolderIOSandIOSXEplatforms,yousimplyenableMPLSgloballywithmplsipinglobal
configurationandthenenablealltheinterfacesthatyouwanttoparticipateintheMPLScloudwith
mplsipundertheconfigurationcontextofeachinterface.ThiswillstartforyouthebasicMPLS
(takenotthatonveryoldIOSrouters,thismightactivateolderMPLSlabeldistributionprotocol
calledTDP).
mplsip
!
interfaceGigabitEthernet0/0
mplsip

OnnewerIOSXR,itisabitotherwayaroundwhenyouputtheinterfaceundermplsldp
configurationcontext.
mplsldp
interfaceGigabitEthernet0/0/0/0
!
interfaceGigabitEthernet0/0/0/1

Verification
Well,onceyouactivateMPLSandLDPprotocolontworoutersontheirinterconnectinginterface,
youshouldgetLDPneighbourshipcommingup(yougetSYSLOGmessageaboutthistothe
console).ToverifyyourneighboursonIOSXR,youcanexecuteshowmplsldpneighbor.
RP/0/RSP0/CPU0:IOSXR#showmplsldpneighbor
PeerLDPIdentifier:5.100.12.2:0
TCPconnection:5.100.12.2:233075.100.12.1:646
GracefulRestart:No
SessionHoldtime:180sec
State:Oper;Msgssent/rcvd:27/26;DownstreamUnsolicited
Uptime:00:06:28
LDPDiscoverySources:
GigabitEthernet0/0/0/1
Addressesboundtothispeer:
10.1.1.15.100.12.2

Secondly,youseeiftheotherneighborsaresendingyouMPLStagbindings.Thesearenumerical
labelsusedforforwardingandthereisalwaysyour(asoffromtheperspectiveofeveryrouter)
internallabelgeneratedforaparticularprefixandalsoallyourneighborwillsendyoutheirlabelfor
thesameprefix.Ofcourseyouwillsendthemyourlocalprefixaswell.
Forexampleonthefollowingexampleweseeaninternallabel21foraprefix10.1.1.0/24andalso
thelabel24thatyourneighborhasassignedtothesameprefix.
RP/0/RSP0/CPU0:IOSXR#showmplsldpbindings
<outputomitted>
10.1.1.0/24,rev24
Localbinding:label:23
Remotebindings:(2peers)
PeerLabel

10.1.1.0:024
10.1.11.0:025

NoteaverysimilarverificationispossibleonIOSrouters.FirsttheLIB:
IOSRouterR2#showmplsldpbindings
tibentry:10.1.1.0/24,rev3
localbinding:tag:impnull
remotebinding:tsr:5.100.12.1:0,tag:23

AndalsothenyoucanhavealookontheLFIB:
IOSRouterR1#showmplsforwardingtable
LocalOutgoingPrefixBytestagOutgoingNextHop
tagtagorVCorTunnelIdswitchedinterface
212310.1.1.0/240Ge0/15.100.11.1

BasicBGPconfiguration
Ok,CCNAlevelofBGPisabsolutelyminimal,whatIwillshowinthefollowingexampleisonlyto
starttheBGPprocess,establishandverifyneighborshipandpropagatesomelocalprefix.Tobemore
precise,wewillbuildasimpleeBGPandiBGPsessionsonbothIPv4andIPv6usedfor
neighborship,butconfiguretherouterstouseIPv4neighborshiptoexchangeonlyIPv4prefixesand

touseIPv6neighborshiptocarryonlyIPv6prefixes(becauseyoucancarrybothIPv4andIPv6on
anytypeofunderliningneighborship).
Fulltopologywithallconfigurationatglancebelow:

IOSXRandIOSbasicBGPconfigurationexampletopology
IfyouknowtheolderIOSconfigurationofBGP,theIOSXRshouldbenoproblemforyou.The
onlydifferenceinbasicconfigurationsisthatnowyoucreateaddressfamiliesunderneighborsand
notneighborsunderaddressfamilieslikeinIOS.
Nowletsgothroughtheconfiguration,firsttheIOSpart:
routerbgp64512
nobgpdefaultipv4unicast
neighbor2001:AC2:5:100:11::2remoteas2450
neighbor5.100.11.2remoteas2450
!
addressfamilyipv4
network10.1.10.0mask255.255.255.0
noneighbor2001:AC2:5:100:11::2activate
neighbor5.100.11.2activate
exitaddressfamily
!
addressfamilyipv6
neighbor2001:AC2:5:100:11::2activate
exitaddressfamily

Theconfigurationissimple,youcreatetwopeers(thesameneighborrouteroverIPv4andIPv6)and
activatecorrespondingaddressfamilypropagationonlyforIPv4totheIPv4neighborandIPv6only
totheIPv6neighbor.
YoumightnoticethereissomethingdifferentherethanyouareprobablyusedtoandthatisthatI
havedisabledthedefaultIPv4prefixpropagationinthedefaultbgpcontextwithnobgpdefault
ipv4unicast.ThisdisablesthedefaultIPv4prefixpropagationandforcesyoutouseIPv4address
familyifyouwantit.ThishelpstohavemuchmorecontroloverBGP.Letmegiveyouexampleof
theexactsameconfiguration(forIPv4prefixesonly)toshowyouwhatImean.

TheIOSXRpartismoreinterestinginthattheguysinCiscoreversedtheorderofconfiguration
context.InsteadofcreatingneighborsunderaddressfamilieslikeonIOS,onIOSXRyouadd
addressfamiliesunderneighborcreation.Otherthanthat,Ibelievetherenomoreexplanationneeded
totheconfigbelow.Additionally,noticethatthenetworkadvertisementstayedthesamewiththe
networkcommandbuttheformatchangedutilizingthe/24formask.
routerbgp2450
addressfamilyipv4unicast
network10.1.1.0/24
!
addressfamilyipv6unicast
!
neighbor5.100.11.1

neighbor5.100.11.1
remoteas64512
addressfamilyipv4unicast
!
neighbor2001:AC2:5:100:11::1
remoteas64512
addressfamilyipv6unicast
!
neighbor10.2.2.2
remoteas2450
updatesourceLoopback0
addressfamilyipv4unicast
!
neighbor2001:ac5:10:2:2::2
remoteas2450
updatesourceLoopback0
addressfamilyipv6unicast

OPTIONAL:BGPauthenticationconfiguration
UnderIOS,wegotheusualwaylikethis:
routerbgp64512
neighbor5.100.11.2remoteas2450
neighbor5.100.11.2passwordBGP_password

OnIOSXR,aswithmostthingyouhavetogoundertheneighborcontextandaddthepassword
there:
routerbgp64500
neighbor5.100.11.1
remoteas64512
passwordclearBGP_password
addressfamilyipv4unicast

Verification
ToverifythatBGPisupandrunningyoucanchecktheBGPtabletoseetheneighborslistedandthe
numberofprefixestheyaresendingtoyouintheSt/PfxRcdfield.YoucanalsonoticetheAS
numberforeachneighbor.
RP/0/RSP0/CPU0:IOSXRPE1#shbgptableipv4unicast
TueJan89:09:25.011UTC
NeighborVRFSpkASTblVerInQOutQSt/PfxRcd
5.100.11.1default06451212001
10.2.2.2default0245012001

Alsothisispossiblefortheotheraddressfamilies,butinIPv6wedonotyethaveanyprefixes
propagated.
RP/0/RSP0/CPU0:IOSXRPE1#shbgptableipv6unicast
TueJan89:10:12.149UTC
NeighborVRFSpkASTblVerInQOutQSt/PfxRcd
2001:ac5:5:100:11::1default06451212000
2001:ac5:10:2:2::2default0245012000

Summary
Ok,Iperfectlyunderstandthatthisoverviewonlyscratchedthesurfaceoffarmoreadvancedtopics
asBGPandMPLS,buttheintentionherewasnottogodeep.Moreadvancedthingswillcomeonly
whenIgetmyhandonsomemoreIOSXRrouters(asIplantostartlearningtomovemyCCIP
certificationtoCCNPSPreplacement).SoIbelievetherewillbesomemoreBGPandMPLS
articlescomingtonetworkgeekstuff.cominthenearfuture.

If you enjoyed this blog, please share.


Like 16

Tweet

Share

AboutPeterHavrila
Author'sProfile

MULTIHOMINGacompletestepbystepguide[DownloadeBook]
6Comments
1.Sims
PostedApril10,2013at8:55AM
Excellentquickanddirtyguide.Thanksamil
2.Ingschurk
PostedAugust7,2013at8:11AM
Hi,goodwork!Whataboutextendingtheguidetorwardsiosxrandstub/nssa?Imwondering
aboutifthereisanyimplementationoftranslatetype7suppressfainiosxr.Anyidea?
PeterHavrila
PostedAugust13,2013at4:01PM
HelloInschurk,
SorryIdidntwentintomuchdetailswitheveryprotocol.IdonotevenhaveanyIOSXR
availableanymoretohavealookforwhatyouwouldlike.Ithinkyoushouldcheckcisco
documentationforthat.
FYI,ourtestIOSXRdidntenteredproductionaswewentdecidedtogowithavendor
withbetterpriceforport/bandwidthcomparedtoCisco.Donotgetmewrong,Ithinkthe
CiscoIOSXRareaverynicemachines,butsometimesgoingwithCiscodoesntmake

Das könnte Ihnen auch gefallen