Tài liệu học về Vyatta BGP 6 5r1 v01

536 874 0
Tài liệu học về  Vyatta BGP 6 5r1 v01

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Vyatta Suite200 1301ShorewayRoad Belmont,CA94002 vyatta.com 6504137200 1888VYATTA1(USandCanada) VYATTA,INC. |  VyattaSystem BGP REFERENCEGUIDE COPYRIGHT Copyright©2005–2012Vyatta,Inc.Allrightsreserved. Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof documentation,visittheVyattawebsiteatvyatta.com. PROPRIETARYNOTICES VyattaisaregisteredtrademarkofVyatta,Inc. Hyper‐VisaregisteredtrademarkofMicrosoftCorporation. VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc. XenServer,andXenCenteraretrademarksofCitrixSystems,Inc. Allothertrademarksarethepropertyoftheirrespectiveowners. RELEASEDATE:October2012 DOCUMENTREVISION.6.5R1 v01 RELEASEDWITH:6.5R1 PARTNO.A0‐0216‐10‐0016 iii BGP 6.5R1v01 Vyatta Contents QuickListofCommands........................................................ xii ListofExamples ..............................................................xix Preface. .....................................................................xx IntendedAudience ................................. .............................................xxi OrganizationofThisGuide .................. ................................. .....................xxi DocumentConventions ....... ................... .................. ............... ..............xxiii VyattaPublicati ons................... .................................................... ......xxiv Chapter1BGPConfiguration .................................................... 1 BGPOverview .. ................... ........................................................ ......2 iBGPandeBGP .............. ................................. .................... ............3 iBGP ........................... ........ .................................................3 eBGP  ............... ................... ................. ................................4 BGPIDSelectionProcess............... .................................... ................. .. .5 BGPPathSelectionProcess......................................... ............................6 ScalabilityofBGP ............. ....... .........................................................7 Confederations ....................... ..................... ...............................7 RouteReflection .................. .................................... ................. .. .8 RouteFlappingandFlapDamping....................................... ............... ........10 ASPaths ......................... ............... ................... ................. .......11 BGPCommunities ......................................... ..................................12 PeerGroups........... ... ..................................................................13 BGPMultipathSupport ................................ ............... ................... .....13 IPv4andIPv6Support....... ............... ................... .................... ...........13 SupportedStandards................................... ..........................................14 ConfiguringBGP....... ..........................................................................14 BasiciBGPConfiguration........................ ............... ...............................15 VerifyingtheiBGPConfiguration ............... ................... .............................24 R1:showipbgpsummary................................. ................................24 R1:showipbgp .............. ................................. ..........................25 BasiceBGPConfiguration ...................................... ............... ................25 VerifyingtheeBGPConfiguration.. .............. ............... ................... .............27 R1:showip bgpsummary.................................................................27 R1:showipbgp .............................. ................................. ..........28 OriginatingaRoutetoeBGPNeighbors.. ................................. .................... ...28  iv BGP 6.5R1v01 Vyatta VerifyingtheRouteOrigination......................................................... .......30 R1:showipbgpsummary............................ .....................................30 R1:showipbgp ......... ................................. .................... ...........31 R1:showiproute bgp ...............................  ................................ .....32 R4:showipbgpsummary........ ............... ................... .................... ...33 R4:showipbgp ................................. ....... ................................. 33 InboundRouteFiltering.. ............. ................................. .................... ...34 VerifyingtheInboundFilter .............. .......................... ...........................39 R1:showipbgp ................... ............... .......................................39 R1:showipbgp ................................. .......... ..............................39 R4:showipbgp ................ ................................. ........................40 R4:showipbgp ................................. ...... ............... ................... 41 OutboundRouteFiltering............. ........................................................41 VerifyingtheOutboundFilter....... ................................... ........................45 AS200:showipbgp ...................... ................................. ...............45 AS200: showipbgp ......................................................................46 Confederations............................ ............... ................... ................46 VerifyingtheConfederation............................................................ .......54 R1:showipbgpsummary.......................... .................................... ...54 R1:showipbgp ....... ..................................................................55 R2:showipbgpsummary............................. ............... ................... ..56 R2:showipbgp .......... ............... ................... .............................56 R3:showipbgpsummary................................. ................................57 R3:showipbgp .............. ................................. ..........................57 R4:showipbgpsummary.................................... .............................58 R4:showipbgp ............ ..... ........................................................58 RouteReflectors................................ ............ .................................59 VerifyingtheRouteReflector............. .....................................................65 R1:showipbgpsummary.......................................... ............... ........65 R1:showipbgp ............ ........... ............... ................... ................66 R2:showipbgpsummary.................................................................66 R2:showipbgp ........................... ................................. .............67 R3:showipbgp summary................................. ................. ...............67 R3:showipbgp .............................. ...........................................68 R4:showipbgpsummary.. ............... ................... .............................69 R4:showipbgp ............ ................... ... .................................... ...69 RouteRedirection ......... ..................................................................70 ConfiguringIPv6RoutingwithBGP....................... ...... ............... ................... ..70 EnableForwardingonR1andR2........ ............... ................... .....................71 ConfigureIPv6BGPPeer ........................... ................ ...........................71 AdvertiseConnectedNetworks .................... ................................. ...........73  v BGP 6.5R1v01 Vyatta ConfirmAdvertisedRoutes ............................ ................... .....................73 Chapter2GlobalandRouter‐SpecificConfiguration ................................ 75 GlobalandRouter‐SpecificCommands ...................... ........................................76 monitorprotocolbgpdisable .................. .............. ..................................81 monitorprotocolbgpdisableall............ ................................. ...................82 monitorprotocolbgpdisableevents ....................................... ..... ................83 monitorprotocolbgpdisablefilters............. ................. ............... ................84 monitorprotocolbgpdisablefsm .............. ................................................85 monitorprotocol bgpdisablekeepalives.................................................. .. .....86 monitorprotocolbgpdisablerib..................................... ..........................87 monitorprotocolbgpdisableupdates.................... .................................... ...88 monitorprotocolbgpenable ....... ................................. ..........................89 monitorprotocolbgpenableevents....... .. ........................... ........................90 monitorprotocolbgpenablefilters ..... ................. ............... ................... .....91 monitorprotocolbgpenablefsm....... ........................................................92 monitorprotocolbgpenablekeepalives ......................................... ................93 monitorprotocolbgpenablerib .... ................... ...... ..................................94 monitorprotocolbgpenableupdates ............ .................................... ...........95 protocolsbgp<asn>. ................................. ........................................96 protocolsbgp<asn>address‐familyipv6‐unicast ..................... .............................98 protocolsbgp<asn>address‐familyipv6‐unicastaggregate‐address<ipv6net>............ .............99 protocolsbgp<asn>address‐familyipv6‐unicastnetwork<ipv6net> .................. .......... ....101 protocolsbgp<asn>aggregate‐address<ipv4net> ........... ............................. .......103 protocolsbgp<asn>maximum‐pathsebgp<max‐paths>................ ................... .......105 protocolsbgp<asn>maximum‐pathsibgp<max‐paths>.................................... .......107 protocolsbgp<asn>network<ipv4net> ....................................... ............... ..109 protocolsbgp<asn>parametersalways‐compare‐med .................... ...... ............... ..111 protocolsbgp<asn>parametersbestpathas‐path .......................... ............... ......113 protocolsbgp<asn>parametersbestpathcompare‐routerid....................... ............... .115 protocolsbgp<asn>parametersbestpathmed ............................. ............... ......117 protocolsbgp<asn>parametersdampening..... ................... ............................119 protocolsbgp<asn>parametersdefault...... ............ ............... ................... ....121 protocolsbgp<asn>parametersdeterministic‐med.... .. ............... ................... ......123 protocolsbgp<asn>parametersdistanceglobal.... ............... ..............................124 protocolsbgp<asn>parametersdistance prefix<ipv4net>distance<dist>....... ................... .126 protocolsbgp<asn>parametersdisable‐network‐import‐check........... ............... ..........128 protocolsbgp<asn>parametersenforce‐first‐as..... .............. ............... ...............130 protocolsbgp<asn>parametersgraceful‐restart............... ..................................132 protocolsbgp<asn>parameterslog‐neighbor‐changes ......... ..................................134 protocolsbgp<asn>parametersno‐fast‐external‐failover........ ............... ..................136  vi BGP 6.5R1v01 Vyatta protocolsbgp<asn>parametersrouter‐id<id> ................................... ...............138 protocolsbgp<asn>parametersscan‐time<seconds> ............................. .......... .....140 protocolsbgp<asn>timers.......................................... .........................142 resetipbgp<address> ..................... .................................................144 reset ipbgp<address>ipv4unicast ............. ................... ............................146 resetipbgpall.... .. .......................... ............... ..............................148 resetipbgpdampening.. ................................ .. ................. .................149 showipbgp .............................. .................................................150 show ipbgpattribute‐info .................. .................................................151 showipbgpcidr‐only......................... ...............................................152 showipbgp community‐info .......... ................... ................... .................153 showipbgpcommunity<community>............................. ............................154 showipbgpcommunity‐list<list‐name>...... .......... ................................. .......155 showipbgpdampened‐paths ..... ................................. ..........................156 showipbgpfilter‐list<as‐path‐list‐name> .......................... ...... ............... .......157 showipbgpflap‐statistics........................ ................................ .. ..........158 showipbgpflap‐statisticscidr‐ only ................... ................... ......................159 showipbgpflap‐statisticsfilter‐list<as‐path‐list‐name>............................... ............160 showipbgpflap‐statisticsprefix‐list<list‐name>..................... .. ....... ...................161 showipbgpflap‐statisticsregexp<expr>........... ............. ...............................162 showipbgpflap‐statisticsroute‐map<map‐name> .......... ....................................163 showipbgpipv4unicast .......... ................................. ..........................164 showipbgpipv4unicastcidr‐only ................. .................. ..........................165 showipbgpipv4unicastcommunity<community> ................. ............... ..............166 showipbgpipv4unicastcommunity‐list<list‐name>............ ............... ..................167 showipbgpipv4unicastfilter‐list<as‐path‐list‐name>..... .. ............... ......................168 showipbgpipv4unicastpaths........ ............... ................... .................... ..169 showipbgpipv4unicastprefix‐list<list‐name> ................................... .. .............170 showipbgpipv4unicastregexp<regexp> ..................... ......... ........................171 showipbgpipv4unicastroute‐map<map‐name> ................. ..............................172 showipbgpipv4unicaststatistics ............... .................................... ..........173 showipbgpipv4 unicastsummary .......... ................... ................... ............174 showipbgpmemory ................................... ............... ......................175 showipbgppaths ......... ............... ................... ................. ..............176 showipbgpprefix‐list<list‐name> ............................. ...............................177 showipbgpregexp<regexp> ............... ................................. .................178 showipbgproute‐map<map‐name>........................................... ...............179 showipbgpscan....................... ........ ................................ ............180 showiproutebgp .. ............... ................... .................... ..................181 showipv6bgp .......................... ................................. ..................183 showipv6bgpcommunity<community>................... ......................... ...........184  vii BGP 6.5R1v01 Vyatta showipv6bgpcommunity‐list<list‐name>............ ..........................................185 showipv6bgpfilter‐list<as‐path‐list‐name> ................................ ....................186 showipv6bgpprefix‐list<list‐name> ....................... ................................. ..187 showipv6bgpregexp<regexp> ........... ....................................................188 showmonitoringprotocolsbgp................................ ............ ............... ....189 Chapter3RouteReflection....................................................190 RouteReflectionCommands ................. ................... .................................191 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastroute‐reflector‐client................. .192 protocolsbgp<asn>neighbor<id>route‐reflector‐client ...................... .................... 194 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastroute‐reflector‐client .......197 protocolsbgp<asn>peer‐group<group‐name>route ‐reflector‐client............. ..... .............199 protocolsbgp<asn>parameterscluster‐id<id>... ................... ......... ............... ....201 protocolsbgp<asn>parametersno‐client‐to‐client‐reflection ..... .................. ...............203 Chapter4Confederations.....................................................205 ConfederationCommands.......................................................................206 protocolsbgp<asn>parametersconfederationidentifier<asn> ...................... ..............207 protocolsbgp<asn>parametersconfederationpeers<asn>........................... .. ..........209 Chapter5Neighbors.........................................................211 NeighborCommands ...........................................................................212 protocolsbgp<asn>neighbor<id> ................... .........................................217 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicast. ....................................219 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastallowas‐in ... ........................220 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastattribute‐unchanged ............... ...222 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastcapabilitydynamic ....................224 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastcapabilityorf ..... ....................226 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastdefault‐originate ............. ....... ..228 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastdisable‐send‐community........ .......230 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastdistribute‐listexport<access‐list6‐name>.232 protocolsbgp<asn>neighbor <id>address‐familyipv6‐unicastdistribute‐listimport<access‐list6‐name> .234 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastfilter‐listexport<as‐path‐list‐name> .....236 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastfilter‐listimport<as‐path‐list‐name>.. ...238 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastmaximum‐prefix<max‐num> ...........240 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastnexthop‐localunchanged........... ....242 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastnexthop‐self ........... ..............244 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastpeer ‐group<group‐name> ............ .246 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastprefix‐listexport<prefix‐list6‐name> .....248 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastprefix‐listimport<prefix‐list6‐ name>.....250 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastremove‐private‐as ....................252  viii BGP 6.5R1v01 Vyatta protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastroute‐mapexport<map‐name>.........254 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastroute‐mapimport<map‐name> .........256 protocolsbgp<asn>neighbor<id> address‐familyipv6‐unicastsoft‐reconfigurationinbound ...........258 protocolsbgp<asn>neighbor<id>address‐familyipv6‐unicastunsuppress‐map<map‐name>..........260 protocolsbgp<asn>neighbor<id>advertisement‐interval<seconds> . ............... ...............262 protocolsbgp<asn>neighbor<id>allowas‐in............. ............... ................... ....264 protocolsbgp<asn>neighbor<id>attribute‐unchanged ..... ............... ......................266 protocolsbgp<asn>neighbor<id>capabilitydynamic ....... ............... ......................268 protocolsbgp<asn>neighbor<id>capabilityorf....... ..........................................270 protocolsbgp<asn>neighbor<id>default‐originate . ................................ .. ..........272 protocolsbgp<asn>neighbor<id>description <desc> ............................. ...............274 protocolsbgp<asn>neighbor<id>disable‐ capability‐neg otiation.................................. .276 protocolsbgp<asn>neighbor<id>disable‐connected‐check....... ............... .................278 protocolsbgp<asn>neighbor<id>disable‐send‐community ........... ............................280 protocolsbgp<asn>neighbor<id>distribute‐listexport<acl‐num> ............. ....................282 protocolsbgp<asn>neighbor<id>distribute‐listimport<acl‐num>..................... ............284 protocolsbgp<asn>neighbor<id>ebgp‐multihop<ttl> ....................... ........ ............286 protocolsbgp<asn>neighbor<id>filter‐listexport<as‐path‐list‐name>...................... .... ...288 protocolsbgp<asn>neighbor<id>filter‐listimport<as‐path‐list‐name> ....................... .. ....290 protocolsbgp<asn>neighbor<id>local‐as <asn> ................................................292 protocolsbgp <asn>neighbor<id>maximum‐prefix<max‐num>...................................294 protocolsbgp<asn>neighbor<id>nexthop‐self. ................................. ...............296 protocolsbgp <asn>neighbor<id>override‐capability ............................................298 protocolsbgp <asn>neighbor<id>passive.......................................... .. ..........300 protocolsbgp<asn>neighbor<id>password<pwd> .... ................... ............. .........302 protocolsbgp<asn>neighbor<id>peer‐group<group‐name> ................................ .....304 protocolsbgp<asn>neighbor<id>port<port‐num> ............................... ...... ........306 protocolsbgp<asn>neighbor<id>prefix‐listexport<list‐name> ................................ ...308 protocolsbgp<asn>neighbor<id>prefix‐listimport<list‐name>...................................310 protocolsbgp <asn>neighbor<id>remote‐as<asn>....................... .......................312 protocolsbgp<asn>neighbor<id>remove‐private‐as........................ ................. ...314 protocolsbgp<asn>neighbor<id>route‐mapexport<map‐name> .................................316 protocolsbgp<asn>neighbor<id> route‐mapimport<map‐name>..................... ............318 protocolsbgp<asn>neighbor<id>shutdown ....... ............................................320 protocolsbgp<asn>neighbor<id>soft ‐reconfigurationinbound...................................322 protocolsbgp<asn>neighbor<id>strict‐capability‐match...... ................................. ..324 protocolsbgp<asn>neighbor<id>timers ......... ................................. ............326 protocolsbgp<asn>neighbor<id> ttl‐securityhops<hops> ..................... ..................328 protocolsbgp<asn>neighbor<id>unsuppress‐map <map‐name> ............................ ......330 protocolsbgp<asn>neighbor<id>update‐source<source> ....... ................................332 protocolsbgp<asn>neighbor<id>weight<weight>............ ................................. .334  ix BGP 6.5R1v01 Vyatta resetipbgpexternal........................................................................336 resetipbgpexternalipv4unicast....... ............. ................................. .........338 showipbgpipv4unicastneighbors ... .........................................................340 showipbgpipv4unicastneighbors<id>advertised‐routes ...................... ............ ......341 showipbgpipv4unicastneighbors<id>prefix‐counts... ................... ............. .........342 showipbgpipv4unicastneighbors<id>receivedprefix‐filter .................... ............ ......343 showipbgpipv4unicastneighbors<id>received‐routes ......................... .. ......... ......344 showipbgpipv4unicastneighbors<id>routes ..................................... .............345 showipbgpneighbors... ............................... ............... ......................346 showipbgpneighbors<id>advertised‐routes ....... ................................ .. ..........347 showipbgpneighbors<id>dampened‐ routes...................................................348 showipbgpneighbors<id>flap‐statistics......................... ................... ...........349 showipbgpneighbors<id>prefix‐co unts..... ............................ ......................350 showipbgpneighbors<id>receivedprefix‐filter..................... ............................351 showipbgpneighbors<id>received‐routes................ ................................. ....352 showipbgpneighbors<id>routes ....... ................................. ....................353 showipv6bgpneighbors............................................ ............... ..........354 showipv6bgpneighbors<ipv6>advertised‐routes ................... ............................355 showipv6bgpneighbors<ipv6>received‐routes .. .. ........... ............... ..................356 showipv6bgpneighbors<ipv6>routes ........... ............... ..............................357 Chapter6PeerGroups ....................................................... 358 PeerGroupCommands........................... ...............................................359 protocolsbgp<asn>peer‐group<group‐name> .................. ...............................363 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicast ......... .................365 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastallowas‐in.................366 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastattribute‐unchanged........368 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastcapabilitydynamic .........370 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicast capabilityorf..............372 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastdefault‐originate ...........374 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐ unicastdisable‐send‐community ....376 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastdistribute‐listexport <access‐list6‐name> ............ ............. ...............................................378 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastdistribute‐listimport <access‐list6‐name> ............ ......................... ................................. ..380 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastfilter‐listexport<as ‐path‐list‐name> 382 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastfilter‐listimport <as‐path‐list‐name>.............................. ............... ................... .........384 protocolsbgp<asn>peer‐group<group‐name> address‐familyipv6‐unicastmaximum‐prefix<max‐num>.386 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastnexthop‐localunchanged ....388  x BGP 6.5R1v01 Vyatta protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastnexthop‐self...............390 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastprefix‐listexport <prefix‐list6‐name>...... ............... ................... .................................392 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastprefix‐listimport <prefix‐list6‐name>................. ................................. .......................394 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastremove‐pr ivate‐as..........396 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastroute‐mapexport<map‐name> .. 398 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastroute‐mapimp or t<map‐name>.. 400 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastsoft‐reconfigurationinbound.402 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastunsuppress‐map<map‐name>404 protocolsbgp<asn>peer‐group <group‐name>allowas‐in ....................................... .406 protocolsbgp<asn>peer‐group<group‐ name>attribute‐unchanged ...............................408 protocolsbgp<asn>peer‐group<group‐name>capabilitydynamic....... ..........................410 protocolsbgp<asn>peer‐group<group‐name>capabilityorf ..... ........... ............... .......412 protocolsbgp<asn>peer‐group<group‐name>default‐originate.................... ...............414 protocolsbgp<asn>peer‐group<group‐name>description<desc>............. ............. .......416 protocolsbgp<asn>peer‐group<group‐name>disable‐capability‐negotiation............ ............418 protocolsbgp<asn>peer‐group<group‐name>disable‐connected‐check . ...........................420 protocolsbgp<asn>peer‐group<group‐name>disable‐send‐community .............. ..............422 protocolsbgp<asn>peer‐group<group‐name>distribute‐listexport<acl‐num>......................424 protocols bgp<asn>peer‐group<group‐name>distribute‐listimport<acl‐num> ......................426 protocolsbgp<asn>peer‐group<group‐name>ebgp‐multihop <ttl> ......... .......................428 protocolsbgp<asn>peer‐group<group‐name>filter‐listexport<as‐path‐list‐name> ............. .....430 protocolsbgp<asn>peer‐group<group‐name>filter‐listimport<as‐path‐list‐name>................ ..432 protocolsbgp<asn>peer‐group<group‐name>local‐as<asn>... ................................. .434 protocolsbgp<asn>peer‐group<group‐name>maximum‐prefix<max‐num> ..... ...................436 protocolsbgp<asn>peer‐group<group‐name>nexthop‐self ...................... ................438 protocolsbgp<asn>peer‐group<group‐name>override‐capability......................... ........440 protocolsbgp<asn>peer‐group<group‐name>passive .................... ............... ........442 protocolsbgp<asn>peer‐group<group‐name>password<pwd>.................... .............. .444 protocolsbgp<asn>peer‐group<group‐name>prefix ‐listexport<list‐name> ........................446 protocolsbgp<asn>peer‐group<group‐name>prefix ‐listimport<list‐name>  ............... .........448 protocolsbgp<asn>peer‐group<group‐name>remote‐as<asn> ................. ..................450 protocolsbgp<asn>peer‐group<group‐name>remove ‐private‐as ...................... ...........452 protocolsbgp<asn>peer‐group<group‐name>route ‐mapexport <map‐name>............... .......454 protocolsbgp<asn>peer‐group <group‐name>route‐mapimport<map‐name> ......................456 protocolsbgp<asn>peer‐group<group‐name>shutdown .............. ..........................458 protocolsbgp<asn>peer‐group<group‐name>soft‐reconfigurationinbound .............. ..........460 protocolsbgp<asn>peer‐group<group‐name>ttl‐securityhops<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 . VyattaSystem BGP REFERENCEGUIDE COPYRIGHT Copyright©2005–2012Vyatta,Inc.Allrightsreserved. Vyattareservestherighttomakechangestosoftware,hardware,anddocumentationwithoutnotice.Forthemostrecentversionof documentation,visittheVyattawebsiteatvyatta.com. PROPRIETARYNOTICES VyattaisaregisteredtrademarkofVyatta,Inc. Hyper‐VisaregisteredtrademarkofMicrosoftCorporation. VMware,VMwareESX,andVMwareserveraretrademarksofVMware,Inc. XenServer,andXenCenteraretrademarksofCitrixSystems,Inc. Allothertrademarksarethepropertyoftheirrespectiveowners. RELEASEDATE:October2012 DOCUMENTREVISION. 6. 5R1 v01 RELEASEDWITH: 6. 5R1 PARTNO.A0‐02 16 10‐00 16 iii BGP 6. 5R1 v01 Vyatta Contents QuickListofCommands....................................................... .........384 protocolsbgp<asn>peer‐group<group‐name> address‐familyipv6‐unicastmaximum‐prefix<max‐num>.3 86 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastnexthop‐localunchanged ....388  x BGP 6. 5R1 v01. ......... ................. 365 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastallowas‐in................. 366 protocolsbgp<asn> peer‐group<group‐name>address‐familyipv6‐unicastattribute‐unchanged........ 368 protocolsbgp<asn>peer‐group<group‐name>address‐familyipv6‐unicastcapabilitydynamic

Ngày đăng: 06/07/2015, 07:34

Mục lục

  • Quick List of Commands

  • Organization of This Guide

  • Chapter 1: BGP Configuration

    • BGP Overview

      • iBGP and eBGP

        • iBGP

        • BGP ID Selection Process

        • BGP Path Selection Process

        • Route Flapping and Flap Damping

        • IPv4 and IPv6 Support

        • Configuring BGP

          • Basic iBGP Configuration

          • Verifying the iBGP Configuration

            • R1: show ip bgp summary

            • R1: show ip bgp

            • Verifying the eBGP Configuration

              • R1: show ip bgp summary

              • R1: show ip bgp

              • Originating a Route to eBGP Neighbors

              • Verifying the Route Origination

                • R1: show ip bgp summary

                • R1: show ip bgp

                • R1: show ip route bgp

                • R4: show ip bgp summary

                • R4: show ip bgp

                • Verifying the Inbound Filter

                  • R1: show ip bgp

                  • R1: show ip bgp

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan