Chapter5BGPConguration
Figure5-20BGPFRRCongurationExample
CongurationFlow
1.EstablishEBGPneighborrelationsamongS1,S2,andS3.Setthepriorityoftheroute
learntfromS2onS1to200.
2.EnabletheBGPFRRfunctiononS1.
CongurationCommands
EstablishEBGPneighborrelationsamongS1,S2,andS3,andenabletheFRRfunction
onS1.Intheexample,thepriorityoftheroutelearntfromS2onS1issetto200.The
optimalroutingpathfor1.1.1.150/32advertisedbyS3isS1→S2→S3.
RunthefollowingcommandsonS1:
S1(config)#routerbgp1
S1(config-bgp)#neighbor172.16.1.2remote-as2
S1(config-bgp)#neighbor171.16.20.2remote-as3
/*RunthefollowingcommandstoestablishEBGPneighborrelations:*/
S1(config-bgp)#bgpfrr/*EnablestheFRRfunction*/
S1(config-bgp)#exit
S1(config)#route-maplt/*Configurestheroutemap*/
S1(config-route-map)#setlocal-preference200
S1(config-route-map)#exit
S1(config)#routerbgp1
S1(config-bgp)#neighbor172.16.1.2route-mapltin
S1(config-bgp)#exit
RunthefollowingcommandsonS2:
S2(config)#routerbgp2
S2(config-bgp)#neighbor172.16.1.1remote-as1
S2(config-bgp)#neighbor183.16.20.2remote-as3
S2(config-bgp)#exit
RunthefollowingcommandsonS3:
S3(config)#routerbgp3
S3(config-bgp)#neighbor171.16.20.1remote-as1
S3(config-bgp)#neighbor183.16.20.1remote-as2
S3(config-bgp)#exit
5-73
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential