CLASE MAESTRA DE BGP · CAPÍTULO 8

Taller de tickets: agregación, comunidades y backdoor

Lee cada ticket como un requerimiento de negocio y resuélvelo con la herramienta justa: aggregate-address, comunidades estándar y personalizadas, no-advertise y BGP backdoor.

15 min de lecturaVideos: Día 3, partes 1 a 4Nivel: intermedio

Del punto A al punto B

Punto A: configuras eBGP, iBGP, confederaciones y route-maps, pero cada herramienta vive sola en tu cabeza. Punto B: recibes un ticket que no te dice cómo resolverlo, eliges la herramienta justa y lo cierras con evidencia: tabla BGP, tabla de enrutamiento, Wireshark y traceroute.

Es el último capítulo de la clase maestra: cinco tickets del laboratorio que juntan todo lo anterior.

Lo que vas a ver
  1. Cómo leer un ticket como un requerimiento de negocio.
  2. Ticket 8: el /21, aggregate-address, summary-only, Null0 y el riesgo de la sumarización estática.
  3. Tickets 9 y 10: comunidades, send-community, ip community-list, weight y next-hop.
  4. Ticket 11: no-advertise para filtrar sin tocar R1.
  5. Ticket 12: BGP backdoor, en un vistazo.

Lee el ticket como un requerimiento

Un ticket no trae la solución: dice qué necesita el negocio. «R3 debe usar el segmento 172.16.7.0 con EIGRP para llegar a la 60.60.60.60» no dice «configura backdoor». Tú conoces la caja de herramientas de BGP y eliges, como dice Jesús, la aspirina de 50 miligramos que quita ese dolor de cabeza. Así llegan los tickets en la operación diaria y en los laboratorios de certificación de Cisco.

Antes de tocar un router, responde cuatro preguntas:

  • ¿Qué prefijo? El ticket 9 habla de la 11.11.11.11, pero en la tabla BGP el prefijo es la 11.11.11.0/24.
  • ¿En qué router y en qué dirección? Una política de salida en R1 y una de entrada en R4 hacen cosas distintas.
  • ¿Qué restricción hay? «Solo para ese prefijo» o «no uses filtros en R1» descartan herramientas.
  • ¿Cómo lo pruebas? Decide el show, el ping o el traceroute antes de configurar.

Lee también la topología. El ticket 10 pide cambiar el next-hop «hacia la interfaz física de R4», pero el vecino directo de R6 es R5. Por eso en la clase el next-hop se ajusta a 172.16.6.5, la interfaz de R5. Un ticket también puede traer un error.

Ticket 8: calcula el /21

R1 debe sumarizar 192.168.1.1, 192.168.2.1, 192.168.3.1 y 192.168.4.1. Agregar reduce la tabla BGP y la de enrutamiento de quienes te reciben.

R1 tiene esas redes en las loopbacks 200 a 203, con máscara /32. El primer intento de publicarlas con mask 255.255.255.0 no funciona: network exige un match exacto con la tabla de enrutamiento.

R1(config)# interface loopback 200
R1(config-if)# ip address 192.168.1.1 255.255.255.255
R1(config)# interface loopback 201
R1(config-if)# ip address 192.168.2.1 255.255.255.255
R1(config)# interface loopback 202
R1(config-if)# ip address 192.168.3.1 255.255.255.255
R1(config)# interface loopback 203
R1(config-if)# ip address 192.168.4.1 255.255.255.255
R1(config)# router bgp 100
! network needs an exact match with the RIB: /32, not /24
R1(config-router)# network 192.168.1.1 mask 255.255.255.255
R1(config-router)# network 192.168.2.1 mask 255.255.255.255
R1(config-router)# network 192.168.3.1 mask 255.255.255.255
R1(config-router)# network 192.168.4.1 mask 255.255.255.255
R6# ping 192.168.1.1 source 60.60.60.60

Ahora el cálculo. Solo cambia el tercer octeto: 1, 2, 3 y 4. En binario son 00000001, 00000010, 00000011 y 00000100. Los cinco primeros bits son iguales: 16 + 5 = /21, máscara 255.255.248.0, red 192.168.0.0/21, que cubre de 192.168.0.0 a 192.168.7.255.

Ojo con el bit: 255.255.240.0 es un /20. En vivo, un no aggregate-address con 240 no quitó nada, porque lo configurado era 248. Un bit mal elegido es la causa más común de perder conectividad al sumarizar.

aggregate-address, summary-only y Null0

aggregate-address es la herramienta nativa. Crea el /21 en la tabla BGP siempre que exista al menos un prefijo más específico dentro del rango, y R1 envía un UPDATE con dos atributos nuevos:

  • ATOMIC_AGGREGATE, bien conocido discrecional: el prefijo es un agregado y puede faltar información del camino.
  • AGGREGATOR, opcional transitivo: quién agregó, el AS 100 y el router 1.1.1.1.
R1(config)# router bgp 100
R1(config-router)# aggregate-address 192.168.0.0 255.255.248.0
R1# show ip bgp
R1# show ip bgp 192.168.0.0/21
! "aggregated by 100 1.1.1.1" and "atomic-aggregate"
R1# show ip route
! the /21 points to Null0
R6# show ip bgp 192.168.0.0/21

En la tabla de enrutamiento de R1, el /21 apunta a Null0. Jesús lo llama un comodín: la red resumen no vive en ninguna interfaz, pero toda ruta necesita una salida. Cisco añade el motivo: la ruta a Null0 evita loops. Un paquete hacia 192.168.6.10, que cae en el /21 pero no existe, se descarta en R1.

Con el comando a secas, R6 recibe el /21 y las cuatro /32: agregaste un prefijo y no quitaste ninguno. Para enviar solo el resumen se añade summary-only. En Wireshark aparece un UPDATE con withdrawn routes para las /32, y en show ip bgp de R1 se marcan con s: suppressed, suprimidas de las actualizaciones. R6 ve solo el /21 y el ping a los cuatro hosts responde.

R1(config)# router bgp 100
R1(config-router)# aggregate-address 192.168.0.0 255.255.248.0 summary-only
R1# show ip bgp
! the four /32 now show "s" (suppressed)
R6# show ip bgp
R6# ping 192.168.4.1 source 60.60.60.60
! remove it: one UPDATE withdraws the /21, another re-advertises the /32
R1(config-router)# no aggregate-address 192.168.0.0 255.255.248.0 summary-only
Aggregating 192.168.1.1–192.168.4.1 into 192.168.0.0/21 R1 in AS 100 has four loopbacks, 192.168.1.1, 192.168.2.1, 192.168.3.1 and 192.168.4.1, each a /32 advertised with network. In the third octet the values 1, 2, 3 and 4 share their first five bits, 00000, so 16 plus 5 equal bits give a /21, mask 255.255.248.0, which covers 192.168.0.0 to 192.168.7.255. With aggregate-address 192.168.0.0 255.255.248.0 summary-only, R1 sends an UPDATE with the /21 and the ATOMIC_AGGREGATE and AGGREGATOR (AS 100, 1.1.1.1) attributes, withdraws the four /32 and marks them s, suppressed. R1 also installs the /21 in its routing table pointing to Null0, so packets to addresses in the range that do not exist are dropped instead of looping. A static summary, ip route to Null0 plus network, advertises the /21 without the aggregation attributes and keeps advertising it even when the loopbacks are gone. R1 · AS 100 Lo200 192.168.1.1/32 Lo201 192.168.2.1/32 Lo202 192.168.3.1/32 Lo203 192.168.4.1/32 network … mask 255.255.255.255 THIRD OCTET IN BINARY 192.168.1.100000001 192.168.2.100000010 192.168.3.100000011 192.168.4.100000100 16 + 5 equal bits = /21 mask 255.255.248.0 range 192.168.0.0 – 192.168.7.255 UPDATE · ANNOUNCED NLRI 192.168.0.0/21 ATOMIC_AGGREGATE AGGREGATOR AS 100 · 1.1.1.1 UPDATE · WITHDRAWN the four /32 (summary-only) shown as s, suppressed R1 ROUTING TABLE B 192.168.0.0/21 [200/0] via 0.0.0.0, Null0 WHY NULL0 traffic to 192.168.0.x or .5 to .7 is dropped: those subnets do not exist, so no loop Static option: ip route 192.168.0.0 255.255.248.0 Null0 + network → no aggregation attributes, always advertised.

Los cinco bits iguales del tercer octeto dan el /21; summary-only retira las /32 y el resumen apunta a Null0. Diagrama: The House of Routing.

Sumarización estática: el black hole

La otra forma es una ruta estática del /21 hacia Null0 más un network con la misma máscara. Funciona, pero sin ATOMIC_AGGREGATE ni AGGREGATOR: el /21 viaja como cualquier ruta publicada con network.

R1(config)# ip route 192.168.0.0 255.255.248.0 Null0
R1(config)# router bgp 100
R1(config-router)# network 192.168.0.0 mask 255.255.248.0
R1# show ip bgp 192.168.0.0/21
! no atomic-aggregate, no aggregator: a plain network route
R1(config)# no interface loopback 200
R1(config)# no interface loopback 201
! ...the /21 is still advertised
R6# ping 192.168.1.1 source 60.60.60.60

El riesgo aparece al borrar las loopbacks: R1 sigue publicando el /21, porque la estática siempre está. R6 lo ve válido, pero el ping da unreachable. Es un black hole: le dices al mundo «mándame este tráfico» y no tienes dónde entregarlo. Hay quien lo hace a propósito para secuestrar tráfico. aggregate-address, en cambio, es dinámico: sin prefijos más específicos no hay agregado.

Comunidades: etiquetas que viajan

Una comunidad es un tag que agregas a las rutas que publicas para que quien las recibe aplique políticas o filtre de forma automática. Jesús lo ve como programabilidad: el proveedor diseña antes sus etiquetas y cada una dispara una regla de tráfico.

  • Bien conocidas: internet (a todos), no-export (dentro del AS, nunca por eBGP), no-advertise (a ningún vecino) y local-AS (solo dentro del sub-AS de una confederación).
  • Personalizadas aa:nn: por convención un ASN, dos puntos y un valor que acuerdas con el otro proveedor, como 444:6000.

Cuatro reglas para todos los tickets:

  • Es un atributo opcional transitivo (RFC 1997) y Cisco no lo envía por defecto: hace falta send-community en cada salto. Si falta en uno, el prefijo llega sin etiqueta.
  • both envía las estándar y las extendidas (64 bits, como el route target de MPLS).
  • ip bgp-community new-format muestra las comunidades como aa:nn y no como un decimal de 32 bits, igual que asdot frente a asplain. Ponlo en todos los routers.
  • additive suma tus etiquetas a las que ya trae el prefijo; sin él, set community las sobrescribe.

Ticket 9: weight 25000 con 444:6000

R4 debe preferir la salida por R2 con weight 25000 para la 11.11.11.0/24, solo para ese prefijo, usando la comunidad 444:6000. Hoy R4 sale por R3, por la local preference 500 del ticket 6. En el best path de Cisco el weight se evalúa antes, así que gana.

1. Etiquetar en el origen. En R1, la prefix-list PL-W selecciona el prefijo y la route-map de salida RM-OUT le pone 444:6000. La secuencia 20, sin match, deja pasar el resto. Se aplica hacia R2 (172.16.1.2) y R3 (172.16.2.3), con send-community both.

R1(config)# ip prefix-list PL-W seq 10 permit 11.11.11.0/24
R1(config)# route-map RM-OUT permit 10
R1(config-route-map)# match ip address prefix-list PL-W
R1(config-route-map)# set community 444:6000
R1(config)# route-map RM-OUT permit 20
R1(config)# ip bgp-community new-format
R1(config)# router bgp 100
R1(config-router)# neighbor 172.16.1.2 send-community both
R1(config-router)# neighbor 172.16.1.2 route-map RM-OUT out
R1(config-router)# neighbor 172.16.2.3 send-community both
R1(config-router)# neighbor 172.16.2.3 route-map RM-OUT out
R1# clear ip bgp * soft
R1# show route-map

2. Propagar. R2 ya recibe la etiqueta, pero R4 ve la 11.11.11.0 sin comunidad. Falta el siguiente salto: R2 y R3 hacia R4.

R2(config)# ip bgp-community new-format
R2(config)# router bgp 200
R2(config-router)# neighbor 172.16.3.4 send-community both
R3(config)# ip bgp-community new-format
R3(config)# router bgp 1.1
R3(config-router)# neighbor 172.16.4.4 send-community both
R4(config)# ip bgp-community new-format
R4# show ip bgp 11.11.11.0/24
! Community: 444:6000

3. Reconocer y actuar. Como la prefix-list selecciona prefijos y la ip as-path access-list selecciona AS, la ip community-list selecciona comunidades. En la route-map, match community lleva el número de la lista, no la comunidad.

R4(config)# ip community-list 100 permit 444:6000
R4(config)# route-map RM-WEIGHT-IN permit 10
R4(config-route-map)# match community 100
R4(config-route-map)# set weight 25000
R4(config)# route-map RM-WEIGHT-IN permit 20
R4(config)# router bgp 64100
R4(config-router)# neighbor 172.16.3.2 route-map RM-WEIGHT-IN in
R4# clear ip bgp * soft
R4# show ip bgp 11.11.11.0/24
R4# traceroute 11.11.11.11 source 40.40.40.40

En vivo, el weight se añadió primero a RM-IN, la route-map de local preference hacia R3, y habría cambiado esa ruta también. La corrección fue una route-map independiente, RM-WEIGHT-IN, solo hacia 172.16.3.2. La 11.11.11.0 sigue válida por R3, pero la mejor es la de R2, y el traceroute desde la 40.40.40.40 pasa por R2.

Estándar o expandida. Las listas 1 a 99 son estándar y comparan valores exactos; las 100 a 500 son expandidas y leen cada línea como expresión regular. La 100 funcionó en la clase; para un valor fijo como 444:6000, la estándar es la más clara.

Ticket 10: el next-hop cambia con una etiqueta

R6 debe recibir la 33.33.33.0/24 con INTERNET y 444:5000, y esa combinación debe cambiar su next-hop, que hoy es 40.40.40.40, la loopback de R4.

1. Llevar la etiqueta hasta R6, dentro de la confederación: R4 hacia R5 y R5 hacia R6.

R4(config)# router bgp 64100
R4(config-router)# neighbor 50.50.50.50 send-community both
R5(config)# ip bgp-community new-format
R5(config)# router bgp 64200
R5(config-router)# neighbor 60.60.60.60 send-community both

2. Ampliar RM-OUT en R1. La secuencia 20 era el «permite todo»; ahora selecciona la 33.33.33.0/24 con PL-IN y le pone internet 444:5000 additive. El «permite todo» pasa a la 30. Tras un soft clear, R6 recibe el prefijo con las dos etiquetas.

R1(config)# ip prefix-list PL-IN seq 10 permit 33.33.33.0/24
R1(config)# route-map RM-OUT permit 20
R1(config-route-map)# match ip address prefix-list PL-IN
R1(config-route-map)# set community internet 444:5000 additive
R1(config)# route-map RM-OUT permit 30
R1# clear ip bgp * soft

3. Cambiar el next-hop en R6. Con internet 444:5000 en la misma línea, la community-list exige las dos etiquetas: varios valores en una línea son un AND. RM-INET aplica set ip next-hop 172.16.6.5 de entrada al vecino 50.50.50.50, en el sub-AS 64300.

R6(config)# ip bgp-community new-format
R6(config)# ip community-list 100 permit internet 444:5000
R6(config)# route-map RM-INET permit 10
R6(config-route-map)# match community 100
R6(config-route-map)# set ip next-hop 172.16.6.5
R6(config)# route-map RM-INET permit 20
R6(config)# router bgp 64300
R6(config-router)# neighbor 50.50.50.50 route-map RM-INET in
R6# clear ip bgp * soft
R6# show ip bgp 33.33.33.0/24
R6# show ip route 172.16.6.5
R6# ping 33.33.33.33 source 60.60.60.60
Communities from R1 to R4 and R6 R1 in AS 100 tags two prefixes with an outbound route-map, RM-OUT: 11.11.11.0/24 gets community 444:6000, and 33.33.33.0/24 gets internet and 444:5000 with additive. The tags travel through R2 in AS 200 and R3 in AS 1.1 to R4, and then through R5 to R6 inside the confederation AS 1.2, with sub-AS 64100, 64200 and 64300. Communities are an optional attribute, so every hop needs neighbor send-community both, or the prefix arrives without its tag. R4 matches 444:6000 with ip community-list 100 in the inbound route-map RM-WEIGHT-IN toward R2 and sets weight 25000, so 11.11.11.0/24 leaves through R2. R6 matches internet and 444:5000 in the inbound route-map RM-INET toward R5 and sets the next hop to 172.16.6.5, the physical interface of R5. R1 · AS 100 sets the tags R3 · AS 1.1 R2 · AS 200 AS 1.2 · CONFEDERATION R4 · 64100 weight 25000 R5 · 64200 passes the tags R6 · 64300 new next hop from R2: 172.16.3.2 R5: 172.16.6.5 every hop: neighbor … send-community both R1 · RM-OUT · OUT 10 PL-W 11.11.11.0/24 → 444:6000 20 PL-IN 33.33.33.0/24 → internet 444:5000 additive 30 permit the rest applied out to R2 and R3 R4 · IN FROM R2 ip community-list 100 permit 444:6000 10 match community 100 set weight 25000 20 permit the rest 11.11.11.0/24 now exits via R2 R6 · IN FROM R5 community-list 100: internet 444:5000 10 match community 100 set ip next-hop 172.16.6.5 20 permit the rest 33.33.33.0/24: next hop 172.16.6.5 Community = optional transitive tag (RFC 1997). Without send-community the prefix arrives, but untagged.

R1 etiqueta, cada salto reenvía con send-community, y R4 y R6 traducen la etiqueta en weight y en next-hop. Diagrama: The House of Routing.

La 33.33.33.0 apunta ahora a 172.16.6.5, el peer directo de R6. Es un next-hop válido porque R6 lo alcanza directamente, así que la ruta pasa el best path y el ping responde.

Ticket 11: no-advertise, filtrar sin filtros

R1 no podrá publicar los prefijos de R3 hacia R2, y no se permiten filtros en R1. La salida está en las comunidades bien conocidas: R3 pone la etiqueta y R1 la obedece. Sirven no-export (R1–R2 es eBGP) y no-advertise, «lo recibiste, no se lo digas a nadie», ni siquiera a tu iBGP. Jesús elige la más restrictiva.

R3(config)# ip prefix-list PL30 seq 10 permit 30.30.30.0/24
R3(config)# route-map RM30 permit 10
R3(config-route-map)# match ip address prefix-list PL30
R3(config-route-map)# set community no-advertise additive
R3(config)# route-map RM30 permit 20
R3(config)# router bgp 1.1
R3(config-router)# neighbor 172.16.2.1 send-community both
R3(config-router)# neighbor 172.16.2.1 route-map RM30 out
R3# clear ip bgp * soft
R1# show ip bgp 30.30.30.0/24
! Community: no-advertise
R2# show ip bgp
! 30.30.30.0/24 is gone

Con standard bastaría, porque no hay comunidades extendidas. En Wireshark aparece COMMUNITIES con NO_ADVERTISE, R1 instala la 30.30.30.0 con esa etiqueta y, en la siguiente actualización, el prefijo desaparece de R2.

no-advertise: R1 learns the prefix and tells nobody R3 in AS 1.1 applies the outbound route-map RM30 toward R1, 172.16.2.1, which tags 30.30.30.0/24 with the well-known community no-advertise, additive, and sends it with send-community. R1 in AS 100 installs the prefix but does not advertise it to any peer, so R2 in AS 200 never receives it. There is no filter on R1: the tag does the work. Because R4 is not a transit AS, R2 has no other path and loses reachability to 30.30.30.0/24. The three standard communities compared: internet is advertised to everyone, no-export is not advertised outside the AS or confederation, and no-advertise is not advertised to any peer. R3 · AS 1.1 RM30 out to 172.16.2.1 send-community both 30.30.30.0/24 no-advertise R1 · AS 100 installs 30.30.30.0/24 no filter configured ✕ not advertised R2 · AS 200 no route to 30.30.30.0/24 (R4 is not transit) STANDARD COMMUNITIES INTERNET advertise to all peers (internal and external) NO-EXPORT iBGP yes, eBGP no: stays inside the AS or confederation NO-ADVERTISE advertise to no peer at all, not even iBGP

R3 etiqueta, R1 instala y calla, y R2 pierde la 30.30.30.0/24. Diagrama: The House of Routing.

La consecuencia: R2 solo aprendía esa red por R1, porque R4 dejó de ser AS de tránsito en el ticket 6, así que ya no sabe llegar a R3. Una política de salida afecta al tráfico de entrada. Por eso conviene revisar received-routes en R2 y R4 antes de aplicarla.

En Internet esto es real. En un IXP, los proveedores de un país intercambian tráfico local en vez de subirlo al NAP de las Américas en Miami, y ganan entre 50 y 80 milisegundos. Con comunidades acordadas con el IXP decides qué prefijos llegan a cada proveedor.

Ticket 12: BGP backdoor en un vistazo

El ticket 12 está completo en el capítulo 7. En el taller se repite: R3 y R6 forman EIGRP 100 en 172.16.7.0/24, pero R3 sigue llegando a la 60.60.60.0/24 por eBGP, pasando por R4 y R5, porque eBGP tiene distancia 20 y EIGRP, 90.

! EIGRP 100 on the R3-R6 link (172.16.7.0/24) is already up
R3# show ip route
! 60.60.60.0/24 is B [20/0]: eBGP beats EIGRP (90)
R3(config)# router bgp 1.1
R3(config-router)# network 60.60.60.0 mask 255.255.255.0 backdoor
R3# show ip bgp
! r RIB-failure: the RIB now installs the EIGRP route (D, 90)
R3# traceroute 60.60.60.60 source 30.30.30.30 ttl 1 5

Con backdoor, BGP trata el prefijo como local, con distancia 200, y no lo publica. Queda como r (RIB-failure), la tabla instala la ruta EIGRP y el traceroute llega en un salto. Solo afecta a ese prefijo en ese router: para la vuelta haría falta un backdoor para la 30.30.30.0 en R6.

Repite los tickets en tu laboratorio

Aquí cierras la clase maestra: de los mensajes de BGP a iBGP, route reflector, confederaciones, best path, filtros, agregación, comunidades y backdoor. El siguiente paso es tuyo, y puedes darlo hoy:

  • Monta los seis routers con IOSv en GNS3 y resuelve los tickets 8 a 12 sin mirar la configuración.
  • Captura en Wireshark un UPDATE con ATOMIC_AGGREGATE, uno con withdrawn routes y uno con COMMUNITIES.
  • Rómpelo a propósito: quita un send-community, usa la máscara 240 o borra las loopbacks con la sumarización estática.
  • Cuando fluya, escribe tus propios tickets para un compañero.

Como dice Jesús, la repetición es la madre de la especialización. Repite, aprende del error y vuelve a configurar hasta que te salga natural. Ya tienes todo para hacerlo.

Videos de la clase

Estas son las cuatro partes del taller de tickets que cerró el 2do Maratón BGP. Jesús las grabó en vivo en marzo de 2021 con routers Cisco IOSv en GNS3. Las ordenamos por su lógica y no por número: la parte 3 crea la route-map RM-OUT y la parte 2 la amplía. El audio está en español y tienes subtítulos en español, inglés, francés y portugués.

Grabado en vivo; audio en español con subtítulos en español, inglés, francés y portugués. Al reproducir, el video se carga desde YouTube. Playlist del Día 3 en YouTube

Pon a prueba lo que aprendiste

1. Debes agregar 192.168.1.1, 192.168.2.1, 192.168.3.1 y 192.168.4.1. ¿Qué red y qué máscara usas?

Respuesta. 192.168.0.0 con 255.255.248.0, un /21: en el tercer octeto, 1 a 4 comparten los cinco primeros bits y 16 + 5 = 21.

2. Con aggregate-address, R6 recibe el /21 y además las cuatro /32. ¿Qué falta y cómo se ven las /32 en R1 después?

Respuesta. Falta summary-only. R1 retira las /32 con un UPDATE de withdrawn routes y las marca con s (suppressed).

3. Sumarizas con ip route a Null0 y network, y se caen las cuatro loopbacks. ¿Qué pasa?

Respuesta. R1 sigue publicando el /21 y descarta el tráfico que le llega: un black hole. Con aggregate-address, el agregado desaparece sin prefijos más específicos.

4. R2 ve la 11.11.11.0/24 con 444:6000, pero R4 la recibe sin comunidad. ¿Qué revisas?

Respuesta. El send-community de R2 y de R3 hacia R4. Es un atributo opcional y se habilita salto por salto.

5. Sin filtros en R1, ¿cómo evitas que R1 publique a R2 la 30.30.30.0/24 que recibe de R3?

Respuesta. En R3, una route-map de salida hacia R1 con set community no-advertise additive y send-community. R1 instala la ruta y no la publica a nadie.

Lo que te llevas

  • Un ticket dice qué necesita el negocio: identifica prefijo, router, dirección, restricción y prueba.
  • Para agregar, busca los bits iguales: 1 a 4 en el tercer octeto dan un /21 (255.255.248.0).
  • aggregate-address añade ATOMIC_AGGREGATE y AGGREGATOR, apunta a Null0 y es dinámico; summary-only suprime los específicos.
  • La sumarización estática puede anunciar redes que ya no existen: black hole.
  • Comunidades: send-community en cada salto, new-format para leerlas y additive para no borrar etiquetas.
  • ip community-list y match community convierten una etiqueta en weight o next-hop.
  • no-advertise filtra desde el origen sin tocar R1; el backdoor cede un prefijo al IGP en un router.

Recursos oficiales

Fuente y créditos. Capítulo escrito a partir de la Clase maestra de BGP que Jesús Espinoza grabó en vivo en 2021. Texto redactado con asistencia de IA y revisado; diagramas originales de The House of Routing. Los datos técnicos y la configuración se contrastaron con la documentación oficial de Cisco y los RFC del IETF.

Navegación