Vyatta Suite200 1301ShorewayRoad Belmont,CA94002 vyatta.com 6504137200 1888VYATTA1(USandCanada) VYATTA,INC. | VyattaSystem BGP REFERENCEGUIDE COPYRIGHT Copyright©2005–2012Vyatta,Inc.Allrightsreserved. Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof documentation,visittheVyattawebsiteatvyatta.com. PROPRIETARYNOTICES VyattaisaregisteredtrademarkofVyatta,Inc. Hyper‐VisaregisteredtrademarkofMicrosoftCorporation. VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc. XenServer,andXenCenteraretrademarksofCitrixSystems,Inc. Allothertrademarksarethepropertyoftheirrespectiveowners. RELEASEDATE:October2012 DOCUMENTREVISION.6.5R1 v01 RELEASEDWITH:6.5R1 PARTNO.A0‐0216‐10‐0016 iii BGP 6.5R1v01 Vyatta Contents QuickListofCommands........................................................ xii ListofExamples ..............................................................xix Preface. .....................................................................xx IntendedAudience ................................. .............................................xxi OrganizationofThisGuide .................. ................................. .....................xxi DocumentConventions ....... ................... .................. ............... ..............xxiii VyattaPublicati ons................... .................................................... ......xxiv Chapter1BGPConfiguration .................................................... 1 BGPOverview .. ................... ........................................................ ......2 iBGPandeBGP .............. ................................. .................... ............3 iBGP ........................... ........ .................................................3 eBGP ............... ................... ................. ................................4 BGPIDSelectionProcess............... .................................... ................. .. .5 BGPPathSelectionProcess......................................... ............................6 ScalabilityofBGP ............. ....... .........................................................7 Confederations ....................... ..................... ...............................7 RouteReflection .................. .................................... ................. .. .8 RouteFlappingandFlapDamping....................................... ............... ........10 ASPaths ......................... ............... ................... ................. .......11 BGPCommunities ......................................... ..................................12 PeerGroups........... ... ..................................................................13 BGPMultipathSupport ................................ ............... ................... .....13 IPv4andIPv6Support....... ............... ................... .................... ...........13 SupportedStandards................................... ..........................................14 ConfiguringBGP....... ..........................................................................14 BasiciBGPConfiguration........................ ............... ...............................15 VerifyingtheiBGPConfiguration ............... ................... .............................24 R1:showipbgpsummary................................. ................................24 R1:showipbgp .............. ................................. ..........................25 BasiceBGPConfiguration ...................................... ............... ................25 VerifyingtheeBGPConfiguration.. .............. ............... ................... .............27 R1:showip bgpsummary.................................................................27 R1:showipbgp .............................. ................................. ..........28 OriginatingaRoutetoeBGPNeighbors.. ................................. .................... ...28 iv BGP 6.5R1v01 Vyatta VerifyingtheRouteOrigination......................................................... .......30 R1:showipbgpsummary............................ .....................................30 R1:showipbgp ......... ................................. .................... ...........31 R1:showiproute bgp ............................... ................................ .....32 R4:showipbgpsummary........ ............... ................... .................... ...33 R4:showipbgp ................................. ....... ................................. 33 InboundRouteFiltering.. ............. ................................. .................... ...34 VerifyingtheInboundFilter .............. .......................... ...........................39 R1:showipbgp ................... ............... .......................................39 R1:showipbgp ................................. .......... ..............................39 R4:showipbgp ................ ................................. ........................40 R4:showipbgp ................................. ...... ............... ................... 41 OutboundRouteFiltering............. ........................................................41 VerifyingtheOutboundFilter....... ................................... ........................45 AS200:showipbgp ...................... ................................. ...............45 AS200: showipbgp ......................................................................46 Confederations............................ ............... ................... ................46 VerifyingtheConfederation............................................................ .......54 R1:showipbgpsummary.......................... .................................... ...54 R1:showipbgp ....... ..................................................................55 R2:showipbgpsummary............................. ............... ................... ..56 R2:showipbgp .......... ............... ................... .............................56 R3:showipbgpsummary................................. ................................57 R3:showipbgp .............. ................................. ..........................57 R4:showipbgpsummary.................................... .............................58 R4:showipbgp ............ ..... ........................................................58 RouteReflectors................................ ............ .................................59 VerifyingtheRouteReflector............. .....................................................65 R1:showipbgpsummary.......................................... ............... ........65 R1:showipbgp ............ ........... ............... ................... ................66 R2:showipbgpsummary.................................................................66 R2:showipbgp ........................... ................................. .............67 R3:showipbgp summary................................. ................. ...............67 R3:showipbgp .............................. ...........................................68 R4:showipbgpsummary.. ............... ................... .............................69 R4:showipbgp ............ ................... ... .................................... ...69 RouteRedirection ......... ..................................................................70 ConfiguringIPv6RoutingwithBGP....................... ...... ............... ................... ..70 EnableForwardingonR1andR2........ ............... ................... .....................71 ConfigureIPv6BGPPeer ........................... ................ ...........................71 AdvertiseConnectedNetworks .................... ................................. ...........73 v BGP 6.5R1v01 Vyatta ConfirmAdvertisedRoutes ............................ ................... .....................73 Chapter2GlobalandRouter‐SpecificConfiguration ................................ 75 GlobalandRouter‐SpecificCommands ...................... ........................................76 monitorprotocolbgpdisable .................. .............. ..................................81 monitorprotocolbgpdisableall............ ................................. ...................82 monitorprotocolbgpdisableevents ....................................... ..... ................83 monitorprotocolbgpdisablefilters............. ................. ............... ................84 monitorprotocolbgpdisablefsm .............. ................................................85 monitorprotocol bgpdisablekeepalives.................................................. .. .....86 monitorprotocolbgpdisablerib..................................... ..........................87 monitorprotocolbgpdisableupdates.................... .................................... ...88 monitorprotocolbgpenable ....... ................................. ..........................89 monitorprotocolbgpenableevents....... .. ........................... ........................90 monitorprotocolbgpenablefilters ..... ................. ............... ................... .....91 monitorprotocolbgpenablefsm....... ........................................................92 monitorprotocolbgpenablekeepalives ......................................... ................93 monitorprotocolbgpenablerib .... ................... ...... ..................................94 monitorprotocolbgpenableupdates ............ .................................... ...........95 protocolsbgp<asn>. ................................. ........................................96 protocolsbgp<asn>address‐familyipv6‐unicast ..................... .............................98 protocolsbgp<asn>address‐familyipv6‐unicastaggregate‐address<ipv6net>............ .............99 protocolsbgp<asn>address‐familyipv6‐unicastnetwork<ipv6net> .................. .......... ....101 protocolsbgp<asn>aggregate‐address<ipv4net> ........... ............................. .......103 protocolsbgp<asn>maximum‐pathsebgp<max‐paths>................ ................... .......105 protocolsbgp<asn>maximum‐pathsibgp<max‐paths>.................................... .......107 protocolsbgp<asn>network<ipv4net> ....................................... ............... ..109 protocolsbgp<asn>parametersalways‐compare‐med .................... ...... ............... ..111 protocolsbgp<asn>parametersbestpathas‐path .......................... ............... ......113 protocolsbgp<asn>parametersbestpathcompare‐routerid....................... ............... .115 protocolsbgp<asn>parametersbestpathmed ............................. ............... ......117 protocolsbgp<asn>parametersdampening..... ................... ............................119 protocolsbgp<asn>parametersdefault...... ............ ............... ................... ....121 protocolsbgp<asn>parametersdeterministic‐med.... .. ............... ................... ......123 protocolsbgp<asn>parametersdistanceglobal.... ............... ..............................124 protocolsbgp<asn>parametersdistance prefix<ipv4net>distance<dist>....... ................... .126 protocolsbgp<asn>parametersdisable‐network‐import‐check........... ............... ..........128 protocolsbgp<asn>parametersenforce‐first‐as..... .............. ............... ...............130 protocolsbgp<asn>parametersgraceful‐restart............... ..................................132 protocolsbgp<asn>parameterslog‐neighbor‐changes ......... ..................................134 protocolsbgp<asn>parametersno‐fast‐external‐failover........ ............... ..................136 vi BGP 6.5R1v01 Vyatta protocolsbgp<asn>parametersrouter‐id<id> ................................... ...............138 protocolsbgp<asn>parametersscan‐time<seconds> ............................. .......... .....140 protocolsbgp<asn>timers.......................................... .........................142 resetipbgp<address> ..................... .................................................144 reset ipbgp<address>ipv4unicast ............. ................... ............................146 resetipbgpall.... .. .......................... ............... ..............................148 resetipbgpdampening.. ................................ .. ................. .................149 showipbgp .............................. .................................................150 show ipbgpattribute‐info .................. .................................................151 showipbgpcidr‐only......................... ...............................................152 showipbgp community‐info .......... ................... ................... .................153 showipbgpcommunity<community>............................. ............................154 showipbgpcommunity‐list<list‐name>...... .......... ................................. .......155 showipbgpdampened‐paths ..... ................................. ..........................156 showipbgpfilter‐list<as‐path‐list‐name> .......................... ...... ............... .......157 showipbgpflap‐statistics........................ ................................ .. ..........158 showipbgpflap‐statisticscidr‐ only ................... ................... ......................159 showipbgpflap‐statisticsfilter‐list<as‐path‐list‐name>............................... ............160 showipbgpflap‐statisticsprefix‐list<list‐name>..................... .. ....... ...................161 showipbgpflap‐statisticsregexp<expr>........... ............. ...............................162 showipbgpflap‐statisticsroute‐map<map‐name> .......... ....................................163 showipbgpipv4unicast .......... ................................. ..........................164 showipbgpipv4unicastcidr‐only ................. .................. ..........................165 showipbgpipv4unicastcommunity<community> ................. ............... ..............166 showipbgpipv4unicastcommunity‐list<list‐name>............ ............... ..................167 showipbgpipv4unicastfilter‐list<as‐path‐list‐name>..... .. ............... ......................168 showipbgpipv4unicastpaths........ ............... ................... .................... ..169 showipbgpipv4unicastprefix‐list<list‐name> ................................... .. .............170 showipbgpipv4unicastregexp<regexp> ..................... ......... ........................171 showipbgpipv4unicastroute‐map<map‐name> ................. ..............................172 showipbgpipv4unicaststatistics ............... .................................... ..........173 showipbgpipv4 unicastsummary .......... ................... ................... ............174 showipbgpmemory ................................... ............... ......................175 showipbgppaths ......... ............... ................... ................. ..............176 showipbgpprefix‐list<list‐name> ............................. ...............................177 showipbgpregexp<regexp> ............... ................................. .................178 showipbgproute‐map<map‐name>........................................... ...............179 showipbgpscan....................... ........ ................................ ............180 showiproutebgp .. ............... ................... .................... ..................181 showipv6bgp .......................... ................................. ..................183 showipv6bgpcommunity<community>................... ......................... ...........184 vii BGP 6.5R1v01 Vyatta showipv6bgpcommunity‐list<list‐name>............ ..........................................185 showipv6bgpfilter‐list<as‐path‐list‐name> ................................ ....................186 showipv6bgpprefix‐list<list‐name> ....................... ................................. ..187 showipv6bgpregexp<regexp> ........... ....................................................188 showmonitoringprotocolsbgp................................ ............ ............... ....189 Chapter3RouteReflection....................................................190 RouteReflectionCommands ................. ................... .................................191 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastroute‐reflector‐client................. .192 protocolsbgp<asn>neighbor<id>route‐reflector‐client ...................... .................... 194 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastroute‐reflector‐client .......197 protocolsbgp<asn>peer‐group<group‐name>route ‐reflector‐client............. ..... .............199 protocolsbgp<asn>parameterscluster‐id<id>... ................... ......... ............... ....201 protocolsbgp<asn>parametersno‐client‐to‐client‐reflection ..... .................. ...............203 Chapter4Confederations.....................................................205 ConfederationCommands.......................................................................206 protocolsbgp<asn>parametersconfederationidentifier<asn> ...................... ..............207 protocolsbgp<asn>parametersconfederationpeers<asn>........................... .. ..........209 Chapter5Neighbors.........................................................211 NeighborCommands ...........................................................................212 protocolsbgp<asn>neighbor<id> ................... .........................................217 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicast. ....................................219 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastallowas‐in ... ........................220 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastattribute‐unchanged ............... ...222 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastcapabilitydynamic ....................224 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastcapabilityorf ..... ....................226 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastdefault‐originate ............. ....... ..228 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastdisable‐send‐community........ .......230 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastdistribute‐listexport<access‐list6‐name>.232 protocolsbgp<asn>neighbor <id>address‐familyipv6‐unicastdistribute‐listimport<access‐list6‐name> .234 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastfilter‐listexport<as‐path‐list‐name> .....236 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastfilter‐listimport<as‐path‐list‐name>.. ...238 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastmaximum‐prefix<max‐num> ...........240 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastnexthop‐localunchanged........... ....242 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastnexthop‐self ........... ..............244 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastpeer ‐group<group‐name> ............ .246 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastprefix‐listexport<prefix‐list6‐name> .....248 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastprefix‐listimport<prefix‐list6‐ name>.....250 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastremove‐private‐as ....................252 viii BGP 6.5R1v01 Vyatta protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastroute‐mapexport<map‐name>.........254 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastroute‐mapimport<map‐name> .........256 protocolsbgp<asn>neighbor<id> address‐familyipv6‐unicastsoft‐reconfigurationinbound ...........258 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastunsuppress‐map<map‐name>..........260 protocolsbgp<asn>neighbor<id>advertisement‐interval<seconds> . ............... ...............262 protocolsbgp<asn>neighbor<id>allowas‐in............. ............... ................... ....264 protocolsbgp<asn>neighbor<id>attribute‐unchanged ..... ............... ......................266 protocolsbgp<asn>neighbor<id>capabilitydynamic ....... ............... ......................268 protocolsbgp<asn>neighbor<id>capabilityorf....... ..........................................270 protocolsbgp<asn>neighbor<id>default‐originate . ................................ .. ..........272 protocolsbgp<asn>neighbor<id>description <desc> ............................. ...............274 protocolsbgp<asn>neighbor<id>disable‐ capability‐neg otiation.................................. .276 protocolsbgp<asn>neighbor<id>disable‐connected‐check....... ............... .................278 protocolsbgp<asn>neighbor<id>disable‐send‐community ........... ............................280 protocolsbgp<asn>neighbor<id>distribute‐listexport<acl‐num> ............. ....................282 protocolsbgp<asn>neighbor<id>distribute‐listimport<acl‐num>..................... ............284 protocolsbgp<asn>neighbor<id>ebgp‐multihop<ttl> ....................... ........ ............286 protocolsbgp<asn>neighbor<id>filter‐listexport<as‐path‐list‐name>...................... .... ...288 protocolsbgp<asn>neighbor<id>filter‐listimport<as‐path‐list‐name> ....................... .. ....290 protocolsbgp<asn>neighbor<id>local‐as <asn> ................................................292 protocolsbgp <asn>neighbor<id>maximum‐prefix<max‐num>...................................294 protocolsbgp<asn>neighbor<id>nexthop‐self. ................................. ...............296 protocolsbgp <asn>neighbor<id>override‐capability ............................................298 protocolsbgp <asn>neighbor<id>passive.......................................... .. ..........300 protocolsbgp<asn>neighbor<id>password<pwd> .... ................... ............. .........302 protocolsbgp<asn>neighbor<id>peer‐group<group‐name> ................................ .....304 protocolsbgp<asn>neighbor<id>port<port‐num> ............................... ...... ........306 protocolsbgp<asn>neighbor<id>prefix‐listexport<list‐name> ................................ ...308 protocolsbgp<asn>neighbor<id>prefix‐listimport<list‐name>...................................310 protocolsbgp <asn>neighbor<id>remote‐as<asn>....................... .......................312 protocolsbgp<asn>neighbor<id>remove‐private‐as........................ ................. ...314 protocolsbgp<asn>neighbor<id>route‐mapexport<map‐name> .................................316 protocolsbgp<asn>neighbor<id> route‐mapimport<map‐name>..................... ............318 protocolsbgp<asn>neighbor<id>shutdown ....... ............................................320 protocolsbgp<asn>neighbor<id>soft ‐reconfigurationinbound...................................322 protocolsbgp<asn>neighbor<id>strict‐capability‐match...... ................................. ..324 protocolsbgp<asn>neighbor<id>timers ......... ................................. ............326 protocolsbgp<asn>neighbor<id> ttl‐securityhops<hops> ..................... ..................328 protocolsbgp<asn>neighbor<id>unsuppress‐map <map‐name> ............................ ......330 protocolsbgp<asn>neighbor<id>update‐source<source> ....... ................................332 protocolsbgp<asn>neighbor<id>weight<weight>............ ................................. .334 ix BGP 6.5R1v01 Vyatta resetipbgpexternal........................................................................336 resetipbgpexternalipv4unicast....... ............. ................................. .........338 showipbgpipv4unicastneighbors ... .........................................................340 showipbgpipv4unicastneighbors<id>advertised‐routes ...................... ............ ......341 showipbgpipv4unicastneighbors<id>prefix‐counts... ................... ............. .........342 showipbgpipv4unicastneighbors<id>receivedprefix‐filter .................... ............ ......343 showipbgpipv4unicastneighbors<id>received‐routes ......................... .. ......... ......344 showipbgpipv4unicastneighbors<id>routes ..................................... .............345 showipbgpneighbors... ............................... ............... ......................346 showipbgpneighbors<id>advertised‐routes ....... ................................ .. ..........347 showipbgpneighbors<id>dampened‐ routes...................................................348 showipbgpneighbors<id>flap‐statistics......................... ................... ...........349 showipbgpneighbors<id>prefix‐co unts..... ............................ ......................350 showipbgpneighbors<id>receivedprefix‐filter..................... ............................351 showipbgpneighbors<id>received‐routes................ ................................. ....352 showipbgpneighbors<id>routes ....... ................................. ....................353 showipv6bgpneighbors............................................ ............... ..........354 showipv6bgpneighbors<ipv6>advertised‐routes ................... ............................355 showipv6bgpneighbors<ipv6>received‐routes .. .. ........... ............... ..................356 showipv6bgpneighbors<ipv6>routes ........... ............... ..............................357 Chapter6PeerGroups ....................................................... 358 PeerGroupCommands........................... ...............................................359 protocolsbgp<asn>peer‐group<group‐name> .................. ...............................363 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicast ......... .................365 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastallowas‐in.................366 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastattribute‐unchanged........368 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastcapabilitydynamic .........370 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicast capabilityorf..............372 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastdefault‐originate ...........374 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐ unicastdisable‐send‐community ....376 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastdistribute‐listexport <access‐list6‐name> ............ ............. ...............................................378 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastdistribute‐listimport <access‐list6‐name> ............ ......................... ................................. ..380 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastfilter‐listexport<as ‐path‐list‐name> 382 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastfilter‐listimport <as‐path‐list‐name>.............................. ............... ................... .........384 protocolsbgp<asn>peer‐group<group‐name> address‐familyipv6‐unicastmaximum‐prefix<max‐num>.386 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastnexthop‐localunchanged ....388 x BGP 6.5R1v01 Vyatta protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastnexthop‐self...............390 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastprefix‐listexport <prefix‐list6‐name>...... ............... ................... .................................392 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastprefix‐listimport <prefix‐list6‐name>................. ................................. .......................394 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastremove‐pr ivate‐as..........396 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastroute‐mapexport<map‐name> .. 398 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastroute‐mapimp or t<map‐name>.. 400 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastsoft‐reconfigurationinbound.402 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastunsuppress‐map<map‐name>404 protocolsbgp<asn>peer‐group <group‐name>allowas‐in ....................................... .406 protocolsbgp<asn>peer‐group<group‐ name>attribute‐unchanged ...............................408 protocolsbgp<asn>peer‐group<group‐name>capabilitydynamic....... ..........................410 protocolsbgp<asn>peer‐group<group‐name>capabilityorf ..... ........... ............... .......412 protocolsbgp<asn>peer‐group<group‐name>default‐originate.................... ...............414 protocolsbgp<asn>peer‐group<group‐name>description<desc>............. ............. .......416 protocolsbgp<asn>peer‐group<group‐name>disable‐capability‐negotiation............ ............418 protocolsbgp<asn>peer‐group<group‐name>disable‐connected‐check . ...........................420 protocolsbgp<asn>peer‐group<group‐name>disable‐send‐community .............. ..............422 protocolsbgp<asn>peer‐group<group‐name>distribute‐listexport<acl‐num>......................424 protocols bgp<asn>peer‐group<group‐name>distribute‐listimport<acl‐num> ......................426 protocolsbgp<asn>peer‐group<group‐name>ebgp‐multihop <ttl> ......... .......................428 protocolsbgp<asn>peer‐group<group‐name>filter‐listexport<as‐path‐list‐name> ............. .....430 protocolsbgp<asn>peer‐group<group‐name>filter‐listimport<as‐path‐list‐name>................ ..432 protocolsbgp<asn>peer‐group<group‐name>local‐as<asn>... ................................. .434 protocolsbgp<asn>peer‐group<group‐name>maximum‐prefix<max‐num> ..... ...................436 protocolsbgp<asn>peer‐group<group‐name>nexthop‐self ...................... ................438 protocolsbgp<asn>peer‐group<group‐name>override‐capability......................... ........440 protocolsbgp<asn>peer‐group<group‐name>passive .................... ............... ........442 protocolsbgp<asn>peer‐group<group‐name>password<pwd>.................... .............. .444 protocolsbgp<asn>peer‐group<group‐name>prefix ‐listexport<list‐name> ........................446 protocolsbgp<asn>peer‐group<group‐name>prefix ‐listimport<list‐name> ............... .........448 protocolsbgp<asn>peer‐group<group‐name>remote‐as<asn> ................. ..................450 protocolsbgp<asn>peer‐group<group‐name>remove ‐private‐as ...................... ...........452 protocolsbgp<asn>peer‐group<group‐name>route ‐mapexport <map‐name>............... .......454 protocolsbgp<asn>peer‐group <group‐name>route‐mapimport<map‐name> ......................456 protocolsbgp<asn>peer‐group<group‐name>shutdown .............. ..........................458 protocolsbgp<asn>peer‐group<group‐name>soft‐reconfigurationinbound .............. ..........460 protocolsbgp<asn>peer‐group<group‐name>ttl‐securityhops<hops> ............................462 [...]... Border Gateway Protocol on the Vyatta System The following topics are covered: • • Supported Standards • Configuring BGP • BGP BGP Overview Configuring IPv6 Routing with BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration BGP Overview 2 BGP Overview This section presents the following topics: • iBGP and eBGP • BGP ID Selection Process • BGP Path Selection Process • Scalability of BGP • Route Flapping and... loopback address vyatta@ R1# set protocols bgp 100 parameters router‐id 10.0.0.11 R1 Commit the configuration vyatta@ R1# commit R1 Verify the configuration vyatta@ R1# show interfaces loopback loopback lo { address 10.0.0.11/32 } vyatta@ R1# show protocols bgp bgp 100 { parameters { router‐id 10.0.0.11 } } BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration BGP Overview 6 BGP Path Selection Process The BGP process... ip bgp command to see the current best paths in the RIB BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration BGP Overview 7 Scalability of BGP The Border Gateway Protocol 4 specification (RFC 4271) requires that iBGP peers be fully meshed; that is, every iBGP peer must have a connection to every other iBGP peer A full mesh of iBGP peers does not scale well to large ASs, which can have hundreds of iBGP... receives an iBGP announcement, the BGP process uses the BGP best path selection algorithm to determine whether the received announcement is the best available path for that prefix If it is the best available path, then the BGP process uses this route as the BGP candidate route for insertion into the routing table, and BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration BGP Overview 4 the BGP process... 6. 5R1 v01 Vyatta xiii protocols bgp neighbor address‐family ipv6‐unicast distribute‐list export . . . . 232 protocols bgp neighbor address‐family ipv6‐unicast distribute‐list import . . . . . 234 protocols bgp neighbor address‐family ipv6‐unicast filter‐list export . . . . . . . . . 2 36 protocols bgp neighbor address‐family ipv6‐unicast filter‐list import ... are received on a BGP router are placed into the router’s BGP table (These routes are typically referred to as BGP paths.) This means that, for a particular network prefix—for example, 10.0.0.0/8—the local BGP router might have recorded multiple available paths: one through any of its BGP peers For BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration BGP Overview 3 each prefix, the BGP process uses a... participating in iBGP Figure 1‐1 iBGP full mesh BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration BGP Overview 8 Figure 1-2 shows a BGP confederation that splits the single AS shown in Figure 1-1 into three sub-ASs, which each use private AS numbers Within each sub-AS, all of the iBGP peers are fully meshed The sub-ASs are connected to one another using an eBGP connection Figure 1‐2 BGP confederation... Verifying eBGP on R1: “show ip bgp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 BGP 6. 5R1 v01 Vyatta xx Preface This document describes the various deployment, installation, and upgrade options for Vyatta software This preface provides information about using this guide The following topics are presented: • • Organization of This Guide • Document Conventions • BGP Intended Audience Vyatta Publications 6. 5R1 v01 Vyatta Intended Audience xxi Intended Audience... For eBGP peerings, the BGP ID and peering IP address is typically the local IP address of the interface that is being used to connect to the eBGP peers However if more than one physical interface is being used for eBGP peering it is also common to use a loopback IP address as the BGP ID, but still use the physical interface IP address as the peering IP address BGP 6. 5R1 v01 Vyatta Chapter 1: BGP Configuration ... documentation is provided in the Vyatta technical library To see what documentation is available for your release, see the Guide to Vyatta Documentation This guide is posted with every release of Vyatta software and provides a great starting point for finding the information you need Additional information is available on www .vyatta. com and www .vyatta. org BGP 6. 5R1 v01 Vyatta 1 Chapter 1: BGP Configuration This . VyattaSystem BGP REFERENCEGUIDE COPYRIGHT Copyright©2005–2012Vyatta,Inc.Allrightsreserved. Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof documentation,visittheVyattawebsiteatvyatta.com. PROPRIETARYNOTICES VyattaisaregisteredtrademarkofVyatta,Inc. Hyper‐VisaregisteredtrademarkofMicrosoftCorporation. VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc. XenServer,andXenCenteraretrademarksofCitrixSystems,Inc. Allothertrademarksarethepropertyoftheirrespectiveowners. RELEASEDATE:October2012 DOCUMENTREVISION. 6. 5R1 v01 RELEASEDWITH: 6. 5R1 PARTNO.A0‐02 16 10‐00 16 iii BGP 6. 5R1 v01 Vyatta Contents QuickListofCommands....................................................... .........384 protocolsbgp<asn>peer‐group<group‐name> address‐familyipv6‐unicastmaximum‐prefix<max‐num>.3 86 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastnexthop‐localunchanged ....388 x BGP 6. 5R1 v01. ......... ................. 365 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastallowas‐in................. 366 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastattribute‐unchanged........ 368 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastcapabilitydynamic