Sie sind auf Seite 1von 38

Implementando BGP

CCNP ROUTE V6 - Captulo 6

Presentation_ID 2010 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Contenido de este captulo

Terminologa, conceptos y operacin de BGP


Configurando BGP
Verificacin del funcionamiento de BGP
Manipulacin bsica de BGP y filtrado de rutas

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
Categorizando los protocolos de
enrutamiento

Interior Gateway Protocol (IGP)


RIP
EIGRP
OSPF
IS-IS

Exterior Gateway Protocol (EGP)


BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Entendiendo los IGPs y los EGPs

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Sistemas autnomos

Grupo de enrutadores bajo una misma administracin


tcnica
IANA asigna los nmeros de sistema autnomo a
travs de los RIRs: AFRINIC, APNIC, ARIN, LACNIC,
RIPE
Nmero de 16 bits (entre 1 y 65535)
Sistemas autnomos privados entre 64512 y 65535

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Donde se ejecuta BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Comparacin de BGP y otros protocolos

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Requerimientos de conectividad para una
empresa

Espacio pblico de direccionamiento


Tipo de conexin y ancho de banda entre la empresa y
el ISP elegido
Protocolo de enrutamiento
Redundancia en las conexiones

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Alternativas de conectividad - ISP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Alternativas de conectividad - Protocolos

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
Alternativas de conectividad - Redundancia

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
Usando BGP para conectar la Internet

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
BGP utiliza enrutamiento path vector

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
Polticas de enrutamiento en BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
Cuando NO usar BGP

Solo existe una nica conexin a Internet o a un nico


sistema autnomo
Falta de memoria y de potencia en el procesamiento en
los enrutadores de borde que impida manejar
constantes actualizaciones de BGP
Todava se tiene una limitada comprensin de los
procesos de filtrado de rutas y seleccin de caminos
por parte de BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Caractersticas de BGP

Usa TCP. Keepalives por defecto cada 60 segundos


Protocolo tipo Path Vector
Dos enrutadores conectados usando BGP se
denominan peers o neighbors

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
Relacin de vecinos en BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
EBGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
BGP en un sistema autnomo de trnsito

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
Una tabla separada para BGP

Tabla BGP
Tabla de topologa BGP
Base de datos de topologas BGP
Tabla de enrutamiento BGP
Tabla de reenvo de BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
Tipos de mensajes BGP

Open
Version, AS, Holdtime, RouterID, opcionales

Keepalive (19 bytes)


Update
Rutas retiradas, atributos de encaminamiento, NLRI

Notification (error)

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
Estados de los vecinos BGP

Idle
Connect
Active
Open sent
Open confirm
Established

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
Atributo AS-Path

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
Atributo Next-Hop

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
Atributo Local Preference

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
Atributo MED

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
Proceso de seleccin de ruta en BGP (1)

1. Preferir el atributo weight mas alto


2. Si varias rutas tienen el mismo peso preferir el
atributo local preference mas alto
3. Si varias rutas tienen la misma preferencia local,
preferir la ruta originada localmente
4. Si no hay rutas originadas localmente, preferir el AS-
PATH mas corto
5. Si varias rutas tienen el mismo valor de AS-PATH,
preferir la ruta con el menor cdigo de origen
6. Si todos los cdigos de origen tienen el mismo valor
preferir el atributo MED mas bajo
Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
Proceso de seleccin de ruta en BGP (1)

7. Si las rutas tienen el mismo MED, preferir caminos


externos (EBGP) en lugar de caminos internos
(IBGP)
8. Si solo quedan caminos internos, preferir el camino a
travs del vecino IGP ms cercano.
9. Para los caminos de EBGP elegir el mas antiguo
10. Preferir la ruta a travs del vecino de BGP con el
router-id mas bajo
11. Preferir la ruta a travs del vecino de BGP con la
direccin IP ms baja

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
Balanceo de carga en BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
Configuracin de BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30
Otro ejemplo de configuracin de BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
Autenticacin en BGP

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
Verificacin de BGP

show ip bgp neighbors {direccin} received-routes


show ip bgp neighbors {direccin} advertised-routes
show ip bgp neighbors {direccin} routes
show ip bgp neighbors
show ip bgp summary
show ip bgp

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
Rutas BGP sin manipulacin

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34
Manipulacin bsica de rutas

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
Filtrado de rutas usando route-maps

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
Consultas, dudas y
comentarios

Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 37
Presentation_ID 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38

Das könnte Ihnen auch gefallen