De documentatie van dit product is waar mogelijk geschreven met inclusief taalgebruik. Inclusief taalgebruik wordt in deze documentatie gedefinieerd als taal die geen discriminatie op basis van leeftijd, handicap, gender, etniciteit, seksuele oriëntatie, sociaaleconomische status of combinaties hiervan weerspiegelt. In deze documentatie kunnen uitzonderingen voorkomen vanwege bewoordingen die in de gebruikersinterfaces van de productsoftware zijn gecodeerd, die op het taalgebruik in de RFP-documentatie zijn gebaseerd of die worden gebruikt in een product van een externe partij waarnaar wordt verwezen. Lees meer over hoe Cisco gebruikmaakt van inclusief taalgebruik.
Cisco heeft dit document vertaald via een combinatie van machine- en menselijke technologie om onze gebruikers wereldwijd ondersteuningscontent te bieden in hun eigen taal. Houd er rekening mee dat zelfs de beste machinevertaling niet net zo nauwkeurig is als die van een professionele vertaler. Cisco Systems, Inc. is niet aansprakelijk voor de nauwkeurigheid van deze vertalingen en raadt aan altijd het oorspronkelijke Engelstalige document (link) te raadplegen.
Dit document beschrijft de procedure voor het configureren van Border Gateway Protocol (BGP) Confederations op de Nexus 9000-serie.
Cisco raadt kennis van de volgende onderwerpen aan:
Dit document is niet beperkt tot specifieke software- en hardwareversies.
De informatie in dit document is gebaseerd op de apparaten in een specifieke laboratoriumomgeving. Alle apparaten die in dit document worden beschreven, hadden een opgeschoonde (standaard)configuratie. Als uw netwerk live is, moet u zorgen dat u de potentiële impact van elke opdracht begrijpt.
Het mechanisme dat BGP gebruikt om routeringslussen te vermijden, is het toevoegen van een eigen autonoom systeemnummer (ASN) aan het AS PATH-attribuut. Voor een IBGP-topologie wijzigen de updates het AS-PATH-kenmerk niet omdat ze tot dezelfde ASN behoren, wat een routeringslus kan veroorzaken.
BGP maakt gebruik van de split-horizon regel die stelt dat een BGP-apparaat ontvangt een prefix via een IBGP peer, en kan het prefix niet adverteren aan een andere IBGP buur. Deze regel dwingt je om een full-mesh topologie te hebben om voorvoegsels uit te wisselen met elke IBGP-buur. Voor grote netwerken om een full-meshed scenario is niet schaalbaar omdat het gebruik maakt van overmatige middelen om de peerings te creëren.
De alternatieven voor een full-meshed topologie voor iBGP zijn:
Dit document richt zich alleen op het gebruik van BGP Confederations.
BGP Confederation elimineert de noodzaak van een full-mesh topologie door een ASN te verdelen in meerdere subautonome systemen en deze te groeperen in een confederatie.
Zie Advance BGP Configuration Guide Nexus 9000 voor informatie over de configuratiehandleiding van de BGP Confederation.
Opmerking: In de topologie maken Nexus 1, Nexus 2, Nexus 3 en Nexus 4 deel uit van dezelfde Confederatie ASN 64513, waarbij de confederatie wordt verdeeld in 2 kleinere ASN (64512 en 64514)
Opmerking: Nexus 1 en Nexus 3 vestigen een iBGP-buurt.
Opmerking: Nexus 2 en Nexus 4 vestigen een iBGP-buurt.
Opmerking: Nexus 1 en Nexus 2 vestigen een eBGP-buurt.
Opmerking: De Confederation-configuratie zorgt voor een reset naar elke gevestigde bgp-peer. Deze configuratie moet worden uitgevoerd onder een onderhoudsvenster.
Nexus 1
Nexus1# show running-config bgp
!Command: show running-config bgp
!Running configuration last done at: Thu Jul 20 21:13:08 2023
!Time: Thu Jul 20 23:28:41 2023
version 10.2(5) Bios:version 05.47
feature bgp
router bgp 64512 --> Local ASN
confederation identifier 64513 --> BGP Confederation identifier
confederation peers 64514 --> ASN that belong to the Confederation
log-neighbor-changes
neighbor 10.0.5.2
remote-as 64515
address-family ipv4 unicast
neighbor 172.16.255.2
remote-as 64514
update-source loopback0
address-family ipv4 unicast
neighbor 172.16.255.3
remote-as 64512
log-neighbor-changes
update-source loopback0
address-family ipv4 unicast
Nexus 2
Nexus2# show running-config bgp
!Command: show running-config bgp
!Running configuration last done at: Thu Jul 20 21:12:54 2023
!Time: Thu Jul 20 23:31:04 2023
version 10.2(5) Bios:version 05.47
feature bgp
router bgp 64514 --> Local ASN
confederation identifier 64513 --> BGP Confederation identifier
confederation peers 64512 --> ASN that belong to the Confederation
log-neighbor-changes
neighbor 172.16.255.1
remote-as 64512
update-source loopback0
address-family ipv4 unicast
neighbor 172.16.255.4
remote-as 64514
update-source loopback0
address-family ipv4 unicast
Nexus 3
Nexus3# show running-config bgp
!Command: show running-config bgp
!Running configuration last done at: Thu Jul 20 21:14:54 2023
!Time: Thu Jul 20 23:31:45 2023
version 10.2(5) Bios:version 05.47
feature bgp
router bgp 64512 --> Local ASN
confederation identifier 64513 --> BGP Confederation identifier
log-neighbor-changes
neighbor 172.16.255.1
remote-as 64512
log-neighbor-changes
update-source loopback0
address-family ipv4 unicast
Nexus 4
Nexus4# show running-config bgp
!Command: show running-config bgp
!Running configuration last done at: Thu Jul 20 15:11:15 2023
!Time: Thu Jul 20 17:32:58 2023
version 10.2(5) Bios:version 05.47
feature bgp
router bgp 64514 --> Local ASN
confederation identifier 64513 --> BGP Confederation identifier
log-neighbor-changes
address-family ipv4 unicast
network 172.30.1.0/24
network 172.30.2.0/24
network 172.30.3.0/24
network 172.30.4.0/24
network 172.30.5.0/24
network 172.30.6.0/24
network 172.30.7.0/24
network 172.30.8.0/24
neighbor 172.16.255.2
remote-as 64514
update-source loopback0
address-family ipv4 unicast
Nexus 5
Nexus5# show running-config bgp
!Command: show running-config bgp
!Running configuration last done at: Thu Jul 20 21:13:32 2023
!Time: Thu Jul 20 23:33:34 2023
version 10.2(5) Bios:version 05.47
feature bgp
router bgp 64515 --> Local ASN
log-neighbor-changes
address-family ipv4 unicast
network 192.168.1.0/24
network 192.168.2.0/24
network 192.168.3.0/24
network 192.168.4.0/24
network 192.168.5.0/24
network 192.168.6.0/24
network 192.168.7.0/24
network 192.168.8.0/24
neighbor 10.0.5.1
remote-as 64513
address-family ipv4 unicast
Nexus 1
Stap 1: BGP-buren worden opgericht en wisselen voorvoegsels uit.
Nexus1# show ip bgp summary
BGP summary information for VRF default, address family IPv4 Unicast
BGP router identifier 172.16.255.1, local AS number 64512
BGP table version is 28, IPv4 Unicast config peers 3, capable peers 3
16 network entries and 16 paths using 4416 bytes of memory
BGP attribute entries [2/704], BGP AS path entries [2/12]
BGP community entries [0/0], BGP clusterlist entries [0/0]
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.0.5.2 4 64515 328 321 28 0 0 05:00:34 8
172.16.255.2 4 64514 270 264 28 0 0 04:16:51 8
172.16.255.3 4 64512 318 318 28 0 0 05:12:28 0
Stap 2: De voorvoegsels geleerd door de confederatie peer worden geïdentificeerd door te kijken naar de status c-confed.
Nexus1# show ip bgp
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 28, Local Router ID is 172.16.255.1
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - best2
Network Next Hop Metric LocPrf Weight Path
*>c172.30.1.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.2.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.3.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.4.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.5.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.6.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.7.0/24 172.16.255.4 100 0 (64514) i
*>c172.30.8.0/24 172.16.255.4 100 0 (64514) i
*>e192.168.1.0/24 10.0.5.2 0 64515 i
*>e192.168.2.0/24 10.0.5.2 0 64515 i
*>e192.168.3.0/24 10.0.5.2 0 64515 i
*>e192.168.4.0/24 10.0.5.2 0 64515 i
*>e192.168.5.0/24 10.0.5.2 0 64515 i
*>e192.168.6.0/24 10.0.5.2 0 64515 i
*>e192.168.7.0/24 10.0.5.2 0 64515 i
*>e192.168.8.0/24 10.0.5.2 0 64515 i
Nexus 2
Stap 1: BGP-buren worden opgericht en wisselen voorvoegsels uit.
Nexus2# show ip bgp summary
BGP summary information for VRF default, address family IPv4 Unicast
BGP router identifier 172.16.255.2, local AS number 64514
BGP table version is 27, IPv4 Unicast config peers 2, capable peers 2
16 network entries and 16 paths using 3904 bytes of memory
BGP attribute entries [2/344], BGP AS path entries [1/12]
BGP community entries [0/0], BGP clusterlist entries [0/0]
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.255.1 4 64512 274 265 27 0 0 04:20:26 8
172.16.255.4 4 64514 269 262 27 0 0 04:16:00 8
Stap 2: De voorvoegsels geleerd door de confederatie peer worden geïdentificeerd door te kijken naar de status c-confed.
Nexus2# show ip bgp
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 27, Local Router ID is 172.16.255.2
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - best2
Network Next Hop Metric LocPrf Weight Path
*>i172.30.1.0/24 172.16.255.4 100 0 i
*>i172.30.2.0/24 172.16.255.4 100 0 i
*>i172.30.3.0/24 172.16.255.4 100 0 i
*>i172.30.4.0/24 172.16.255.4 100 0 i
*>i172.30.5.0/24 172.16.255.4 100 0 i
*>i172.30.6.0/24 172.16.255.4 100 0 i
*>i172.30.7.0/24 172.16.255.4 100 0 i
*>i172.30.8.0/24 172.16.255.4 100 0 i
*>c192.168.1.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.2.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.3.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.4.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.5.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.6.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.7.0/24 10.0.5.2 100 0 (64512) 64515 i
*>c192.168.8.0/24 10.0.5.2 100 0 (64512) 64515 i
Nexus 3
Stap 1: BGP buurman wordt vastgesteld en het uitwisselen van voorvoegsels.
Nexus3# show ip bgp summary
BGP summary information for VRF default, address family IPv4 Unicast
BGP router identifier 172.16.255.3, local AS number 64512
BGP table version is 34, IPv4 Unicast config peers 1, capable peers 1
16 network entries and 16 paths using 4416 bytes of memory
BGP attribute entries [2/704], BGP AS path entries [2/12]
BGP community entries [0/0], BGP clusterlist entries [0/0]
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/
PfxRcd
172.16.255.1 4 64512 332 323 34 0 0 05:17:52 16
Stap 2: Vanuit het perspectief van Nexus 3 worden de voorvoegsels geleerd als normale iBGP-voorvoegsels. Vanuit zijn perspectief heeft het geen confederatiebuur en zijn enige peer is een iBGP-peer.
Nexus3# show ip bgp
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 34, Local Router ID is 172.16.255.3
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-i
njected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - b
est2
Network Next Hop Metric LocPrf Weight Path
*>i172.30.1.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.2.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.3.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.4.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.5.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.6.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.7.0/24 172.16.255.4 100 0 (64514) i
*>i172.30.8.0/24 172.16.255.4 100 0 (64514) i
*>i192.168.1.0/24 10.0.5.2 100 0 64515 i
*>i192.168.2.0/24 10.0.5.2 100 0 64515 i
*>i192.168.3.0/24 10.0.5.2 100 0 64515 i
*>i192.168.4.0/24 10.0.5.2 100 0 64515 i
*>i192.168.5.0/24 10.0.5.2 100 0 64515 i
*>i192.168.6.0/24 10.0.5.2 100 0 64515 i
*>i192.168.7.0/24 10.0.5.2 100 0 64515 i
*>i192.168.8.0/24 10.0.5.2 100 0 64515 i
Nexus 4
Stap 1: BGP buurman wordt vastgesteld en het uitwisselen van voorvoegsels.
Nexus4# show ip bgp summary
BGP summary information for VRF default, address family IPv4 Unicast
BGP router identifier 172.16.255.4, local AS number 64514
BGP table version is 18, IPv4 Unicast config peers 1, capable peers 1
16 network entries and 16 paths using 4416 bytes of memory
BGP attribute entries [2/704], BGP AS path entries [1/12]
BGP community entries [0/0], BGP clusterlist entries [0/0]
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.255.2 4 64514 268 267 18 0 0 04:21:40 8
Stap 2: Vanuit het perspectief van Nexus 4 worden de voorvoegsels geleerd als normale iBGP-voorvoegsels. Vanuit zijn perspectief heeft het geen confederatiebuur en zijn enige peer is een iBGP-peer.
Nexus4# show ip bgp
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 18, Local Router ID is 172.16.255.4
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - best2
Network Next Hop Metric LocPrf Weight Path
*>l172.30.1.0/24 0.0.0.0 100 32768 i
*>l172.30.2.0/24 0.0.0.0 100 32768 i
*>l172.30.3.0/24 0.0.0.0 100 32768 i
*>l172.30.4.0/24 0.0.0.0 100 32768 i
*>l172.30.5.0/24 0.0.0.0 100 32768 i
*>l172.30.6.0/24 0.0.0.0 100 32768 i
*>l172.30.7.0/24 0.0.0.0 100 32768 i
*>l172.30.8.0/24 0.0.0.0 100 32768 i
*>i192.168.1.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.2.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.3.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.4.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.5.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.6.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.7.0/24 10.0.5.2 100 0 (64512) 64515 i
*>i192.168.8.0/24 10.0.5.2 100 0 (64512) 64515 i
Nexus 5
Stap 1: BGP buurman wordt vastgesteld en het uitwisselen van voorvoegsels. In dit geval is de enige buur Nexus 3, en dit is een eBGP-buur.
Nexus5# show ip bgp summary
BGP summary information for VRF default, address family IPv4 Unicast
BGP router identifier 172.16.255.5, local AS number 64515
BGP table version is 18, IPv4 Unicast config peers 1, capable peers 1
16 network entries and 16 paths using 3904 bytes of memory
BGP attribute entries [2/344], BGP AS path entries [1/6]
BGP community entries [0/0], BGP clusterlist entries [0/0]
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.0.5.1 4 64513 317 317 18 0 0 05:11:26 8
Stap 2: Vanuit het perspectief van Nexus 5 worden de voorvoegsels ontvangen van Nexus 3 met behulp van het AS-pad van de Confederatie ASN, maar worden ontvangen als normale eBGP-voorvoegsels.
Nexus5# show ip bgp
BGP routing table information for VRF default, address family IPv4 Unicast
BGP table version is 18, Local Router ID is 172.16.255.5
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-i
njected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - b
est2
Network Next Hop Metric LocPrf Weight Path
*>e172.30.1.0/24 10.0.5.1 0 64513 i
*>e172.30.2.0/24 10.0.5.1 0 64513 i
*>e172.30.3.0/24 10.0.5.1 0 64513 i
*>e172.30.4.0/24 10.0.5.1 0 64513 i
*>e172.30.5.0/24 10.0.5.1 0 64513 i
*>e172.30.6.0/24 10.0.5.1 0 64513 i
*>e172.30.7.0/24 10.0.5.1 0 64513 i
*>e172.30.8.0/24 10.0.5.1 0 64513 i
*>l192.168.1.0/24 0.0.0.0 100 32768 i
*>l192.168.2.0/24 0.0.0.0 100 32768 i
*>l192.168.3.0/24 0.0.0.0 100 32768 i
*>l192.168.4.0/24 0.0.0.0 100 32768 i
*>l192.168.5.0/24 0.0.0.0 100 32768 i
*>l192.168.6.0/24 0.0.0.0 100 32768 i
*>l192.168.7.0/24 0.0.0.0 100 32768 i
*>l192.168.8.0/24 0.0.0.0 100 32768 i
Opmerking: Nexus 5 is niet op de hoogte van de confederatie die wordt gebruikt tussen Nexus 1 - Nexus 4. Vanuit zijn perspectief zijn dit normale eBGP-voorvoegsels.
Revisie | Publicatiedatum | Opmerkingen |
---|---|---|
2.0 |
07-Feb-2024
|
bijwerken |
1.0 |
04-Oct-2023
|
Eerste vrijgave |