lunes, 7 de septiembre de 2009

CCNP Violento BSCI-642-901: BGP

CCNP Violento BSCI-642-901: BGP

1. Descripción del Escenario

Yahoo1 y Yahoo2
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0

Yahoo3
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura para que OSPF publique la ruta por defecto
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP y IBGP
Se configura las redes que debe publicar BGP
Se configura rutas estáticas para las redes publicadas por BGP

Yahoo4
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura para que OSPF publique la ruta por defecto
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP y IBGP

Telmex1
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP y IBGP
Se deshabilita la sincronización
Se establece la contraseña MD5 para IBGP
Se configura las redes que debe publicar BGP
Se configura rutas estáticas para las redes publicadas por BGP
Se establece la preferencia local hacia telefónica en 50

Telmex2
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP y IBGP
Se deshabilita la sincronización
Se establece la contraseña MD5 para IBGP

Telmex3
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP y IBGP
Se deshabilita la sincronización
Se establece la contraseña MD5 para IBGP
Se establece la métrica hacia Microsoft en 200

Telmex4
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP y IBGP
Se deshabilita la sincronización
Se establece la contraseña MD5 para IBGP
Se establece la métrica hacia Microsoft en 100

Telefónica y Microsoft
Se configura las direcciones IP de sus interfaces
Se configura enrutamiento OSPF en el área 0
Se configura la dirección IP de la interfaz de Loopback
Se configura EBGP
Se configura las redes que debe publicar BGP

2. Configuración

A continuación se presenta la configuración completa de cada uno de los equipos de este escenario

Yahoo1(config)# hostname Yahoo1

Yahoo1(config)# interface Serial0/0
Yahoo1(config-if)# ip address 10.1.3.1 255.255.255.0
Yahoo1(config-if)# no shutdown
Yahoo1(config)# interface Serial0/1
Yahoo1(config-if)# ip address 10.1.1.1255.255.255.0
Yahoo1(config-if)# no shutdown
Yahoo1(config-if)# ip address 10.1.2.1 255.255.255.0
Yahoo1(config-if)# no shutdown

Yahoo1(config)# router ospf 11
Yahoo1(config-router)#network 10.1.0.0 0.0.255.255 area 0

Yahoo2(config)# hostname Yahoo2

Yahoo2(config)# interface Serial0/0
Yahoo2(config-if)# ip address 10.1.3.2.255.255.255.0
Yahoo2(config-if)# no shutdown
Yahoo2(config)# interface Serial0/1
Yahoo2(config-if)# ip address 10.1.4.1 255.255.255.0
Yahoo2(config-if)# no shutdown
Yahoo2(config)# router ospf 11
Yahoo2(config-router)# network 10.1.0.0 0.0.255.255 area 0

Yahoo3(config)# hostname Yahoo3

Yahoo3(config)# interface Loopback0
Yahoo3(config-if)# ip address 10.4.1.3 255.255.255.255
Yahoo3(config-if)# no shutdown
Yahoo3(config)# interface Serial0/0
Yahoo3(config-if)# ip address 10.1.4.2 255.255.255.0
Yahoo3(config-if)# no shutdown
Yahoo3(config)# interface Serial0/1
Yahoo3(config-if)# ip address 10.1.2.2 255.255.255.0
Yahoo3(config-if)# no shutdown
Yahoo3(config)# interface Serial0/2
Yahoo3(config-if)# ip address 10.3.2.1 255.255.255.0
Yahoo3(config-if)# no shutdown
Yahoo3(config)# interface Serial0/3
Yahoo3(config-if)# ip address 10.1.5.1 255.255.255.0
Yahoo3(config-if)# no shutdown

Yahoo3(config)# router ospf 11
Yahoo3(config-router)# network 10.1.0.0 0.0.255.255 area 0
Yahoo3(config-router)# network 10.4.1.3 0.0.0.0 area 0
Yahoo3(config-router)# default-information originate always
Yahoo3(config)# router bgp 64600
Yahoo3(config-router)# no synchronization
Yahoo3(config-router)# network 10.1.0.0 mask 255.255.0.0
Yahoo3(config-router)# network 10.4.1.0 mask 255.255.255.0
Yahoo3(config-router)# neighbor 10.3.2.2 remote-as 65000
Yahoo3(config-router)# neighbor 10.4.1.4 remote-as 64600
Yahoo3(config-router)# neighbor 10.4.1.4 update-source Loopback0
Yahoo3(config-router)# neighbor 10.4.1.4 next-hop-self

Yahoo3(config)# ip route 10.1.0.0 255.255.0.0 Null0
Yahoo3(config)# ip route 10.4.1.0 255.255.255.0 Null0

Yahoo4(config)# hostname Yahoo4

Yahoo4(config)# interface Loopback0
Yahoo4(config-if)# ip address 10.4.1.4 255.255.255.255
Yahoo4(config-if)# no shutdown
Yahoo4(config)# interface Serial0/0
Yahoo4(config-if)# ip address 10.1.1.2 255.255.255.0
Yahoo4(config-if)# no shutdown
Yahoo4(config)# interface Serial0/1
Yahoo4(config-if)# ip address 10.3.1.1 255.255.255.0
Yahoo4(config-if)# no shutdown
Yahoo4(config)# interface Serial0/2
Yahoo4(config-if)# ip address 10.1.5.2 255.255.255.0
Yahoo4(config-if)# no shutdown

Yahoo4(config)# router ospf 11
Yahoo4(config-router)# network 10.1.0.0 0.0.255.255 area 0
Yahoo4(config-router)# network 10.4.1.4 0.0.0.0 area 0
Yahoo4(config-router)# default-information originate always
Yahoo4(config)# router bgp 64600
Yahoo4(config-router)# no synchronization
Yahoo4(config-router)# neighbor 10.3.1.2 remote-as 64800
Yahoo4(config-router)# neighbor 10.4.1.3 remote-as 64600
Yahoo4(config-router)# neighbor 10.4.1.3 update-source Loopback0
Yahoo4(config-router)# neighbor 10.4.1.3 next-hop-self

Telmex1(config)# hostname Telmex1

Telmex1(config)# interface Loopback0
Telmex1(config-if)# ip address 10.4.2.1 255.255.255.255
Telmex1(config-if)# no shutdown
Telmex1(config)# interface Serial0/0
Telmex1(config-if)# ip address 10.3.1.2 255.255.255.0
Telmex1(config-if)# no shutdown
Telmex1(config)# interface Serial0/1
Telmex1(config-if)# ip address 10.2.2.1 255.255.255.0
Telmex1(config-if)# no shutdown
Telmex1(config)# interface Serial0/2
Telmex1(config-if)# ip address 10.2.1.1 255.255.255.0
Telmex1(config-if)# no shutdown

Telmex1(config)# router ospf 11
Telmex1(config-router)# network 10.2.0.0 0.0.255.255 area 0
Telmex1(config-router)# network 10.4.0.0 0.0.255.255 area 0
Telmex1(config)# router bgp 64800
Telmex1(config-router)# no synchronization
Telmex1(config-router)# network 10.2.0.0 mask 255.255.0.0
Telmex1(config-router)# network 10.4.2.0 mask 255.255.255.0
Telmex1(config-router)# neighbor ibgps peer-group
Telmex1(config-router)# neighbor ibgps remote-as 64800
Telmex1(config-router)# neighbor ibgps password tongo
Telmex1(config-router)# neighbor ibgps update-source Loopback0
Telmex1(config-router)# neighbor ibgps next-hop-self
Telmex1(config-router)# 10.3.1.1 remote-as 64600
Telmex1(config-router)# 10.3.1.1 route-map locapre in
Telmex1(config-router)# 10.4.2.2 peer-group ibgps
Telmex1(config-router)# 10.4.2.3 peer-group ibgps
Telmex1(config-router)# 10.4.2.4 peer-group ibgps

Telmex1(config)# ip route 10.2.0.0 255.255.0.0 Null0
Telmex1(config)# ip route 10.4.2.0 255.255.255.0 Null0

Telmex1(config)# access-list 11 permit 10.4.3.1
Telmex1(config)# route-map locapre permit 10
Telmex1(config-route-map)# match ip address 11
Telmex1(config-route-map)# set local-preference 50
Telmex1(config)# route-map locapre permit 20

Telmex2(config)# hostname Telmex2

Telmex2(config)# interface Loopback0
Telmex2(config-if)# ip address 10.4.2.2 255.255.255.255
Telmex2(config-if)# no shutdown
Telmex2(config)# interface Serial0/0
Telmex2(config-if)# ip address 10.2.2.2 255.255.255.0
Telmex2(config-if)# no shutdown
Telmex2(config)# interface Serial0/1
Telmex2(config-if)# ip address 10.2.3.1 255.255.255.0
Telmex2(config-if)# no shutdown

Telmex2(config)# router ospf 11
Telmex2(config-router)# network 10.2.0.0 0.0.255.255 area 0
Telmex2(config-router)# network 10.4.0.0 0.0.255.255 area 0
Telmex2(config)# router bgp 64800
Telmex2(config-router)# no synchronization
Telmex2(config-router)# neighbor ibgps peer-group
Telmex2(config-router)# neighbor ibgps remote-as 64800
Telmex2(config-router)# neighbor ibgps password tongo
Telmex2(config-router)# neighbor ibgps update-source Loopback0
Telmex2(config-router)# neighbor ibgps next-hop-self
Telmex2(config-router)# neighbor 10.4.2.1 peer-group ibgps
Telmex2(config-router)# neighbor 10.4.2.3 peer-group ibgps
Telmex2(config-router)# neighbor 10.4.2.4 peer-group ibgps

Telmex3(config)# hostname Telmex3

Telmex3(config)# interface Loopback0
Telmex3(config-if)# ip address 10.4.2.3 255.255.255.255
Telmex3(config-if)# no shutdown
Telmex3(config)# interface Serial0/0
Telmex3(config-if)# ip address 10.2.3.2 255.255.255.0
Telmex3(config-if)# no shutdown
Telmex3(config)# interface Serial0/1
Telmex3(config-if)# ip address 10.3.5.1 255.255.255.0
Telmex3(config-if)# no shutdown

Telmex3(config)# router ospf 11
Telmex3(config-router)# network 10.2.0.0 0.0.255.255 area 0
Telmex3(config-router)# network 10.4.0.0 0.0.255.255 area 0
Telmex3(config)# router bgp 64800
Telmex3(config-router)# no synchronization
Telmex3(config-router)# neighbor ibgps peer-group
Telmex3(config-router)# neighbor ibgps remote-as 64800
Telmex3(config-router)# neighbor ibgps password tongo
Telmex3(config-router)# neighbor ibgps update-source Loopback0
Telmex3(config-router)# neighbor ibgps next-hop-self
Telmex3(config-router)# neighbor 10.3.5.2 remote-as 65200
Telmex3(config-router)# neighbor 10.3.5.2 route-map med out
Telmex3(config-router)# neighbor 10.4.2.1 peer-group ibgps
Telmex3(config-router)# neighbor 10.4.2.2 peer-group ibgps
Telmex3(config-router)# neighbor 10.4.2.4 peer-group ibgps

Telmex3(config)# access-list 11 permit 10.2.0.0 0.0.255.255
Telmex3(config)# access-list 11 permit 10.4.2.0 0.0.0.255
Telmex3(config)# route-map med permit 10
Telmex3(config-route-map)# match ip address 11
Telmex3(config-route-map)# set metric 200
Telmex3(config)# route-map med permit 20

Telmex4(config)# hostname Telmex4

Telmex4(config)# interface Loopback0
Telmex4(config-if)# ip address 10.4.2.4 255.255.255.255
Telmex4(config-if)# no shutdown
Telmex4(config)# interface Serial0/0
Telmex4(config-if)# ip address 10.2.1.2 255.255.255.0
Telmex4(config-if)# no shutdown
Telmex4(config)# interface Serial0/1
Telmex4(config-if)# ip address 10.3.6.1 255.255.255.0
Telmex4(config-if)# no shutdown

Telmex4(config)# router bgp 64800
Telmex4(config-router)# no synchronization
Telmex4(config-router)# neighbor ibgps peer-group
Telmex4(config-router)# neighbor ibgps remote-as 64800
Telmex4(config-router)# neighbor ibgps password tongo
Telmex4(config-router)# neighbor ibgps update-source Loopback0
Telmex4(config-router)# neighbor ibgps next-hop-self
Telmex4(config-router)# neighbor 10.3.6.2 remote-as 65200
Telmex4(config-router)# neighbor 10.3.6.2 route-map med out
Telmex4(config-router)# neighbor 10.4.2.1 peer-group ibgps
Telmex4(config-router)# neighbor 10.4.2.2 peer-group ibgps
Telmex4(config-router)# neighbor 10.4.2.3 peer-group ibgps

Telmex4(config)# access-list 11 permit 10.2.0.0 0.0.255.255
Telmex4(config)# access-list 11 permit 10.4.2.0 0.0.0.255
Telmex4(config)# route-map med permit 10
Telmex4(config-route-map)# match ip address 11
Telmex4(config-route-map)# set metric 100
Telmex4(config)# route-map med permit 20

Telefonica(config)# hostname telefonica

Telefonica(config)# interface Loopback0
Telefonica(config-if)# ip address 10.4.3.1 255.255.255.255
Telefonica(config-if)# no shutdown
Telefonica(config)# interface Serial0/0
Telefonica(config-if)# ip address 10.3.2.2 255.255.255.0
Telefonica(config-if)# no shutdown
Telefonica(config)# interface Serial0/2
Telefonica(config-if)# ip address 10.3.4.1 255.255.255.0
Telefonica(config-if)# no shutdown

Telefonica(config)# router bgp 65000
Telefonica(config-router)# network 10.4.3.1 mask 255.255.255.255
Telefonica(config-router)# neighbor 10.3.2.1 remote-as 64600
Telefonica(config-router)# neighbor 10.3.4.2 remote-as 65200

Microsoft(config)# hostname Microsoft

Microsoft(config)# interface Loopback0
Microsoft(config-if)# ip address 10.4.4.1 255.255.255.255
Microsoft(config-if)# no shutdown
Microsoft(config)# interface Serial0/0
Microsoft(config-if)# ip address 10.3.6.2 255.255.255.0
Microsoft(config-if)# no shutdown
Microsoft(config)# interface Serial0/1
Microsoft(config-if)# ip address 10.3.5.2 255.255.255.0
Microsoft(config-if)# no shutdown
Microsoft(config)# interface Serial0/2
Microsoft(config-if)# ip address 10.3.4.2 255.255.255.0
Microsoft(config-if)# no shutdown

Microsoft(config)# router bgp 65200
Microsoft(config-router)# network 10.4.4.1 mask 255.255.255.255
Microsoft(config-router)# neighbor Telmex peer-group
Microsoft(config-router)# neighbor Telmex remote-as 64800
Microsoft(config-router)# neighbor 10.3.4.1 remote-as 65000
Microsoft(config-router)# neighbor 10.3.5.1 peer-group Telmex
Microsoft(config-router)# neighbor 10.3.6.1 peer-group Telmex

3. Comandos importantes

A continuación presentamos un resumen de los comandos más importantes para la configuración y la localización y corrección de errores que se debe de conocer en BGP.

(config)# router bgp autonomous-system
(config-router)# neighbor {ip-address | peer-group-name} remote-as autonomous-system
(config-router)# neighbor {ip-address | peer-group-name} shutdown
(config-router)# neighbor {ip-address | peer-group-name} update-source interface-type interface-number
(config-router)# neighbor {ip-address | peer-group-name} ebgp-multihop [ttl]
(config-router)# neighbor {ip-address | peer-group-name} next-hop-self
(config-router)# neighbor peer-group-name peer-group
(config-router)# neighbor ip-address peer-group peer-group-name
(config-router)# network network-number [mask network-mask] [route-map map-tag]
(config-router)# no synchronization
(config-router)# neighbor {ip-address | peer-group-name} password string
(config-router)# bgp default local-preference value
(cofnig-router)# default-metric number

# show ip bgp neighbors
# show ip bgp peering
# show ip bgp
# show ip bgp rib-rib-faliure
# clear ip bgp {* | neighbor-address}
# clear ip bgp {* | neighbor-address} [soft out]
(config-router)# neighbor ip-address soft-reconfiguration inbound
# clear ip bgp {* | neighbor-address} [soft in]
# clear ip bgp {* | neighbor-address} [soft in | in]
# debug ip bgp updates

No hay comentarios:

Publicar un comentario