0 calificaciones0% encontró este documento útil (0 votos) 80 vistas14 páginasBGP
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido,
reclámalo aquí.
Formatos disponibles
Descarga como PDF o lee en línea desde Scribd
123, 21.06 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
@Lesand
CU Past @hs 2019 CS ace ate We
CCNP ROUTE LABORATORIO BGP 01
Inicio » Laboratorios
Enviado por dpacheco el Vie, 09/12/2016 - 23:47
Inicie sesién o registrese para enviar comentarios
TOPOLOGIA
gas
dpanenonceesa QD iLesand
hitps:lesand.cUlaboratoroleenp-route-Laboratoro-bgp-01 ana123, 21.06 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
RESUMEN DE LA ACTIVIDAD:
Este laboratorio considera la aplicacién de contenidos analizados en la certificacion de
CCNP ROUTE. En esta actividad se interconectan 2 Sistemas autonomos que
representan a 2 proveedores de servicios (AS 210 y AS 220). Ademis, se realiza la
conexién de 2 clientes a estos proveedores de servicios (AS 214 y AS 215). Se realizaré
el establecimiento de sesiones BGP, propagacién de rutas y configuraci6n de atributos.
OBJETIVO(S):
+ 01 Creacién de sesiones iBGP (Full-Mesh) y verificacion del funcionamiento de BGP
en AS 210
* 02 Creacién de sesiones iBGP (Route-Reflector) y ver
BGP en AS 220.
+ 03 Creaci6n de sesion eBGP entre los AS 210 y AS 220 y verificacion del intercambio
de prefijos.
+ 04 Crear sesion eBGP entre los AS 210 y AS 220 usando las Loopback
‘+ 05 Establecimiento de sesiones eBGP de los clientes CLIO1 y CLIO2 con los
proveedores de servicio
+ 06 Sumarizacion de prefijos y propagacion de una ruta por defecto
+ 07 Configuracion y verificacion del atributo weight
+ 08 Configuracion y verificacion del atributo as-path
* 09 Configuracion y verificacion del atributo local-preference
+ 10 Configuracion y verificacion del atributo MED
icacion del funcionamiento de
RECURSOS UTILIZADOS:
+ Cisco IOS Software, 7200 Software (C7200-ADVIPSERVICESK9-M), Version 15.2(4)SS,
RELEASE SOFTWARE (Fc1)
DESARROLLO DE LA ACTIVIDAD:
01 CREACION SESIONES IBGP EN EL AS 210 PARA EL INTERCAMBIO DE PREFIJOS
USANDO FULL-MESH
En este ejemplo se creardn las sesiones de i8GP usando full-mesh en el AS 210. El uso
de Full-Mesh es necesario para que se intercambien los prefijos de DP1 y DP3 entre
ellos. Ademas se utilizar EIGRP como IGP para que se comuniquen DP1 y DP3 y
puedan establecer la sesién.
DPi(config)#router bgp 210
DP1(config-router)#neighbor 210.12.0.2 remote-as 210
DPA(config-router) network 210.1.0.0 mask 255.255.255.0
DPA(config-router)énetwork 210.1.1.0 mask 255.255.255.0
DPi(config-router)#router bgp 210
DP1(config-router)#neighbor 210.23.0.3 remote-as 210
hitps/tesand cVlaboratorofcenp-route-aboratorio-bgp-01 ana123, 21.06 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
DP1(config-router) router ospf 1
DP1(config-router) #netw 210.12.0.0 9.0.0.255 area 0
DP2(config)#router bgp 210
pP2(config-router)# neighbor 210.12.0.1 remote-as 210
DP2(config-router)# neighbor 210.23.0.3 remote-as 210
DP2(config-router)#network 210.2.0.0 mask 255,255.255.0
DP2(config-router)#router ospf 1
DP2(config-router)#netw 210.12.9.0 0.0.0.255 area 6
oP2(config-router)#netw 210.23.0.0 0.0.0.255 area 0
DP3(config)#router bgp 210
DP3(config-router)#neighbor 210.23.0.2 remote-as 210
DP3(config-router)#network 210.3.0.0 mask 255.255.255.0
DP3(config-router)#router bgp 210
DP3(config-router)#neighbor 210.12.0.1 remote-as 210
DP3(config-router)#router ospf 1
DP3(config-router)#netw 210.23.0.0 0.0.0.255 area 0
\VERIFICACION DE SESIONES E INTERCAMBIO DE PREFLIOS EN EL AS 210
Para la verificacién del Funcionamiento, utilizaremos 3 comandos:
show ip bgp summary: Se puede observar que las 2 sesiones se encuentran
establecidas, y ambos vecinos entregan 1 prefijo a DP1
show ip bgp: Se observan los prefijos recibidos y el siguiente salto para cada uno de
ellos.
show ip route bgp: Se observa la instalacién de estos prefijos en la tabla de rutas.
DPifshow ip bgp summary
BGP router identifier 210.1.1.1, local AS number 210
BGP table version is 5, main routing table version 5
4 network entries using 576 bytes of memory
4 path entries using 320 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
9 BGP route-map cache entries using @ bytes of memory
© BGP filter-List cache entries using 6 bytes of memory
BGP using 1168 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 69 secs
Neighbor v AS MsgRevd MsgSent TblVer InQ OutQ Up/|
210.12.0.2 4 210 1s 1s 5 8 0 a:
210.23.0.3 4 210 14 15 5 8 0 ae:
DPi#show ip bep
BGP table version is 5, local router ID is 210.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -
r RIB-failure, S Stale, m multipath, b backup-path, f RI
x best-external, a additional-path, ¢ RIB-compressed,
Origin codes: i - IGP, e - EGP, 2 - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
> 210.1.0.0 0.0.0.0 ° 32768 i
hips:tesand claboratrolenp-outedaboratro-bgp-D1
ana1ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
*> 210.1.1.9 9.0.0.0 ® 32768 i
>i 210.2.0.0 210.12.0.2 8 160 ei
wi 210.3.0.0 210.23.0.3 @ 100 od
DP1#show ip route bgp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, 8 +
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
NI - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2|
El - OSPF external type 1, E2 - OSPF external type 2
4 - IS-TS, su - IS-TS summary, L1 - IS-IS level-1, 2 - IS-1S
ja - IS-IS inter area, « - candidate default, U - per-user sta
© - ODR, P - periodic downloaded static route, H - NHRP, t- UJ
+ - replicated route, % - next hop override
Gateway of last resort is not set
B —-210.2.0.0/24 [200/0] via 210.12.0.2, 00:11:37
B —-210.3.0.0/24 [200/] via 210.23.0.3, 00:11:35
02 CREACION SESIONES IBGP EN EL AS 220 PARA EL INTERCAMBIO DE PREFIJOS
USANDO ROUTE-REFLECTOR
Creacién sesiones iBGP en el AS 220 para el intercambio de prefijos usando route-
reflector
En este ejemplo se crearan las sesiones de iBGP usando route-reflector en el AS 220. El
uso de route-reflector es necesario para que se reenvien los prefijos de DP4 a DPS.
‘Ademés, se utilizaré OSPF como IGP para que se conozcan los next-hop entre DP4 y
DP6.
DP4(config)#router bgp 220
DP4(config-router)#neighbor 220.45.0.5 remote-as 220
DP4(config-router)#network 220.4.0.0 mask 255.255.255.0
DP4(config-router)#router eigrp 220
DP4(config-router)#netw 220.45.0.0
DPS(config-if)#router bgp 226
DP5(config-router) #neighbor 220.45.0.4 remote-as 220
DPS(config-router) #neighbor 220.56.0.6 remote-as 220
DPS(config-router)#network 220.5.0.0 mask 255.255.255.0
DPS(config-router)#router bgp 220
DPS (config-router) #neighbor 220.45.0.4 route-reflector-client
DP5(config-router)#neighbor 220.56.0.6 route-reflector-client
DPS(config-router)#router eigrp 220
DPS(config-router)#netw 220.45.0.0
DP5(config-router)#netw 220.56.9.0
DP6(config)#router bgp 220
DP6(config-router)#neighbor 220.56.0.5 remote-as 220
DP6(config-router) #network 220.6.9.9 mask 255.255.255.0
DP6(config-router)#network 220.6.1.0 mask 255.255.255.0
DP6(config-router)#router eigrp 220
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 ana1ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
ure(conrig-router)#netw 220.98.0.0
VERIFICACION DE SESIONES E INTERCAMBIO DE PREFIJOS EN EL AS 220
En este caso solo se verificara la instalacién de los prefijos en la tabla de rutas, en caso
de Falla también puede utilizar los comandos indicados anteriormente para la
verificacién (show ip bgp y show ip bgp summary)
DPG#show ip route bgp
Codes: | - local, C - connected, S - static, R - RIP, M - mobile, 8 -
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
NI - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2|
E1 - OSPF external type 1, E2 - OSPF external type 2
4 - IS-TS, su - IS-TS summary, L1 - IS-IS level-1, 2 - IS-1S
ja - IS-IS inter area, « - candidate default, U - per-user sta
© - ODR, P - periodic downloaded static route, H - NHRP, t- U
+> replicated route, % - next hop override
Gateway of last resort is not set
B —-220.4.0.0/24 [200/@] via 226.45.0.4, 00:02:40
B —-220.5.0.0/24 [200/0] via 220.56.0.5, 00:02:40
03 CREACION DE SESION EBGP ENTRE LOS AS 210 Y AS 220.
Debido a que existen 2 enlaces entre el AS 210 y AS 220, se creard la sesion eBGP
entre 2 interfaces loopback para crear solo una sesién de eBGP.
Antes de crear esta sesién eBGP es necesario tener conectividad entre ambas
interfaces loopback, para este ejemplo utilizaremos enrutamiento estatico para
‘comunicar ambas interfaces.
Luego ademas de indicar el vecino de la sesi6n, es necesario indicar la direccién de
origen de la sesién (update source) y aumentar el TTL (ebgp-multi hop) para la sesi6n.
‘Ademés para que las rutas sean visibles e instaladas en las tablas de rutas de los otros
routers del sistema auténomo es necesario que se cambien los next-hop en las
sesiones iBGP
DP3(config)#ip route 4.4.4.4 255.255.255.255 200.210.220.4
DP3(config)#ip route 4.4.4.4 255.255.255.255 200.220.210.4 2
DP3(config)#router bgp 210
DP3(config-router)#neighbor 4.4.4.4 remote-as 220
DP3(config-router)#neighbor 4.4.4.4 ebgp-multihop 2
DP3(config-router)#neighbor 4.4.4.4 update-source loopback 10
DP3(config-router)#
0P3(config-router)#router bgp 210
DP3(config-router)# neighbor 210.12.6.1 next-hop-self
DP3(config-router)# neighbor 210.23.0.2 next-hop-self
DP4(config)#ip route 3.3.3.3 255.255.255.255 200.220.210.3
DP4(config)#ip route 3.3.3.3 255.255.255.255 200.210.220.3 2
DP4(config)#router bgp 220
DP4(config-router)#neighbor 3.3.3.3 remote-as 210
DP4(config-router)#neighbor 3.3.3.3 ebgp-multihop 2
DP4(config-router)#neighbor 3.3.3.3 update-source loopback 10
pp4(config-router)#
hitps/tesand ctlaboraterofcenp-route-aboratorio-bgp-01
ona1ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
DP4(config-router) router bgp 226
DP4(config-router)# neighbor 220.45.0.5 next-hop-self
VERIFICACION DEL FUNCIONAMIENTO DE BGP ENTRE LOS AS 210 Y AS 220
Para verificar el intercambio de prefijos entre ambos AS se verificard la tabla de rutas
en DP1 y se probard conectividad con DP6.
DP1#show ip route bgp
Codes: L - local, € ~ connected, S - static, R - RIP, M - mobile, 8
D - ETGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
NI - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
4 - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS
ja - IS-IS inter area, * ~ candidate default, U - per-user sta
© - ODR, P - periodic downloaded static route, H - NHRP, t- U
+ - replicated route, % - next hop override
Gateway of last resort is not set
B —-210.2.0.0/24 [200/0] via 210.12.0.
B —-210.3.0.9/24 [20/0] via 210.23.0.
B —-220.4.0.0/24 [200/@] via 210.23.0.
B 220.5.0.0/24 [200/6] via 2106.23.09.
B —-220.6.0.0/24 [20/0] via 210.23.0.
8 —-220.6.1.9/24 [20/0] via 210.23.0.
DPi#ping 220.6.0.1 source 210.1.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 220.6.0.1, timeout is 2 seconds:
Packet sent with a source address of 210.1.9.1
04 ESTABLECIMIENTO Y VERIFICACION DE SESIONES EBGP DE CLIO1 Y CLI02 CON LOS
AS210Y 220
Se crearan las sesiones de eBGP de los clientes con los proveedores de servicio (AS210
y AS220). Ademas se usara el comando next-hop self donde sea necesario.
Luego se verificaran los prefijos recibidos en ambos clientes.
DP1(config)#router bgp 210
DPA(config-router) neighbor 200.214.210.2 remote-as 214
DPA(config-router)#neighbor 210.12.0.2 next-hop-self
DPA(config-router)#neighbor 210.23.0.3 next-hop-self
DP6(config)#router bgp 220
DP6(config-router)#neighbor 200.214.220.2 remote-as 214
DP6(config-router)#neighbor 220.56.0.5 next-hop-self
CLIO1(config-if)#router bgp 214
CLI01(config-router)#neighbor 200.214.210.1 remote-as 210
CLIO1(config-router)#neighbor 200.214.220.1 remote-as 220
CLI01(config-router)#network 214.0.0.0
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 ona1ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
(Livi (conTig-router) #network 214.0.1.8
DP4(config)#router bgp 220
DP4(config-router)#neighbor 200.215.220.2 remote-as 215
DP4(config-router)#neighbor 200.215.220.2 default-originate
DP6(config)#router bgp 220
DP6(config-router)#neighbor 200.220.215.2 remote-as 215
DP6(config-router)#neighbor 200.220.215.2 default-originate
CLIO2A(config)#router bgp 215
CLIO2A(config-router)#neighbor 200.220.215.1 remote-as 220
CLIO2A(config-router)#neighbor 215.10.20.2 remote-as 215
CLIO2A(config-router) #network 215.10.0.0
CLIO2A(config-router) #neighbor 215.10.20.2 next-hop-self
CLT62B(config)#router bgp 215
CL1028(config-router)#neighbor 200.215.220.1 remote-as 220
CLI028(config-router)# neighbor 215.19.20.1 remote-as 215
CLI028(config-router)#network 215.20.0.9
CLT@28(config-router)#neighbor 215.10.20.1 next-hop-self
CLIe1#show ip bgp
BGP table version is 13, local router ID is 214.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -|
r RIB-failure, $ Stale, m multipath, b backup-path, f RI
x best-external, a additional-path, c RI8-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 210.1.0.0 200.214.220.1 © 220 21
> 200.214.210.1 8 9 210 4
* 210.1.1.0 200.214.220.1 9 220 21
® 200.214.210.1 8 @ 210 4
* © 210.2.0.0 200.214.220.1 © 220 21
> 200.214.210.1 9 210 4
* 210.3.0.0 200.214.220.1 8 220 21
® 200.214.210.1 © 210 4
*> 214.0.0.0 0.0.0.0 ® 32768 i
* 214.0.1.0 0.0.0.0 8 32768 4
* 215.10.0.0 200.214.210.1 9 210 22
” 200.214.220.1 9 220 21
* 215.20.0.0 200.214.210.1 @ 210 22
> 200.214.220.1 © 220 23
+> 220.4.0.0 200.214.220.1 9 220 4
* 200.214.210.1 9 210 22]
*> 220.5.0.0 200.214.220.1 © 220 4
* 200.214.210.1 @ 210 22
+> 220.6.0.0 200.214,220.1 8 9 220 4
* 200.214.210.1 9 210 22]
*> 220.6.1.0 200.214.220.1 ® © 220 4
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 741ysi23, 21.08
CCNP ROUTE LABORATORIO BGP 01 | Lesand.cl
200.214, 210.1 8 210 2
”
”
”
”
”
»
*>
»
>
»
>
>
”
*>
ei
ea
+i
a
ea
+i
origin codes: i
RPKI validation
Network
9.0.9.0
210.1.0.0
210.1.1.0
210.2.0.0
210.3.0.0
214.9.0.0
214.0.1.8
215.10.0.0
215.20.0.8
220.4.0.0
220.5.0.0
220.6.0.0
220.6.1.0
Origin codes: i
RPKI validation
Network
0.0.9.0
210.1.0.0
210.1.1.0
210.2.0.0
* 4 210.3.0.0
CLIe2A#show ip bep
BGP table version is 25, local router ID is 215.10.0.1
Status codes: s
suppressed, d damped, h history, * valid, > best, i —|
RIB-failure, $ Stale, m multipath, b backup-path, f RI
best-external, a additional-path, ¢ RIB-compressed,
- IGP, e - EGP, ? - incomplete
codes: V valid, I invalid, N Not found
Next Hop Metric LocPrf Weight Path
200.220.215.1 9 220 4
215.10.20.2 ® 100 9 220 i
200.220,215.1 9 220 23
215.10.20.2 2 100 9 220 21
200.220.215.1 9 220 21]
215.10.20.2 2 100 9 220 21
200.220.2151 9 220 24
215.10.20.2 e108 9 220 21
200.220.215.1 9 220 21
215.10.20.2 © 100 9 220 21
200.220.215.1 9 220 21]
215.10.20.2 e108 9 220 21
200.220.215.1 9 220 21
215.10.20.2 © 100 9 220 21]
9.0.0.0 8 32768 4
215.10.20.2 e108 oa
200.220.215.1 9 220 4
215.10.20.2 © 100 9 220 4
200.220.215.1 9 220 4
215.10.20.2 e108 9 220 4
200.220.215.1 e 9 220 4
215.10.20.2 ® 160 9 220 4
200.220.215.1 8 9 220 i
215.10.20.2 e100 9 220 i
CLI02B#show ip bep
BGP table version is 14, local router ID is 215.20.0.1
Status codes: s
suppressed, d damped, h history, * valid, > best, i -|
RI8-failure, $ Stale, m multipath, b backup-path, f RI
best-external, a additional-path, ¢ RI8-compressed,
- IGP, e - EGP, ? - incomplete
codes: V valid, I invalid, N Not found
Next Hop Metric LocPrf Weight Path
215.10.20.1 ® 100 9 220 i
200.215.2201 9 220 i
215.10.20.1 e108 9 220 21
200.215.220.1 9 220 21
215.10.20.1 © 100 9 220 21
200.215.220.1 9 220 21
215.10.20.1 e108 9 220 23
200.215.220.1 9 220 21
215.10.20.1 ® 100 9 220 21
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01
ana1ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
> 290.219.220.4 8 220 24
wi 0 215.10.20.1 © 160 8 220 21
» 200.215.220.1 9 220 21
+ 4 214.0.1.0 215.10.20.1 © 100 9 220 21
” 200.215.220.1 8 220 24
>i 215.10.0.0 215.10.20.1 © 160 oi
*> 215.20.0.0 9.0.0.0 ® 32768 i
+ 4 220.4.0.9 215.10.20.1 ® 160 9 220 4
”» 200.215.220.1 8 8 220 4
* 4 220.5.0.0 215.10.20.1 6 160 8 220 i
» 200.215.2201 0 220 i
* 1 220.6.0.0 215.10.20.1 © 160 9 220 4
» 200.215.220.1 9 220 4
* 4 220.6.1.0 215.10.20.1 6 160 6 220 i
» 200.215.2201 0 220 i
(06 SUMARIZACION DE PREFLIOS
En este ejemplo realizaremos 2 formas de entregar los prefijos sumarizados.
La primera la realizaremos en el AS 210 en la cual eliminaremos las redes que se
publican con mascara 24 y publicaremos solo una red con mascara 23 (para que se
publique esta red es necesario que el equipo conozca en su tabla la red con mascara
23, debido a esto configuramos una ruta estatica).
La segunda sumarizaci6n la realizaremos utilizando el comando aggregate-address con
la opcién summary-only la cual enviara solo la ruta sumarizada.
Posteriormente verificaremos que las rutas se estén aprendiendo con mascara /23
DPA(config-router)#router bgp 210
DPA(config-router)#no network 210.1.0.0
DPA(config-router)#no network 210.1.1.0
DPA (config-router)#network 210.1.0.0 mask 255.255.254.0
DPA(config-router)#ip route 219.1.9.0 255.255.254.0 null @
DP6(config-router)#router bgp 220
DP6(config-router) #aggregate-address 220.6.0.0 255.255.254.0 sunmary-|
CLrO1#show ip route bgp | inc /23
B -210.1.0./23 [20/0] via 200.214.210.1, 00:05
B ——-220.6.0.0/23 [20/0] via 200.214.220.1, 00:00:49
PROPAGACION DE UNA RUTA POR DEFECTO
Realizaremos las configuraciones necesarias para que los proveedores de servicio.
entreguen una ruta por defecto a los clientes 1 y 2 usando la opcién default-originate.
Posteriormente verificaremos este cambio en la tabla de rutas.
DPA(config)#router bgp 210
DP1(config-router)#neighbor 200.214.210.2 default-originate
DP4(config-router)#router bgp 226
DP4(config-router) #neighbor 200.215.220.2 default-originate
DP6(config-router)#router bgp 220
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 ona115128, 2108 CCNP ROUTE LABORATORIO BGP 01 | Lesand.ct
vre(contig-router)#neignbor 200.220.219.2 deTauLt-orrginate
DPG(config-router)# neighbor 200.214.220.2 default-originate
CLI@1#show ip route bgp | inc 0.0.0.
Gateway of last resort is 200.214.219.1 to network 0.0.0.9
B+ .0.0.0/8 [20/0] via 260.214.210.1, 0:01:20
CLIE2A#show ip route bgp | inc 0.0.0.0
Gateway of last resort is 200.220.215.1 to network 0.0.0.0
B+ .0.0.0/0 [20/0] via 260.220.215.1, 0:23:08
CLIe2B#show ip route bgp | inc 0.0.0.0
Gateway of last resort is 200.215.220.1 to network 0.0.0.0
Bx —0.0.0.0/0 [20/0] via 260.215.220.1, 00:23:48
07 INFLUENCIAR EL TRAFICO DE SALIDA USANDO EL ATRIBUTO WEIGHT
Para este ejemplo se usaré el atributo weight en el CLIO1, el cual realizard lo siguiente:
Todas las rutas aprendidas por CLIO1 desde el AS 20 se les asignara un weight de 5.
Luego, de las rutas informadas por el AS 10 se le asignara un weight de 10a los
siguientes prefijos: 210.1.0.0/23, 220.6.0.0/23 y 0.0.0.0/0; las demas rutas se dejarén
con su valor por defecto.
El impacto que tendré esta configuracién seré la siguiente:
El trafico que haga “match” con los prefijos: 210.1.0.0/23, 220.6.0.0/23 y 0.0.0.0/0
preferird el AS 10 como salida del sistema autonomo y todo el trafico restante
preferird el AS 20.
CLIO1 (config) #route-map TRAFOUT1 permit 16
CLIO1(config-route-map)# set weight 5
CLI01(config-route-map) #router bgp 214
CLIO1(config-router)# neighbor 200.214.220.1 route-map TRAFOUTI in
CLIO1(config-router)#ip prefix-List MASK23-0000 permit 0.0.0.0/6
CLIO1 (config) #ip prefix-List MASK23-9000 permit 210.1.0.0/23
CLIOL(config)#ip prefix-List MASK23-0000 permit 220.6.0.0/23
CLIO1(config)# route-map TRAFOUT2 permit 16
CLIO1(config-route-map)# match ip address prefix-List MASK23-0000
CLIO1(config-route-map)# set weight 10
CLIO1(config-route-map)# route-map TRAFOUT2 permit 20
CLI01(config-route-map)#router bgp 214
CLIO1(config-router)# neighbor 200.214.210.1 route-map TRAFOUT2 in
VERIFICACION DEL ATRIBUTO WEIGHT
A ccontinuacion se observa el cambio de los valores en el weight con el comando show
ip bgp y con el show ip route se puede observar por que sistema autonomo se enviara
el trafico (via 200.214.2101 para el AS 10 y via 200.214,220.1 para el AS 20)
CLIe1#show ip bgp
BGP table version is 25, local router ID is 214.0.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i -|
r RIB-failure, $ Stale, m multipath, b backup-path, f RI
x best-external, a additional-path, ¢ RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 1041ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
keRL valiaation codes: v vatia, 1 Invalid, N Not round
Network Next Hop Metric LocPrf Weight Path
+> 0.0.0.0 200.214.210.1 10 210 4
* 200.214.220.1 5 220 4
* 210.1.0.0/23 200.214.220.1 5 220 21
» 200.214,210.1 ® 19 210 4
+> 210.2.0.9 200.214.220.1 5 220 21
* 200.214.210.1 8 210 4
* 210.3.0.0 200.214,210.1 6 210 i
» 200.214.2201 5 220 21]
> 214.0.0.8 9.0.0.0 ® 32768 4
*> 214,0.1.0 0.0.0.0 ® 32768 4
* 215.10.0.0 200.214.210.1 8 210 22
» 200.214,220.1 5 220 21]
* 215.20.0.0 200.214.210.1 9 210 22|
» 200.214.220.1 5 220 21
* 220.4.0.0 200.214.210.1 9 210 22]
” 200.214.2201 5 220 i
* 220.5.0.0 200.214.210.1 9 210 22}
» 200.214.220.1 5 220 4
*> 220.6.0.0/23 200.214.210.1 19 210 22|
* 200.214.2201 ° 5 220 4
CLI@1#show ip route bep
Codes: L - local, € - connected, S - static, R - RIP, M - mobile, 8 +
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
NI - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
4 - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS
ja - IS-IS inter area, * - candidate default, U - per-user sta
0 - ODR, P ~ periodic downloaded static route, H - NHRP, t- U
+ - replicated route, % - next hop override
Gateway of last resort is 200.214.210.1 to network 0.0.0.9
* 0,0.0,0/8 [20/0] via 200.214.210.1, 00:23:13
210.1.0.0/23 [20/0] via 200.214.210.1, 00:23:
210.2.0.0/24 [20/0] via 200.214,220.1, 00:23:
210.3.0.0/24 [20/0] via 200.214.220.1, 00:23:13
215.10.0.0/24 [20/0] via 200.214,220.1, 00:23:13
215.20.0.0/24 [20/6] via 200.214.220.1, 00:2
220.4.0.0/24 [20/0] via 200.214.220.1, 00:23
220.5.0.0/24 [20/0] via 200.214.220.1, 06:23:13
220.6.0.0/23 [20/0] via 200.214.210.1, 00:23:13
08 INFLUENCIAR EL TRAFICO DE ENTRADA USANDO EL ATRIBUTO AS-PATH
Para el siguiente ejemplo se realizaré la siguiente configuracién:
Se informaré que la red 214.0.0.0/24 atraviesa el AS 214 3 veces adicionales hacia el AS
210.
Se informara que la red 214.0.1.0/24 atraviesa el AS 214 3 veces adicionales hacia el AS
220.
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 wna123, 21.06 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
Esto generara lo siguiente:
El trafico con destino la red 214.0.0.0 preferira el enlace a través del AS 20.
El trafico con destino la red 214.0.0.0 preferira el enlace a través del AS 10.
CLIO1(config)#ip access-list standard REOL®
CLIO1(config-std-nacl)# permit 214.0.0.0 ©.0.0.255
CLI01(config-std-nacl)#route-map TRAFINI permit 10
CLI01(config-route-map)#match ip address REDLO
CLI01(config-route-map)#set as-path prepend 214 214 214
CLI01(config-route-map) #route-map TRAFINI permit 26
CLI01(config-route-map)#router bgp 214
CLI01(config-router)#neighbor 200.214.210.1 route-map TRAFINI out
CLIO1(config-router)# ip access-list standard REDLL
CLIO1(config-std-nacl)# permit 214.0.1.0 ©.0.0.255
CLI01(config-std-nacl)#route-map TRAFIN2 permit 10
CLI01(config-route-map)#match ip address REDLI
CLI01(config-route-map)#set as-path prepend 214 214 214
CLI01(config-route-map) #route-map TRAFIN2 permit 26
CLI01(config-route-map)#router bgp 214
CLIO1(config-router)#neighbor 200.214.220.1 route-map TRAFIN2 out
VERIFICACION DEL FUNCIONAMIENTO DEL ATRIBUTO AS PATH
del enlace con DP1 y el con destino la red 210.0.0.0/24 llegara por el AS 20a través del
enlace con DP6
DPivshow ip bgp | inc 214
4 214.0.0.0 210.23.0.3 © 100 © 220 21
* 200.214,210,2 9 214 24]
*> 214,0.1.0 200.214,210.2 ® 9 214 4
* 200.214.210.2 © 214 22]
* 200.214.210.2 @ 214 29
* 220.4.0.0 200.214,210.2 9 214 22]
* 200.214,210.2 © 214 22]
DPi#show ip route bgp | inc 214
B —-214.6.0.0/24 [200/0] via 210.23.0.3, 00:18:30
B —-214.0.1.0/24 [20/0] via 200.214.210.2, 04:02:28
DP6#show ip bgp | inc 214
> 0.0.0.0 200.214.220.2 9 214 24]
* —210.1.0.0/23 -200.214.220.2 © 214 23]
> 214.0.0.0 200.214.220.2 ® 0 214 4
4 214.0.1.0 220.45.0.4 ® 100 @ 210 23
* 200.214.220.2 8 9 214 21]
DP6#show ip route bgp | inc 214
Gateway of last resort is 200.214.220.2 to network 0.0.0.0
B+ — 0.0.6.0/0 [20/0] via 200.214.220.2, 62:16:17
B ——-214.0.0.0/24 [20/0] via 200.214.220.2, 04:00:09
B ——-214.0.1.0/24 [260/0] via 220.45.0.4, 00:16:44
(09 CONFIGURACION DEL ATRIBUTO LOCAL-PREFERENCE
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01
Como se observa el trfico con destino la red 210.0.1.0/24 llegara por el AS 10 a través
i
vara123, 21.06 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
En este ejemplo le asignaremos el atributo en 150 para las rutas aprendidas a traves
del CLIO2A para que el trafico de salida del AS 215 prefiera ese equipo.
CLTO2A(config-router)#route-map TRAFOUT permit 10
CLTO2A(config-route-map)#set local-preference 159
CLI02A(config-route-map)#router bgp 215
CLIO2A(config-router) neighbor 200.220.215.1 route-map TRAFOUT in
VERIFICACION DEL ATRIBUTO LOCAL-PREFERENCE
Para la verificacion del funcionamiento de este atributo, revisaremos la influencia de
este en CLIO2B. Como se observa todo el trafico de salida se esta enviando hacia
CLIO2ZA.
CLIe2B#show ip bgp
BGP table version is 28, local router ID is 215.20.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i ~
r RIB-failure, S Stale, m multipath, b backup-path, f R|
x best-external, a additional-path, ¢ RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 0.0.9.0 200.215.220.1 8 220 4
oi 215.10.20.1 6 150 6 220 i
* 210.1.0.0/23 200.215.220.1 9 220 21
ei 215.10.20.1 ® 150 9 220 21
* 210.2.0.0 200.215.220.1 8 220 24
oi 215.10.20.1 © 150 @ 220 21
* 210.3.0.0 200.215.220.1 9 220 21
ei 215.10.20.1 ® 150 9 220 21
>i 214.0.0.0 215.10.20.1 8 150 8 220 24
* 200.215.220.1 8 220 21
wi 214.9.1.0 215.10.20.1 e150 9 220 21
* 200.215.220.1 9 220 21
4 215.10.0.0 215.10.20.1 8 160 oi
»> 215.20.0.0 9.0.0.0 8 32768 i
>i 220.4.0.0 215.10.20.1 © 150 0 220 i
* 200.215.220.1 ® 9 220 4
* 220.5.0.0 200.215.220.1 9 220 4
ei 215.10.20.1 6 158 8 220 4
* 220.6.0.0/23 200.215.220.1 9 220 4
ea 215.10.20.1 e150 9 220 4
CLIe2B#show ip route bgp
Codes: L - local, ¢ - connected, S$ - static, R - RIP, M - mobile, 8 +
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
NI - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
4 - IS-IS, su - IS-1S summary, L1 - IS-IS level-1, L2 - 18-18
ja - IS-IS inter area, * - candidate default, U - per-user sta
© - ODR, P - periodic downloaded static route, H - NHRP, t- U
+ = replicated route, % - next hop override
Gateway of last resort is 215.10.20.1 to network 0.0.0.0
hitps:esand.cUlaboratoroleenp-route-aboratoro-bgp-01 ra1ysi23, 21.08 CCNP ROUTE LABORATORIO BGP 01 | Lesandl
Br -8.U.8.0/8 LZve/U) VIA 21d. 10
B —-210.1.0.0/23 [20/0] via 215 54
B ——-210.2.0.0/24 [20/0] via 215 154
B 210.3.0.0/24 [200/0] via 215 54
B ——-214.0.8.0/24 [20/0] via 215 254
B —-214.0.1.0/24 [20/0] via 215 54
B ——-215.10.8.0/24 [200/0] via 215.10.20.1, 04:53:26
B —-220.4.0.0/24 [200/0] via 215.10.20.1, a 54
B —-220.5.8.0/24 [200/08] via 215.10.20.1, 00:10:54
B —-220.6.0.0/23 [20/0] via 215.10.20.1, a 54
10 CONFIGURACION DEL ATRIBUTO MED
En este ejemplo utilizaremos este atributo para que todo el trafico recibido en el AS
prefiera router CLI02B para llegar al Sistema Autonomo 215.
CLIO2A(config)#route-map TRAFIN permit 10
CLT2A(config-route-map)#set metric 100
CLI02A(config-route-map)#router bgp 215
CLIO2A(config-router)#neighbor 260.220.215.1 route-map TRAFIN out.
VERIFICACION DEL ATRIBUTO MED
Como se puede observar en DP6, gracias a la métrica entregada por CLI02A el trafico
se reenvia hacia DPS. Lo que influenciara el trafico a salir por DP4.
DPGHshow ip bep | inc 215
#4 215.10.0.0 220.45.0.4 © 100 9 215 4
* 200.220.215.2 199 6 215 4
4 215.20.0.8 220.45.0.4 © 100 9 215 i
* 200.220.215.2 109 9 215 4
DP6#show ip route | inc 215
200.220.215.0/24 is variably subnetted, 2 subnets, 2 masks
200.220.215.0/24 is directly connected, FastEthernet1/o
200.220.215.1/32 is directly connected, Fast€thernet1/0
215.10.0.0/24 [200/0] via 220.45.0.4, 00:06:49
215.20.0.0/24 [200/0] via 220.45.0.4, 00:06:49
hitps:esand.cUlaboratoroleenp-route-Laboratoro-bgp-01
vane
También podría gustarte
Riesgos OSPF
Aún no hay calificaciones
Riesgos OSPF
121 páginas
BGP Rossina
Aún no hay calificaciones
BGP Rossina
13 páginas
Curso BGP 1
Aún no hay calificaciones
Curso BGP 1
51 páginas
BGP PDF
Aún no hay calificaciones
BGP PDF
7 páginas
BGP Cisco
Aún no hay calificaciones
BGP Cisco
93 páginas
BGP
Aún no hay calificaciones
BGP
13 páginas
Sub Netting
Aún no hay calificaciones
Sub Netting
25 páginas