Descargar la presentación
La descarga está en progreso. Por favor, espere
1
BGP – Border Gateway Protocol
Breve introducción RETINA – 2003
2
Programa general Configuración básica
Interacciones con el IGP – Synchronization Análisis de tablas BGP y ruteo Atributos (localpref, med, weight, etc) Filtros Comunidades, Reflectors, Confederaciones, Peer-groups
3
Clase 1 Configuración básica Interacciones con el IGP Next Hops
Router BGP, neighbor, network Interacciones con el IGP Synchronization (teoría) Redistribución (?) Next Hops Tablas BGP y ruteo Comandos Show básicos
4
Antes de empezar IGP: protocolo de ruteo interno, ejemplo RIP, EIGRP, OSPF, IS-IS. BGP: protocolo de ruteo externo, 2 casos: iBGP: dentro del sistema autónomo eBGP: entre sistemas autónomos NO CONFUNDIR: IGP con iBGP!!! Esta distinción es importante para entender lo que sigue!!!
5
Configuración básica router bgp <AS>
Crea el proceso BGP dentro del router. neighbor <ip> remote-as <AS-remoto> Vecinos internos (mismo AS) Vecinos externos (distinto AS) Generalmene los externos comparten una subred, son adyacentes. Los internos pueden estar en cualquier parte del sistema autónomo.
6
Configuración básica network <red> [mask <mascara>]
Produce un alta de una red en la tabla BGP y la marca como local al AS. Diferencia de significado con el comando network de un IGP. La máscara permite especificar supernetting o subnetting.
7
Configuración básica Ejemplo: router bgp 3597 network 200.10.202.0
network mask neighbor remote-as 3597 neighbor remote-as 548
8
Configuración básica AS3597 AS548 .1 .2 .3 iBGP eBGP 199.248.144.120
/24 AS3597 AS548 /30 .1 .2 eBGP .3 iBGP
9
Interacciones con el IGP
Cómo inyectamos información (prefijos) en la tabla BGP? 2 tipos de info: Rutas estáticas Rutas del IGP (dinámicas) 2 formas: Comando network Redistribución
10
Interacciones con el IGP
11
Interacciones con el IGP
Forma preferida: comando network y rutas estáticas Menos aconsejado: comando network y rutas del IGP Nunca: redistribute (static, connected, IGP, cualquier cosa)
12
Interacciones con el IGP
Synchronization: no se anuncian rutas de la tabla de BGP que no se aprendieron además por un IGP. Dicho de otro modo: para que un prefijo aprendido por iBGP sea considerado válido, debe haber un match de ese prefijo en la tabla de ruteo IP.
13
Interacciones con el IGP
14
Interacciones con el IGP
Objetivo de synchronization: no anunciar prefijos que no son alcanzables via el IGP. Sin embargo, la tendencia actual es: IGP y BGP no se mezclan Los prefijos que no son backbone se llevan en BGP (iBGP o eBGP) Synchronization debe estar deshabilitado.
15
Next Hops En un IGP, el NH es el IP del router que anunció la ruta.
En BGP no: En las sesiones eBGP, el NH es el IP del neighbor que anunció la ruta En las sesiones iBGP: Rutas originadas dentro del AS: NH es el IP del router que la origina Rutas incorporadas por eBGP: se transporta inalterado el NH aprendido por eBGP En medios multiacceso (Ethernet, FR, ATM), el NH es la IP de la interfaz del router que originó la ruta.
16
Next Hops
17
Next Hops AS2 AS1 eBGP .2 FR ATM OSPF .3 .1 /24
18
Next Hops Comando next-hop-self Útil cuando:
Rutas externas (eBGP) no se quieren propagar por iBGP con NH del punto a punto. Rutas de clientes (estáticas a la interfaz + comando network) no se quieren propagar por iBGP con NH del punto a punto. Este comando setea el NH como el router-id
19
Tabla BGP show ip bgp BGP table version is 48394, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i *>i / i * i *>i / ? *> i * i i * i i
20
Comandos “show” básicos
Sh ip bgp summary Sh ip bgp Sh ip bgp <prefix> Sh ip bgp neighbors [ <ip> ] Sh ip bgp neighbors <ip> advertised-routes Sh ip bgp neighbors <ip> routes Sh ip bgp regexp <regexp>
21
show ip bgp summary Que router es este? Que router es este?
BGP router identifier , local AS number 3597 BGP table version is 48347, main routing table version 48347 2558 network entries and 3869 paths using bytes of memory 527 BGP path attribute entries using bytes of memory 250 BGP AS-PATH entries using 6304 bytes of memory 1 BGP community entries using 24 bytes of memory 191 BGP route-map cache entries using 3056 bytes of memory 1028 BGP filter-list cache entries using bytes of memory BGP activity 14929/71963 prefixes, 42175/38306 paths Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd d08h d09h w1d w1d never Active d08h d08h w1d d07h d07h d14h
22
show ip bgp BGP table version is 48394, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i *> / i *> / i *> / i *>i / i * i *>i / ? * i i * i *> I *>i i * i *> i * i i * i i *>i / i *>i / i Preguntar que partes de esta tabla tienen problemas Identificar c/u un problema y verlo Vemos
23
show ip bgp <prefix>
BGP routing table entry for /24, version 26804 Paths: (3 available, best #3) Advertised to non peer-group peers: , (Received from a RR-client) (metric 30720) from ( ) Origin IGP, localpref 100, valid, internal, ref 2 from ( ) Origin IGP, metric 90, localpref 100, valid, external, ref 2 from ( ) Origin IGP, metric 100, localpref 100, valid, external, best, ref 2
24
show ip bgp neighbors [ <ip> ]
BGP neighbor is , remote AS 3597, internal link BGP version 4, remote router ID BGP state = Active Last read 2w1d, hold time is 180, keepalive interval is 60 seconds Received 0 messages, 0 notifications, 0 in queue Sent 0 messages, 0 notifications, 0 in queue Route refresh request: received 0, sent 0 Minimum time between advertisement runs is 5 seconds For address family: IPv4 Unicast BGP table version 48398, neighbor version 0 Index 5, Offset 0, Mask 0x20 Route-Reflector Client 0 accepted prefixes consume 0 bytes Prefix advertised 0, suppressed 0, withdrawn 0 Connections established 0; dropped 0 Last reset 2w1d, due to User reset No active TCP connection
25
show ip bgp neighbors <ip> advertised-routes
show ip bgp neighbors advertised-routes BGP table version is 48402, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> i *>i / i *>i i *>i / i *> / i *> / i *> / i *> / i *>i / i *>i i *>i i *>i / i *>i i *>i i *>i i *>i i
26
show ip bgp neighbors <ip> routes
show ip bgp neighbors routes BGP table version is 48402, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *>i / i *>i / i *>i / i *>i / i *>i / i *>i / i *>i / i *>i / i *>i / i *>i / i *>i / i *>i / ? *>i i
27
show ip bgp regexp <regexp>
BGP table version is 48402, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> i *> / i *> / i *> / i
Presentaciones similares
© 2025 SlidePlayer.es Inc.
All rights reserved.