Chapter5
BGPConguration
TableofContents
BGPOverview............................................................................................................5-1
ConguringBGP........................................................................................................5-4
MaintainingBGP......................................................................................................5-55
BGPCongurationExamples...................................................................................
5-60
5.1BGPOverview
IntroductiontoBGP
BGPisaninter-domainroutingprotocolusedbetweenASs.BymeansofBGP ,ASscan
exchangetheinformationofnetworkreachabilitybetweeneachother.Theinformation
isalistofASswherearoutepassesthrough,whichissufcienttosetupadiagramto
indicatetheconnectionstatusoftheASs.Inthisway,AS-basedroutingselectionpolicy
isavailable,andBGPalsosolvestheproblemofrouteloop.
BGPofversion4(BGP4)isthelatestBGPversion,whichisdenedinRFC1771.Ithas
thefollowingfeatures,
lItsupportstorealizeCIDR,supernetandsubnetandsoon.
lItsupportsrouteaggregation.
lBGPrunningisreliable.ItusesTransferControlProtocol(TCP)asitsbottomlayer
protocol.ItusesTCPNo.179port.
lItonlysendsrouteupdatinginformation.
lItsendskeepalivepacketsregularlytomakesurethatTCPconnectioniswell.
lIthasconsummatemetricvalues.
lIthasabundantattributesandcontrolfunctions.
lItappliestolarge-scalenetworkespecially.
ThesessionwhichissetupbyBGProutersbelongingtodifferentASsiscalledExternal
BorderGatewayProtocol(EBGP)session,whileasessionwhichissetupbetweenBGP
routersbelongingtothesameASiscalledInternalBorderGatewayProtocol(IBGP)
session.
AnadministrativeareawithindependentroutingpoliciesiscalledanAS.Theimportant
featureofanASisthatithasauniedinternalrouteforanotherAS,andithasaconsistent
topologyforreachabledestinations.TheASindicatorisavalueof16-bit,rangingfrom1
to65535,where,1–32767areassignable,32768–64511arereserved,and64512–65534
areusedforprivateASs(similartoprivatenetworkaddresses).When16–bitASnumber
5-1
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential