Sei sulla pagina 1di 98

Protocolo RIP

Protocolo OSPFv2

Protocolo de
Enrutamiento
RIPv1/RIPv2

Introduccin
Formato de RIPv1
Formato de RIPv2
Caso de estudio
Configuracin
Redistribucin

Profesor Daniel Daz Ataucuri


ddiaz1610@gmail.com
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Protocolo de
enrutamiento

Catedrtico Titular a Tiempo Parcial FIEE-UNI / UNMSM


Director de Investigacin y Desarrollo
Tecnolgico del INICTEL-UNI

Lima, Enero-Diciembre de 2014


Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

Propiedad intelectual de Daniel Daz @ 2014

PROTOCOLO RIP

RFC 1058 Routing Information Protocol, Junio 1988


ddiaz@inictel-uni.edu.pe

RFC 1723 RIP version 2, Noviembre 1994


RFC 2453 RIP version 2, Noviembre 1998

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

INTRODUCCION AL PROTOCOLO RIP


RIP presenta dos versiones: RIPv1 y RIPv2
RIPv1 Es un protocolo de enrutamiento con clase.
RIPv2 Es un protocolo de enrutamiento sin clase.

RIP utiliza como mtrica el nmero de saltos.


Mximo nmero de saltos en un trayecto (path) es 15.
Mayores a 15 saltos es inalcanzable.

RIP difunde su tabla de enrutamiento completa a


cada router vecino en intervalos de 30 segundos
Direccin MAC=FF FF FF FF FF FF
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

RIP utiliza el algoritmo Vector Distancia.

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

RIPv1 vs RIPv2
RIPv1 enva sus actualizaciones en broadcast:
255.255.255.255

RIPv2 permite autenticacin: texto plano o


cifrado MD5.

RIPv1 y RIPv2 se encapsulan en UDP.

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

RIPv2 enva sus actualizaciones en multicast:


224.0.0.9

En puerto utilizado es el 520.

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

TEMPORIZACION DEL PROTOCOLO RIP


RIP emplea temporizadores para mejorar su
rendimiento.
Route-timeout timer Hold down en 180 seg.
Cada entrada tiene un route-timeout asociado.
Cuando expira, la ruta es sealada como invlida y la mtrica se
configura con 16; pero no es borrada de la tabla de enrutamiento.
Route-flush timer Inicialmente en 240 seg
Cuando expira el route-timeout, se borrar la entrada de la
tabla de enrutamiento cuando expira el route-flush timer.

Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Routing-update timer Inicialmente 30 seg.


Intervalo entre las actualizaciones de tabla de enrutamiento.

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO RIPv1


RIPv1
16

Comando Versin

00 00

Address Family
Identifier

00 00

Propiedad intelectual de Daniel Daz @ 2014

Direccin IP

00 00

00 00

00 00

00 00
Mtrica

Address Family

00 00

Direccin IP
00 00

00 00

00 00

00 00
Mtrica

Daniel Daz Ataucuri

Comando: Indica si el paquete


RIP es de requerimiento o
respuesta.

31

Requerimiento (1) pregunta a un


router por el envo total o parcial
de su tabla de enrutamiento.
Respuesta (2) puede ser una
actualizacin de enrutamiento
no solicitada o en respuesta a
un requerimiento.

Version: Indica versin del


protocolo RIP. Est en 1.
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Mximo 25 por
paquete RIP

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO RIPv1


RIPv1
8

16

Comando Versin

00 00

Address Family
Identifier

00 00

Direccin IP

00 00

00 00

00 00

00 00

Especifica la familia de direccin


usada. RIP est diseado para
llevar informacin de enrutamiento
de varios tipos de protocolos.
AFI est en 2 para IP.

Mtrica
Address Family

00 00

Direccin IP
00 00

00 00

00 00

00 00
Mtrica

Daniel Daz Ataucuri

Direccin IP: Indica la


direccin IP de entrada.
Mtrica: Indica cuantos
routers atraviesa RIP.
El valor est entre 1 a 15.
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Address Family Identifier


AFI.

31

Mximo 25 por
paquete RIP

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO RIPv2


http://www.rfc-editor.org/rfc/pdfrfc/rfc2453.txt.pdf

Address Family Identifier


AFI.

31

Identifier

Direccin IP

Mscara de subred
Salto siguiente
Mtrica
Address Family

Route Tag

Direccin IP
Es similar al RIPv1, con una
Mscara de subred
excepcin
Salto siguiente
Si el AFI de la primera entrada
Mtrica
est en FFFFh, el resto de las
entradas contiene informacin de autenticacin.
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Version: Indica la versin


del protocolo RIP.

Mximo 25 por
paquete RIP

Propiedad intelectual de Daniel Daz @ 2014

RIPv2
Comando: Indica si el paquete 0
8
16
RIP es de requerimiento o
Comando Versin
00 00
respuesta.
Address Family
Route Tag

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO RIPv2


http://www.rfc-editor.org/rfc/pdfrfc/rfc2453.txt.pdf

Direccin IP: Indica el prefijo


de red de entrada.
Mscara de Subred:
Contiene la mscara de
subred de entrada.

RIPv2
0

16

31

Comando Versin

00 00

Address Family
Identifier

Route Tag

Direccin IP

Mscara de subred
Salto siguiente
Mtrica
Address Family

Route Tag

Direccin IP
Mscara de subred
Salto siguiente
Mtrica

Mtrica: Cuantos routers atraviesa RIP.


Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Route tag: Permite distinguir


entre rutas internas
(reconocida por RIP) y rutas
externas (por otros
Protocolos EGP).

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ENCAPSULAMIENTO DEL PROTOCOLO RIPv2


0

Ver

16
ToS

HLEN

Identificador
TTL

31

Longitud Total
Indicador/Desplazam.

Protocolo
11H = 17

Suma de Chequeo

Direccin IP de Origen
.

Puerto de Origen
0208H = 520

Puerto de Destino
0208H = 520

Longitud de Mensaje Suma de Chequeo


Comando Versin

Dominio de
enrutamiento

AFI

Route Tag
Direccin IP

Mscara de subred
Salto siguiente
Mtrica

Daniel Daz Ataucuri

MAC
MAC
Destino Origen

Tipo
0800H

Datos

Trama Ethernet
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Direccin IP de Destino

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALISIS DEL PROTOCOLO RIPv2


R2

R1
.1

.1
.9

Red 30.7.7.0

02

16
02

31
00

00

00

02

00

00

1E
FF
00
00
00
1E
FF

07
FF
00
00
02
07
FF

07
FF
00
00
00
07
FF

00
FC
00
01
00
04
FC

00
00

00
00

00
00

00
01

Daniel Daz Ataucuri

0
Red 200.5.5.0

Red 200.7.7.0

Red 30.7.7.4

Propiedad intelectual de Daniel Daz @ 2014

.18
.10

200.7.7.0/24

R4

30.7.7.16/30

200.5.5.0/24

.5

.17

.6
.14

.1

.13

R3

16

31

00
C8
FF
00
00
00
C8
FF

02
05
FF
00
00
02
07
FF

00
05
FF
00
00
00
07
FF

00
00
00
00
02
00
00
00

00
00

00
00

00
00

00
02

ddiaz@inictel-uni.edu.pe

.2

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

ANALISIS DEL PROTOCOLO RIPv2

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALISIS DEL PROTOCOLO RIPv2


R2

R1
.1
.9

02

31
00

00

00

02

00

00

1E
FF
00
00
00
1E
FF

07
FF
00
00
02
07
FF

07
FF
00
00
00
07
FF

08
FC
00
01
00
0C
FC

00
00

00
00

00
00

00
01

Daniel Daz Ataucuri

0
Red 200.5.5.0

Red 30.7.7.8

16

Red 200.7.7.0

8
02

Red 30.7.7.12

Propiedad intelectual de Daniel Daz @ 2014

.18
.10
0

.6
.14

RIP

.1

200.7.7.0/24

R4

30.7.7.16/30

200.5.5.0/24

.5

.17

.1

.13

R3

16

31

00
C8
FF
00
00
00
C8
FF

02
05
FF
00
00
02
07
FF

00
05
FF
00
00
00
07
FF

00
00
00
00
02
00
00
00

00
00

00
00

00
00

00
02

ddiaz@inictel-uni.edu.pe

.2

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

ANALISIS DEL PROTOCOLO RIPv2

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

CONCEPTO DE REDISTRIBUCIN
215.5.5.0/24

R2 tiene RIPv2 activado


R2 enrutamiento esttico
para llegar a 215.5.5.0

PCa

R3

R4
Los mensajes RIP no anuncian
a la red 215.5.5.0/24

R1

RIP

R6

R2

R1 enrutamiento esttico
RI no tiene activado RIP
no anuncia 215.5.5.0/24

Insertar en
El protocolo
RIP la red
215.5.5.0

R5

RIP
R3, R4, R5 y R6 no
conocen la red 215.5.5.0
Daniel Daz Ataucuri

Que hacer
para que
conozcan
a 215.5.5.0
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

RIP

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

CONFIGURACIN DE
PROTOCOLO
RIPv1/RIPv2

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

CONFIGURACION BASICA
Configurar RIPv1:

Configurar RIPv2 en R4
Activar el protocolo RIPv2:
router rip
Especificar la versin 2:
version 2
Anunciar redes:
network <direccin de red>
Daniel Daz Ataucuri

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Activar el protocolo RIPv1:


router rip
Anunciar redes:
network <direccin de red>

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


200.1.1.64/26
PC2

.2

200.1.1.0/26
Ra
.1

.2

Fa2/0

Fa1/1

.5 40.1.2.4/30 .6
.18

.65
.10

200.1.1.128/26
.9

.1

Re
Fa2/0

.13

.22

PC3

.130

.129

.17

Rd

.194

.21
.193

ddiaz@inictel-uni.edu.pe

.14
Fa2/0

Propiedad intelectual de Daniel Daz @ 2014

PC1

Fa1/0

Fa2/0

Rc

Rb

.66

PC4

200.1.1.192/26
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Tablas de enrutamiento inicial:

Ra#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Router Ra

200.1.1.0/26 is subnetted, 1 subnets


C
200.1.1.0 is directly connected, FastEthernet2/0
40.0.0.0/30 is subnetted, 2 subnets
C
40.1.2.12 is directly connected, FastEthernet1/1
C
40.1.2.0 is directly connected, FastEthernet1/0
Ra#
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Tablas de enrutamiento inicial:

Rb#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
40.0.0.0/30 is subnetted, 3 subnets
C
40.1.2.0 is directly connected, FastEthernet1/1
C
40.1.2.4 is directly connected, FastEthernet1/0
C
40.1.2.16 is directly connected, FastEthernet2/0
Rb#
Daniel Daz Ataucuri

Para borrar la tabla de


enrutamiento:
Rb#clear ip route *

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Router Rb

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Tablas de enrutamiento inicial:

Rc#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Router Rc

200.1.1.0/26 is subnetted, 1 subnets


C
200.1.1.64 is directly connected, FastEthernet2/0
40.0.0.0/30 is subnetted, 2 subnets
C
40.1.2.8 is directly connected, FastEthernet1/0
C
40.1.2.4 is directly connected, FastEthernet1/1
Rc#
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Tablas de enrutamiento inicial:

Rd#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Router Rd

200.1.1.0/26 is subnetted, 1 subnets


C
200.1.1.192 is directly connected, FastEthernet2/0
40.0.0.0/30 is subnetted, 3 subnets
C
40.1.2.12 is directly connected, FastEthernet1/0
C
40.1.2.16 is directly connected, FastEthernet2/1
C
40.1.2.20 is directly connected, FastEthernet1/1
Rd#
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Tablas de enrutamiento inicial:

Re#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Router Re

200.1.1.0/26 is subnetted, 1 subnets


C
200.1.1.128 is directly connected, FastEthernet2/0
40.0.0.0/30 is subnetted, 2 subnets
C
40.1.2.8 is directly connected, FastEthernet1/1
C
40.1.2.20 is directly connected, FastEthernet1/0
Re#
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Ra>
Ra>enable
Ra#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ra(config)#router rip
Ra(config-router)#version 2
Ra(config-router)#network 200.1.1.0
Ra(config-router)#network 40.0.0.0
Ra(config-router)#exit
Ra(config)#

Rb>
Rb>enable
Rb#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Rb(config)#router rip
Rb(config-router)#version 2
Rb(config-router)#network 40.0.0.0
Rb(config-router)#exit
Rb(config)#

Daniel Daz Ataucuri

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Configurando RIPv2: Routers Ra y Rb

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Rc>
Rc>enable
Rc#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Rc(config)#router rip
Rc(config-router)#version 2
Rc(config-router)#network 200.1.1.0
Rc(config-router)#network 40.0.0.0
Rc(config-router)#exit
Rc(config)#

Rd>
Rd>enable
Rd#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Rd(config)#router rip
Rd(config-router)#version 2
Rd(config-router)#network 200.1.1.0
Rd(config-router)#network 40.0.0.0
Rd(config-router)#exit
Rd(config)#
Daniel Daz Ataucuri

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Configurando RIPv2: Routers Rc y Rd

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

EJEMPLO DE CONFIGURACIN RIPv2


Re>
Re>enable
Re#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Re(config)#router rip
Re(config-router)#version 2
Re(config-router)#network 200.1.1.0
Re(config-router)#network 40.0.0.0
Re(config-router)#exit
Re(config)#

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Configurando RIPv2: Router Re

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

UN DETALLE: SUMMARY
Desde Ra como llega a 200.1.1.64/26

Salto siguiente
40.1.2.14

Gateway of last resort is not set


200.1.1.0/24 is variably subnetted, 2 subnets, 2 masks
200.1.1.0/26 is directly connected, FastEthernet2/0
200.1.1.0/24 [120/1] via 40.1.2.14, 00:00:25, FastEthernet1/1
40.0.0.0/30 is subnetted, 6 subnets
R
40.1.2.8 [120/2] via 40.1.2.14, 00:00:25, FastEthernet1/1
[120/2] via 40.1.2.2, 00:00:11, FastEthernet1/0
C
40.1.2.12 is directly connected, FastEthernet1/1
C
40.1.2.0 is directly connected, FastEthernet1/0
R
40.1.2.4 [120/1] via 40.1.2.2, 00:00:11, FastEthernet1/0
R
40.1.2.16 [120/1] via 40.1.2.14, 00:00:25, FastEthernet1/1
[120/1] via 40.1.2.2, 00:00:11, FastEthernet1/0
R
40.1.2.20 [120/1] via 40.1.2.14, 00:00:25, FastEthernet1/1
Ra#
C
R

Daniel Daz Ataucuri

Aqu se ve a las redes


200.1.1.64, 200.1.1.128
y 200.1.1.192 como si
fuera la red 200.1.1.0

Ra#clear ip route *
Borra la tabla de enrutamiento.
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Ra# show ip route


Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type
2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

UN DETALLE: SUMMARY
Desde Rd como llega a 200.1.1.0/26

Salto siguiente
40.1.2.13

Gateway of last resort is not set


200.1.1.0/24 is variably subnetted, 2 subnets, 2 masks
200.1.1.192/26 is directly connected, FastEthernet2/0
200.1.1.0/24 [120/1] via 40.1.2.22, 00:00:05, FastEthernet1/1
[120/1] via 40.1.2.13, 00:00:10, FastEthernet1/0
40.0.0.0/30 is subnetted, 6 subnets
R
40.1.2.8 [120/1] via 40.1.2.22, 00:00:05, FastEthernet1/1
C
40.1.2.12 is directly connected, FastEthernet1/0
R
40.1.2.0 [120/1] via 40.1.2.18, 00:00:22, FastEthernet2/1
[120/1] via 40.1.2.13, 00:00:10, FastEthernet1/0
R
40.1.2.4 [120/1] via 40.1.2.18, 00:00:22, FastEthernet2/1
C
40.1.2.16 is directly connected, FastEthernet2/1
C
40.1.2.20 is directly connected, FastEthernet1/1
Rd#
C
R

Daniel Daz Ataucuri

Aqu se ve a las redes


200.1.1.0, 200.1.1.64,
y 200.1.1.128 como si
fuera la red 200.1.1.0

POSIBLE
BUCLE!!
ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Rd#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type
2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

SOLUCIN: DESACTIVAR SUMMARY

Rb>enable
Rb#configure terminal
Enter configuration commands, one per line. End with NTL/Z.
Rb(config)#router rip
Rb(config-router)#no auto-summary
Rb(config-router)#exit
Rb(config)#

Rc>enable
Rc#configure terminal
Enter configuration commands, one per line. End with NTL/Z.
Rc(config)#router rip
Rc(config-router)#no auto-summary
Rc(config-router)#exit
Rc(config)#

Daniel Daz Ataucuri

Rd>enable
Rd#configure terminal
Enter configuration commands, one per line. End with NTL/Z.
Rd(config)#router rip
Rd(config-router)#no auto-summary
Rd(config-router)#exit
Rd(config)#

Re>enable
Re#configure terminal
Enter configuration commands, one per line. End with NTL/Z.
Re(config)#router rip
Re(config-router)#no auto-summary
Re(config-router)#exit
Re(config)#

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Ra>enable
Ra#configure terminal
Enter configuration commands, one per line. End with NTL/Z.
Ra(config)#router rip
Ra(config-router)#no auto-summary
Ra(config-router)#exit
Ra(config)#

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALIZANDO NUEVAMENTE Ra
Desde Ra como llega a 200.1.1.64/26
Ra#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

200.1.1.0/24 is variably subnetted, 5 subnets, 2 masks


R
200.1.1.192/26 [120/1] via 40.1.2.14, 00:00:00, FastEthernet1/1
R
200.1.1.128/26 [120/2] via 40.1.2.14, 00:00:00, FastEthernet1/1
R
200.1.1.64/26 [120/2] via 40.1.2.2, 00:00:10, FastEthernet1/0
C
200.1.1.0/26 is directly connected, FastEthernet2/0
R
200.1.1.0/24 [120/2] via 40.1.2.14, 00:00:00, FastEthernet1/1
40.0.0.0/30 is subnetted, 6 subnets
R
40.1.2.8 [120/2] via 40.1.2.14, 00:00:00, FastEthernet1/1
[120/2] via 40.1.2.2, 00:00:10, FastEthernet1/0
C
40.1.2.12 is directly connected, FastEthernet1/1
C
40.1.2.0 is directly connected, FastEthernet1/0
R
40.1.2.4 [120/1] via 40.1.2.2, 00:00:10, FastEthernet1/0
R
40.1.2.16 [120/1] via 40.1.2.14, 00:00:00, FastEthernet1/1
[120/1] via 40.1.2.2, 00:00:10, FastEthernet1/0
R
40.1.2.20 [120/1] via 40.1.2.14, 00:00:06, FastEthernet1/1
Ra#
Daniel Daz Ataucuri

Aqu se ve a las redes


200.1.1.64, 200.1.1.128
y 200.1.1.192 de manera
independiente!!!!.

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Gateway of last resort is not set

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALIZANDO TABLAS DE ENRUTAMIENTO


Tabla de enrutamiento del Rb:
Rb# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

200.1.1.0/26 is subnetted, 4 subnets


R
200.1.1.192 [120/1] via 40.1.2.17, 00:00:14, FastEthernet2/0
R
200.1.1.128 [120/2] via 40.1.2.17, 00:00:14, FastEthernet2/0
[120/2] via 40.1.2.6, 00:00:10, FastEthernet1/0
R
200.1.1.64 [120/1] via 40.1.2.6, 00:00:10, FastEthernet1/0
R
200.1.1.0 [120/1] via 40.1.2.1, 00:00:12, FastEthernet1/1
40.0.0.0/30 is subnetted, 6 subnets
R
40.1.2.8 [120/1] via 40.1.2.6, 00:00:10, FastEthernet1/0
R
40.1.2.12 [120/1] via 40.1.2.17, 00:00:14, FastEthernet2/0
[120/1] via 40.1.2.1, 00:00:12, FastEthernet1/1
C
40.1.2.0 is directly connected, FastEthernet1/1
C
40.1.2.4 is directly connected, FastEthernet1/0
C
40.1.2.16 is directly connected, FastEthernet2/0
R
40.1.2.20 [120/1] via 40.1.2.17, 00:00:17, FastEthernet2/0
Rb#
Daniel Daz Ataucuri

La redes LAN estn


detalladas.
Se observa el balanceo de
carga hacia: 200.1.1.128
ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Gateway of last resort is not set

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALIZANDO TABLAS DE ENRUTAMIENTO


Tabla de enrutamiento del Rc:
Rc#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

200.1.1.0/26 is subnetted, 4 subnets


R
200.1.1.192 [120/2] via 40.1.2.9, 00:00:12, FastEthernet1/0
[120/2] via 40.1.2.5, 00:00:24, FastEthernet1/1
R
200.1.1.128 [120/1] via 40.1.2.9, 00:00:12, FastEthernet1/0
C
200.1.1.64 is directly connected, FastEthernet2/0
R
200.1.1.0 [120/2] via 40.1.2.5, 00:00:24, FastEthernet1/1
40.0.0.0/30 is subnetted, 6 subnets
C
40.1.2.8 is directly connected, FastEthernet1/0
R
40.1.2.12 [120/2] via 40.1.2.9, 00:00:12, FastEthernet1/0
[120/2] via 40.1.2.5, 00:00:24, FastEthernet1/1
R
40.1.2.0 [120/1] via 40.1.2.5, 00:00:24, FastEthernet1/1
C
40.1.2.4 is directly connected, FastEthernet1/1
R
40.1.2.16 [120/1] via 40.1.2.5, 00:00:24, FastEthernet1/1
R
40.1.2.20 [120/1] via 40.1.2.9, 00:00:13, FastEthernet1/0
Rc#
Daniel Daz Ataucuri

La redes LAN estn


detalladas.
Se observa el balanceo de
carga hacia: 200.1.1.192
ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Gateway of last resort is not set

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALIZANDO TABLAS DE ENRUTAMIENTO


Tabla de enrutamiento del Rd:
Rd#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

200.1.1.0/26 is subnetted, 4 subnets


C
200.1.1.192 is directly connected, FastEthernet2/0
R
200.1.1.128 [120/1] via 40.1.2.22, 00:00:00, FastEthernet1/1
R
200.1.1.64 [120/2] via 40.1.2.22, 00:00:00, FastEthernet1/1
[120/2] via 40.1.2.18, 00:00:00, FastEthernet2/1
R
200.1.1.0 [120/1] via 40.1.2.13, 00:00:24, FastEthernet1/0
40.0.0.0/30 is subnetted, 6 subnets
R
40.1.2.8 [120/1] via 40.1.2.22, 00:00:00, FastEthernet1/1
C
40.1.2.12 is directly connected, FastEthernet1/0
R
40.1.2.0 [120/1] via 40.1.2.18, 00:00:00, FastEthernet2/1
[120/1] via 40.1.2.13, 00:00:24, FastEthernet1/0
R
40.1.2.4 [120/1] via 40.1.2.18, 00:00:00, FastEthernet2/1
C
40.1.2.16 is directly connected, FastEthernet2/1
C
40.1.2.20 is directly connected, FastEthernet1/1
Rd#
Daniel Daz Ataucuri

La redes LAN estn


detalladas.
Se observa el balanceo de
carga hacia: 200.1.1.64
ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Gateway of last resort is not set

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALIZANDO TABLAS DE ENRUTAMIENTO


Tabla de enrutamiento del Re:
Re#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

200.1.1.0/26 is subnetted, 4 subnets


R
200.1.1.192 [120/1] via 40.1.2.21, 00:00:22, FastEthernet1/0
C
200.1.1.128 is directly connected, FastEthernet2/0
R
200.1.1.64 [120/1] via 40.1.2.10, 00:00:27, FastEthernet1/1
R
200.1.1.0 [120/2] via 40.1.2.21, 00:00:22, FastEthernet1/0
40.0.0.0/30 is subnetted, 6 subnets
C
40.1.2.8 is directly connected, FastEthernet1/1
R
40.1.2.12 [120/1] via 40.1.2.21, 00:00:22, FastEthernet1/0
R
40.1.2.0 [120/2] via 40.1.2.21, 00:00:22, FastEthernet1/0
[120/2] via 40.1.2.10, 00:00:27, FastEthernet1/1
R
40.1.2.4 [120/1] via 40.1.2.10, 00:00:27, FastEthernet1/1
R
40.1.2.16 [120/1] via 40.1.2.21, 00:00:22, FastEthernet1/0
C
40.1.2.20 is directly connected, FastEthernet1/0
Re#

Daniel Daz Ataucuri

La redes LAN estn


detalladas.

show ip protocols
Muestra el protocolo de
enrutamiento configurado
y sus parmetros.
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Gateway of last resort is not set

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

Se debe anunciar la red


200.1.1.0 donde est el
servidor, para que sea
accedido externamente.
No se debe enviar al servidor
actualizaciones. Para que??

Envo
actualizaciones?

Servidor
200.1.1.4/24
S0/0
.221

Fa0/0
.1
R1

S0/1
.42
S0/0
.41

22.2.2.220/30

R3
S0/1
.62
S0/0

.61
R1(config)# router rip
S0/1
.222 R2
R1(config-router)# version 2
R1(config-router)# network 200.1.1.0
R1(config-router)# network 22.2.2.220
R1(config-router)# network 20.3.3.40
R1(config-router)# passive-interface fastethernet 0/0
R1(config-router)# exit
R1#debug ip rip ; permite ver
R1(config)#
actualizaciones segn se genere.

Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

INTERFAZ PASIVA

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDISTRIBUCIN ESTTICA (1)


200.1.1.0/25
ip route 0.0.0.0 0.0.0.0 21.2.2.5

215.5.5.0/24
.1

PCa

R3.5

.1 Fa0/0

.9

.21

.10

.2

21.2.2.0/30

Fa0/0

.1
Fa0/1

.18

.13

R2

R7

.5
.9 R6

.14 .17
.10

ip route 0.0.0.0 0.0.0.0 21.2.2.2

R8

R5

.129 Fa0/0

ip route 200.1.1.0 255.255.255.128 21.2.2.6


ip route 200.1.1.128 255.255.255.128 21.2.2.10
ip route 215.5.5.0 255.255.255.0 21.2.2.1

ip route 0.0.0.0 0.0.0.0 21.2.2.9

.130

PCc

200.1.1.128/25
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

.2

PCb

R4
.6

Fa0/0

R1

Fa0/0

Fa0/1

.22

.2

.1

20.1.1.4/30 .6

.2

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDISTRIBUCIN ESTTICA (2)


200.1.1.0/25
R7#show ip route
215.5.5.0/24

R3.5is directly
R4FastEthernet0/1
21.2.2.4
connected,
20.1.1.4/30
.6
.1
200.1.1.0/25
is subnetted,
1 subnets.9
Fa0/0
Fa0/1
.22
C
200.1.1.0 is directly connected,
FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 21.2.2.5
R7#
C

PCa
.2

Fa0/0

.2
21.2.2.0/30

.10

.13

.18

PCb

.1 Fa0/0
.6

R7

.5
.9 R6

R2

.14 .17
C
21.2.2.0 is directly connected, FastEthernet0/1
.10
C 215.5.5.0/24 is directly connected,
FastEthernet0/0
R8#show
ip route
R8
S* 0.0.0.0/0 [1/0] via 21.2.2.2
R5
R1#
C
21.2.2.8 is directly connected, FastEthernet0/1 .129 Fa0/0
200.1.1.0/25 is subnetted, 1 subnets
C
200.1.1.128 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 21.2.2.9
.130
R8#
PCc
200.1.1.128/25
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

R1 ip route
R1#show

.21

.2
Fa0/0

.1
Fa0/1

Propiedad intelectual de Daniel Daz @ 2014

.1

.2

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDISTRIBUCIN ESTTICA (3)

Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Fa0/0

R2#show ip route
.2 PCb
R3#show
ip
route
215.5.5.0/24
R
21.2.2.4
[120/2]
via 20.1.1.22, 00:00:27,
FastEthernet1/1
R3
R4
R4#show
ip route
.5 20.1.1.4/30 .6
.1 Fa0/0
[120/2].1[120/2]
via 20.1.1.14,
00:00:11,
FastEthernet1/0
R
21.2.2.4
via 20.1.1.6,
00:00:14,
FastEthernet0/1
Fa0/0
Fa0/1
R5#show
ip route
.9
PCa
C R 21.2.2.0
is directly
connected,
FastEthernet0/0
.22
[120/1]
via via
20.1.1.2,
00:00:10,
FastEthernet0/0
R 21.2.2.0
21.2.2.4
[120/1]
20.1.1.10,
00:00:16,
FastEthernet0/1
R7
R6#show
ip
route
.2
R R 21.2.2.8
[120/2]
via
20.1.1.22,
00:00:27,
FastEthernet1/1
.6
[120/2]
via via
20.1.1.6,
00:00:14,
FastEthernet0/1
R 21.2.2.8
21.2.2.0
[120/1]
20.1.1.21,
00:00:07,
FastEthernet1/0
R C
21.2.2.4
[120/1]
via
20.1.1.18,
00:00:15,
FastEthernet0/0
21.2.2.4
is
directly
connected,
FastEthernet1/0
viasubnetted,
20.1.1.14,
00:00:11,
FastEthernet1/0
20.0.0.0/30
is
subnets
R R[120/2]
21.2.2.8
[120/1]
via6via
20.1.1.10,
00:00:16,
FastEthernet0/1
21.2.2.0
[120/1]
20.1.1.13,
00:00:26,
FastEthernet0/1
R
21.2.2.0
[120/2]
via
20.1.1.17,
00:00:02,
FastEthernet0/1
20.0.0.0/30
is
subnetted,
6
subnets
R
20.1.1.20
[120/1]
via
20.1.1.6,
00:00:14,
FastEthernet0/1
20.0.0.0/30
is[120/2]
subnetted,
620.1.1.18,
subnets00:00:12,
R
21.2.2.8
[120/1]via
via20.1.1.9,
00:00:15,
FastEthernet0/0
Fa0/0
FastEthernet0/0
.2
.21
C
20.1.1.20
is
directly
connected,
FastEthernet1/1
.10
[120/1]
via
20.1.1.2,
00:00:10,
FastEthernet0/0
.1
C
20.1.1.20
is is
directly
connected,
FastEthernet1/0
20.0.0.0/30
subnetted,
6 subnets
C
21.2.2.8
is
directly
connected,
FastEthernet1/1
.1 R R 20.1.1.16
.2 20.1.1.16
.5
[120/1]
via via
20.1.1.14,
00:00:11,
FastEthernet1/0
[120/2]
20.1.1.6,
00:00:14,
FastEthernet0/1
R R 20.1.1.16
[120/1]
via
20.1.1.10,
00:00:16,
FastEthernet0/1
20.1.1.20
[120/1]
via
20.1.1.13,
00:00:26,
FastEthernet0/1
20.0.0.0/30
is subnetted,
6 subnets
.18
21.2.2.0/30
R
20.1.1.4
[120/1]
via
20.1.1.22,
00:00:27,
FastEthernet1/1
.9 R6
.13
[120/2]
via
20.1.1.2,
00:00:10,
FastEthernet0/0
C C R
20.1.1.4
is
directly
connected,
FastEthernet0/0
20.1.1.16
is directly
connected,
FastEthernet0/0
20.1.1.20
[120/1]
via 20.1.1.9,
00:00:12, FastEthernet0/0
[120/1]
via
20.1.1.1,
00:00:07,
FastEthernet0/1
C R 20.1.1.4
is
directly
connected,
FastEthernet0/1
R1
20.1.1.0
[120/1]
via
20.1.1.21,
00:00:07,
FastEthernet1/0
R C 20.1.1.4
[120/2]
via 20.1.1.18,
00:00:15,
FastEthernet0/0
20.1.1.16
is directly
connected,
FastEthernet0/1
C C 20.1.1.0
is
directly
connected,
FastEthernet0/1
is
directly
connected,
FastEthernet0/0
R220.1.1.0
via
20.1.1.5,
00:00:10,
FastEthernet0/0
[120/2]
via
20.1.1.13,
00:00:26,
FastEthernet0/1
R is[120/1]
20.1.1.4
[120/1]
via
20.1.1.9,
00:00:12,
FastEthernet0/0
C R 20.1.1.12
directly
connected,
FastEthernet1/0
.14
.17
20.1.1.12
[120/1]
via
20.1.1.2,
00:00:10,
FastEthernet0/0
R R R
20.1.1.12
[120/1]
via
00:00:07,
FastEthernet1/0
20.1.1.0
[120/1]
via20.1.1.21,
20.1.1.13,
00:00:26,
FastEthernet0/1
20.1.1.0
[120/2]
via
20.1.1.17,
00:00:02,
FastEthernet0/1.10
R R 20.1.1.8
[120/1]
via
20.1.1.22,
00:00:00,
FastEthernet1/1
[120/1]
via
20.1.1.6,
00:00:14,
FastEthernet0/1
C 20.1.1.8
20.1.1.8
is
directly
connected,
FastEthernet0/1
C
20.1.1.12
is directly
connected,
FastEthernet0/1
[120/2]
via 20.1.1.9,
00:00:12,
FastEthernet0/0
S R3#
215.5.5.0/24
[1/0]
via
21.2.2.1
R8
R4#
R R 20.1.1.8
[120/1]
via
20.1.1.18,
00:00:15,
FastEthernet0/0
20.1.1.12
[120/1]
via 20.1.1.17,
00:00:02,
FastEthernet0/1
R5
R2#
.129 Fa0/0
R5#
C
20.1.1.8 is directly connected, FastEthernet0/0
200.1.1.0/25 is subnetted, 2 subnets
No se indica
S
200.1.1.128 [1/0] via 21.2.2.10
como llegar a
S
200.1.1.0 [1/0] via 21.2.2.6
todas las LAN
.130
PCc
R6#
200.1.1.128/25
Fa0/1

Propiedad intelectual de Daniel Daz @ 2014

200.1.1.0/25

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDISTRIBUCIN ESTTICA (4)

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Observar que no
se anuncia las LAN

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDISTRIBUCIN ESTTICA (5)


200.1.1.0/25
.2
215.5.5.0/24
.1

PCa

R3.5

.2

.1 Fa0/0

.9

.21

.10

.2

21.2.2.0/30

Fa0/0

.1
Fa0/1

.18

.13

R2

R7

.5
.9 R6

.14 .17
.10

R5(config)#router rip
R5(config-router)#redistribute static

R8

R5

.129 Fa0/0

R5(config)#router rip
R5(config-router)#redistribute static
.130

PCc

200.1.1.128/25
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

R4
.6

Fa0/0

R1

Fa0/0

Fa0/1

.22

.2

.1

20.1.1.4/30 .6

PCb

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

R2#show ip route
R
21.2.2.4 [120/2] via 20.1.1.22, 00:00:12, FastEthernet1/1
R3#show ip route
[120/2] via 20.1.1.14, 00:00:08, FastEthernet1/0
R R4#show
21.2.2.4ip[120/2]
route via 20.1.1.6, 00:00:00, FastEthernet0/1
C
21.2.2.0 is directly connected, FastEthernet0/0
R R 21.2.2.0
[120/1]
via via
20.1.1.2,
00:00:17,
FastEthernet0/0
21.2.2.4
[120/1]
20.1.1.10,
00:00:20,
FastEthernet0/1
R5#show
R
21.2.2.8
[120/2] ip
viaroute
20.1.1.22, 00:00:12, FastEthernet1/1
R R 21.2.2.8
[120/2]
via via
20.1.1.6,
00:00:00,
FastEthernet0/1
21.2.2.0
[120/1]
20.1.1.21,
00:00:00,
FastEthernet1/0
R R6#show
21.2.2.4
[120/1]
via 20.1.1.18,
00:00:07, FastEthernet0/0
ip
route
[120/2]
via 20.1.1.14,
00:00:08,
FastEthernet1/0
20.0.0.0/30
is subnetted,
subnets 00:00:20, FastEthernet0/1
R
21.2.2.8
[120/1] via6 20.1.1.10,
R isCsubnetted,
21.2.2.0
[120/1]
via 20.1.1.13,
00:00:12,
FastEthernet0/1
21.2.2.4
is directly
connected,
FastEthernet1/0
20.0.0.0/30
6 subnets
R
20.1.1.20
[120/1]
via 20.1.1.6,
00:00:00, FastEthernet0/1
20.0.0.0/30
is subnetted,
6 subnets
R isRdirectly
21.2.2.8
[120/1]
viaFastEthernet1/1
20.1.1.18,
00:00:07,
FastEthernet0/0
21.2.2.0
[120/2]
via 20.1.1.17,
00:00:23,
FastEthernet0/1
C
20.1.1.20
connected,
[120/1] via
20.1.1.2,
00:00:17,FastEthernet1/0
FastEthernet0/0
C
20.1.1.20
is directly
connected,
is
subnetted,
6 subnets
via00:00:08,
20.1.1.9,
00:00:15,
FastEthernet0/0
R
20.1.1.16 20.0.0.0/30
[120/1] via [120/2]
20.1.1.14,
FastEthernet1/0
R R 20.1.1.16
[120/2]
via via
20.1.1.6,
00:00:00,
FastEthernet0/1
20.1.1.16
[120/1]
20.1.1.10,
00:00:20,
FastEthernet0/1
R [120/1]
[120/1]
via
20.1.1.13,
00:00:12,
FastEthernet0/1
C 20.1.1.20
21.2.2.8
is directly
connected,
FastEthernet1/1
R
20.1.1.4
via 20.1.1.22,
00:00:12,
FastEthernet1/1
[120/2]isvia
20.1.1.2,
00:00:17,
FastEthernet0/0
C
20.1.1.4
directly
connected,
FastEthernet0/0
C
20.1.1.16
is directly
connected,
FastEthernet0/0
20.0.0.0/30
is
subnetted,
6 subnets
[120/1]
via
20.1.1.1,
00:00:23,
FastEthernet0/1
C R 20.1.1.4
is directly
FastEthernet0/1
20.1.1.0
[120/1]connected,
via 20.1.1.21,
00:00:00, FastEthernet1/0
R is Rdirectly
20.1.1.4
[120/2]
via
20.1.1.18,
00:00:07,
FastEthernet0/0
20.1.1.20
[120/1]
via 20.1.1.9,
00:00:15,
FastEthernet0/0
C
20.1.1.0
connected,
FastEthernet0/1
C
20.1.1.0[120/1]
is directly
FastEthernet0/0
via connected,
20.1.1.5, 00:00:14,
FastEthernet0/0
[120/2]
via
00:00:12,FastEthernet0/1
FastEthernet0/1
20.1.1.16
is 20.1.1.13,
directly
connected,
C
20.1.1.12 isCdirectly
connected,
FastEthernet1/0
R R 20.1.1.12
[120/1]
via via
20.1.1.2,
00:00:17,
FastEthernet0/0
20.1.1.12
[120/1]
20.1.1.21,
00:00:00,
FastEthernet1/0
R [120/1]
[120/1]
via00:00:14,
20.1.1.13,
00:00:12,
FastEthernet0/1
R 20.1.1.0
20.1.1.4
[120/1]
via 20.1.1.9,
00:00:15,
FastEthernet0/0
R
20.1.1.8
via 20.1.1.22,
FastEthernet1/1
R C 20.1.1.8
[120/1]
via 20.1.1.6,
00:00:00,
FastEthernet0/1
20.1.1.8
is directly
connected,
FastEthernet0/1
C is
is2directly
FastEthernet0/1
R 20.1.1.12
20.1.1.0
[120/2] connected,
via 20.1.1.17,
00:00:23, FastEthernet0/1
200.1.1.0/25
subnetted,
subnets
200.1.1.0/25
is subnetted,
2 subnets
200.1.1.0/25
is subnetted,
2 subnets
R
20.1.1.8
[120/1]
via 20.1.1.18,
00:00:07,
FastEthernet0/0
[120/2]
20.1.1.9,
00:00:15,
FastEthernet0/0
R
200.1.1.128
[120/2] via
20.1.1.22,
00:00:15,
FastEthernet1/1
R R 200.1.1.128
[120/2]
via via
20.1.1.6,
00:00:02,
FastEthernet0/1
200.1.1.128
[120/1]
20.1.1.10,
00:00:22,
FastEthernet0/1
200.1.1.0/25
is subnetted,
2 subnets
R via20.1.1.12
[120/1]
via
20.1.1.17,
00:00:23, FastEthernet0/1
[120/2]
20.1.1.14,
00:00:11,
FastEthernet1/0
R R 200.1.1.0
[120/2]
via via
20.1.1.6,
00:00:03,
FastEthernet0/1
200.1.1.0
[120/1]
20.1.1.10,
00:00:22,
FastEthernet0/1
R [120/2]
[120/1]
viaconnected,
20.1.1.18,
00:00:09,
FastEthernet0/0
C 200.1.1.128
20.1.1.8
is directly
FastEthernet0/0
R
200.1.1.0
via 20.1.1.22,
00:00:17,
FastEthernet1/1
Si se indica
R R215.5.5.0/24
[120/1]
via via
20.1.1.2,
00:00:21,
FastEthernet0/0
215.5.5.0/24
[120/1]
20.1.1.21,
00:00:02,
FastEthernet1/0
R
200.1.1.0
[120/1]
via 20.1.1.18,
00:00:09, FastEthernet0/0
200.1.1.0/25
is00:00:12,
subnetted,
2 subnets
[120/2]
via
20.1.1.14,
FastEthernet1/0
como llegar
R3#R4#
R 215.5.5.0/24
[120/1]
viavia
20.1.1.13,
00:00:15, FastEthernet0/1
a las LAN
S[1/0] 200.1.1.128
[1/0]
21.2.2.10
S 215.5.5.0/24
via 21.2.2.1
R5#S
200.1.1.0 [1/0] via 21.2.2.6
R2#
R 215.5.5.0/24 [120/2] via 20.1.1.17, 00:00:26, FastEthernet0/1
[120/2] via 20.1.1.9, 00:00:18, FastEthernet0/0
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

REDISTRIBUCIN ESTTICA (6)

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDISTRIBUCIN ESTTICA (7)

Porque no se observa el
anuncio de la LAN
215.5.5.0/24 ?
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Observar que SI
se anuncia las LAN,
debido a la
redistribucin

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

PROPAGACIN DE RUTA POR DEFECTO


PC1

.2

.1

50.5.5.0/30

.1

R2
.9

.2

50.5.5.8/30
.10
.13

PC2
.2

Propiedad intelectual de Daniel Daz @ 2014

200.2.3.0/24

.1

.5

R3

210.10.10.0/24

60.6.6.0/30
.1
.2

R5

.1

.2

R6

PC3

.6

50.5.5.4/30

.14

R4

R5#show ip route
R4#show
ip route
R3#show
ip route
50.0.0.0/30
is R1#show
subnetted,
4 subnets
R2#show
ip route
ip
route
50.0.0.0/30
is
subnetted,
4 subnets
50.0.0.0/30
is subnetted,
4 subnets
R
50.5.5.0
[120/1]
via
50.5.5.9,
00:00:01,
FastEthernet0/1
50.0.0.0/30
is
subnetted,
400:00:22,
subnets
50.0.0.0/30
is
subnetted,
4
subnets
R R50.5.5.0
[120/2]
via
50.5.5.13,
FastEthernet0/1
50.5.5.0
[120/3]
via 50.5.5.6,
00:00:09,
FastEthernet0/1
R
50.5.5.4
[120/1]
via
50.5.5.14,
00:00:24,
FastEthernet0/0
C
50.5.5.0
is
directly
connected,
FastEthernet0/0
C
50.5.5.0
is
directly
connected,
FastEthernet0/1
C C50.5.5.4
is
directly
connected,
FastEthernet0/0
is connected,
directly
connected,
FastEthernet0/1
C
50.5.5.8
is directly
FastEthernet0/1
R50.5.5.4
50.5.5.4
[120/2]
via
50.5.5.10,
00:00:06,
FastEthernet0/1
R
50.5.5.4
[120/3]
via
50.5.5.2,
00:00:11,
FastEthernet0/1
R R50.5.5.8
[120/1]
via
50.5.5.13,
00:00:22,
FastEthernet0/1
50.5.5.8
[120/2]
via
50.5.5.6,
00:00:09,
FastEthernet0/1
C
50.5.5.12
isRdirectly
connected,
FastEthernet0/0
C
50.5.5.8
is
directly
connected,
FastEthernet0/1
50.5.5.8
[120/1]
viaFastEthernet0/1
50.5.5.2,
00:00:11,
FastEthernet0/1
C R50.5.5.12
is directly
connected,
50.5.5.12
[120/1]
via
50.5.5.6,
00:00:09,
FastEthernet0/1
R 210.10.10.0/24
[120/1]
via
60.6.6.2,
00:00:08,
FastEthernet1/0
R R50.5.5.12
[120/1]
via 50.5.5.10,
00:00:06,
FastEthernet0/1
50.5.5.12
[120/2]
via 50.5.5.2,
00:00:11,
FastEthernet0/1
R 210.10.10.0/24
[120/2]
via
50.5.5.13,
00:00:22,
FastEthernet0/1
R
210.10.10.0/24
[120/3]
via
50.5.5.6,
00:00:09,
FastEthernet0/1
R 200.2.2.0/24
[120/2]
via
50.5.5.9,
00:00:01,
FastEthernet0/1
R
210.10.10.0/24
[120/2]
via
50.5.5.10,
00:00:06,
FastEthernet0/1
R
210.10.10.0/24
[120/3]
via
50.5.5.2,
00:00:11,
FastEthernet0/1
R 200.2.2.0/24
[120/3]
via
50.5.5.13,
00:00:22,
FastEthernet0/1
R 200.2.2.0/24
[120/4]
via 50.5.5.6,
00:00:09,
FastEthernet0/1
R 200.2.3.0/24
[120/2]
via
50.5.5.14,
00:00:24,
FastEthernet0/0
R
200.2.2.0/24
[120/1]
via
50.5.5.1,
00:00:14,
FastEthernet0/0
C 200.2.2.0/24
is connected,
directly
connected,
FastEthernet0/0
R 200.2.3.0/24
[120/1]
via 50.5.5.5,
00:00:17,
FastEthernet0/0
C 200.2.3.0/24
is directly
FastEthernet0/0
60.0.0.0/30
is 200.2.3.0/24
subnetted,
1
subnets
R
[120/3]
via
50.5.5.10,
00:00:06,
FastEthernet0/1
R[120/1]
200.2.3.0/24
[120/4]
via
50.5.5.2,
00:00:11,
FastEthernet0/1
R 60.0.0.0/8
via 50.5.5.13,
00:00:22,
FastEthernet0/1
R
60.0.0.0/8
[120/2]
via
50.5.5.6,
00:00:09,
FastEthernet0/1
C
60.6.6.0
is 60.0.0.0/8
directly
connected,
FastEthernet1/0
R
[120/1]
via
50.5.5.10,
00:00:06,
FastEthernet0/1
R 60.0.0.0/8 [120/2] via 50.5.5.2, 00:00:11, FastEthernet0/1
R4# R3#
R5#
R2# R1#
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

R1

200.2.2.0/24

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

PROPAGACIN DE RUTA POR DEFECTO


R1

200.2.2.0/24

PC1

.2

.1

50.5.5.0/30

.1

R2
.9

.2

50.5.5.8/30

RIP

.10
.13

PC2
.2

Propiedad intelectual de Daniel Daz @ 2014

200.2.3.0/24

.1

.5

R3

210.10.10.0/24

60.6.6.0/30
.1
.2

R5

.1

R6

.2

PC3

.6

50.5.5.4/30

.14

R4

Daniel Daz Ataucuri

ddiaz@inictel-uni.edu.pe

Redes
anunciadas

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

PROPAGACIN DE RUTA POR DEFECTO


default-information originate
Permite que el router propague la ruta esttica por defecto, en las
actualizaciones RIP.

PC1

.2

R1
.1

50.5.5.0/30
.1

R2
.9

.2

.10
.13
.2

200.2.3.0/24

.1

.5

R3

210.10.10.0/24

50.5.5.8/30
60.6.6.0/30
.1
.2

R5

.1

R6

.2

PC3

.6

50.5.5.4/30

.14

R4

PC2
R5#configure terminal
R5(config)#router rip
R5(config-router)#default-information originate
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

200.2.2.0/24

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

PROPAGACIN DE RUTA POR DEFECTO


PC1

.2

.1

50.5.5.0/30

.1

R2
.9

.2

50.5.5.8/30
.10
.13

PC2
.2

Propiedad intelectual de Daniel Daz @ 2014

200.2.3.0/24

.1

.5

R3

.6

50.5.5.4/30

.14

R4

210.10.10.0/24

60.6.6.0/30
.1
.2

R5

.1

R6

.2

PC3

Desde RI, R2, R3, R4 y R6 se podr ir a cualquier


red, debido que sus tablas tiene la red 0.0.0.0

R2#show
ip route
R1#show
R4#show
ip route
ip route
R3#show
ip route
50.0.0.0/30
is
subnetted,
4 subnets
R6#show
ipsubnets
route
50.0.0.0/30
50.0.0.0/30
is
subnetted,
is
subnetted,
4 subnets
4 subnets
50.0.0.0/30
is
subnetted,
4
C C50.5.5.0
is
directly
connected,
FastEthernet0/0
R50.5.5.0
50.5.5.0
is50.5.5.0
directly
[120/2]
connected,
via 50.5.5.13,
FastEthernet0/1
00:00:02,
FastEthernet0/1
R
[120/3]
via
50.5.5.6,
00:00:00,
FastEthernet0/1
R R50.5.5.4
[120/2]
via
50.5.5.10,
00:00:05,
FastEthernet0/1
R
50.0.0.0/8
[120/1]
via
60.6.6.1,
00:00:04, FastEthernet0/1
C50.5.5.4
50.5.5.4
[120/3]
is
directly
via
50.5.5.2,
connected,
00:00:24,
FastEthernet0/0
FastEthernet0/1
C
50.5.5.4
is
directly
connected,
FastEthernet0/1
C R50.5.5.8
is
directly
connected,
FastEthernet0/1
C 50.5.5.13,
210.10.10.0/24
is directly
connected, FastEthernet0/0
R50.5.5.8
50.5.5.8
[120/1]
[120/1]
via
50.5.5.2,
via
00:00:24,
00:00:02,
FastEthernet0/1
FastEthernet0/1
R
50.5.5.8
[120/2]
via
50.5.5.6,
00:00:00,
FastEthernet0/1
R R50.5.5.12
[120/1]
via
50.5.5.10,
00:00:05,
FastEthernet0/1
R connected,
200.2.2.0/24
[120/3]
via FastEthernet0/1
60.6.6.1, 00:00:04, FastEthernet0/1
C50.5.5.12
50.5.5.12
[120/2]
is directly
via
50.5.5.2,
00:00:24,
FastEthernet0/1
FastEthernet0/1
R
50.5.5.12
[120/1]
via
50.5.5.6,
00:00:00,
R 210.10.10.0/24
[120/2]
via
50.5.5.10,
00:00:05,
FastEthernet0/1
R[120/3]
200.2.3.0/24
[120/3]
via FastEthernet0/1
60.6.6.1,
00:00:04, FastEthernet0/1
R 210.10.10.0/24
R 210.10.10.0/24
[120/3]
[120/2]
via
50.5.5.2,
via
50.5.5.13,
00:00:24,
00:00:02,
FastEthernet0/1
R
210.10.10.0/24
via
50.5.5.6,
00:00:00,
FastEthernet0/1
R 200.2.2.0/24
[120/1]
via
50.5.5.1,
00:00:04,
FastEthernet0/0
60.0.0.0/30
is00:00:02,
subnetted,
1 subnets
C 200.2.2.0/24
R 200.2.2.0/24
is directly
[120/3]
connected,
via
50.5.5.13,
FastEthernet0/0
FastEthernet0/1
R
200.2.2.0/24
[120/4]
via
50.5.5.6,
00:00:00,
FastEthernet0/1
R 200.2.3.0/24
[120/3]
via
50.5.5.10,
00:00:05,
FastEthernet0/1
C
60.6.6.0
is
directly
connected,
FastEthernet0/1
R 200.2.3.0/24
R 200.2.3.0/24
[120/4]
[120/1]
via
50.5.5.2,
via
50.5.5.5,
00:00:24,
00:00:02,
FastEthernet0/1
FastEthernet0/0
C
200.2.3.0/24
is
directly
connected,
FastEthernet0/0
R 60.0.0.0/8
[120/1]
via
50.5.5.10,
00:00:05,
FastEthernet0/1
R*50.5.5.13,
0.0.0.0/0
[120/1]
via
60.6.6.1,
00:00:04, FastEthernet0/1
R 60.0.0.0/8
R 60.0.0.0/8
[120/2]
[120/1]
via
50.5.5.2,
via
00:00:24,
00:00:02,
FastEthernet0/1
FastEthernet0/1
R
60.0.0.0/8
[120/2]
via
50.5.5.6,
00:00:00,
FastEthernet0/1
R* R*
0.0.0.0/0
[120/1]
via
50.5.5.10,
00:00:05,
FastEthernet0/1
R6#
Observar
que
R5FastEthernet0/1
falta adicionar: no- auto-summary
R*
0.0.0.0/0
0.0.0.0/0
[120/2]
[120/1]
via
50.5.5.2,
via
50.5.5.13,
00:00:24,
00:00:02,
FastEthernet0/1
FastEthernet0/1
R*
0.0.0.0/0
[120/2]
via
50.5.5.6,
00:00:00,
R2# R1# R4#
De all que aparezca en R1, R2, R3 y R4: 60.0.0.0/8
R3#
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

R1

200.2.2.0/24

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

PROPAGACIN DE RUTA POR DEFECTO


PC1

.2

.1

50.5.5.0/30

.1

R2
.9

.2

50.5.5.8/30

RIP

.10
.13

PC2
.2

Propiedad intelectual de Daniel Daz @ 2014

200.2.3.0/24

Ruta por
defecto

Daniel Daz Ataucuri

.1

.5

R3

210.10.10.0/24

60.6.6.0/30
.1
.2

R5

.1

R6

.2

PC3

.6

50.5.5.4/30

.14

R4

Redes
anunciadas

ddiaz@inictel-uni.edu.pe

R1

200.2.2.0/24

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

PROPAGACIN DE RUTA POR DEFECTO


PC1

.2

.1

50.5.5.0/30

.1

R2

Habilitado con RIPv2


.9

.2

50.5.5.8/30
.10

PC2
.2

Propiedad intelectual de Daniel Daz @ 2014

200.2.3.0/24

.1

.5

R3

.6

50.5.5.4/30

.14

R4

R5#configure terminal
R5(config)#router rip
R5(config-router)#default-information originate

60.6.6.0/30
.1
.2

.13
R5
R6
.5 Enrutamiento
esttico
60.6.6.4/30
.6
.1
.2
R7

210.10.10.0/24
.1

.2

PC3

PC4

220.20.20.0/24

R7(config)#ip route 0.0.0.0 0.0.0.0 60.6.6.5

De R1 a R6 tienen la
R5#configure terminal
ruta por defecto
R5(config)#ip route 220.20.20.0 255.255.255.0 60.6.6.6
Todos saben llegar a
R5(config)#exit
R5
Cuando se llegue a R5, la tabla esttica indicar 220.20.20.0
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

R1

200.2.2.0/24

Protocolo RIP
LABORATORIO
1
Protocolo OSPFv2

Protocolo de
enrutamiento
TABLA
DE NAT

UNI

PC1
192.168.1.0/24

192.168.1.2 210.1.1.2
192.168.1.3 210.1.1.3
192.168.1.4
192.168.1.63

210.1.1.4
210.1.1.14

192.168.1.64
192.168.1.254

210.1.1.15

Activar servidor DHCP.


Cuando una de las PC solicite
una direccin IP dinmica,
sta se asignar en el rango:

192.168.1.64
192.168.1.254

R5

Nota: Considere las interfaces que estime conveniente


Nota: En un enlace WAN, asigne la direccin IP adecuada
a cada interfaz dentro del rango establecido

PUCP
R1

R6
R8

UNMSM

VLSM 4

RIPv2
VLSM 5

PC2
192.168.1.0/24

Daniel Daz Ataucuri

110.2.3.0/24

VLSM 3

R4
R2

PCb

192.168.1.2 220.2.2.2
192.168.1.3 220.2.2.3

R7

192.168.1.4
192.168.1.63

220.2.2.4
2202.2.14

Activar servidor DHCP.


Cuando una de las PC solicite
una direccin IP dinmica,
sta se asignar en el rango:

192.168.1.64
192.168.1.254

220.2.2.15

192.168.1.64
192.168.1.254

TABLA DE NAT

Enlace WAN
70.60.50.0/24

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

R3

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

BIBLIOGRAFIA
RFC 2453 RIP version 2
Noviembre de 1998.
http://www.ietf.org/rfc/rfc1058.txt

Routing Information Protocol, Autor CISCO


RFC 1058 Routing Information Protocol
Junio de 1988.
http://www.ietf.org/rfc/rfc1058.txt

RFC 2082 MD5 Authentication


http://www.ietf.org/rfc/rfc2082.txt

Routing Information Protocol, Autor CISCO


http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/rip.pdf
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/rip.pdf

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Protocolo de
enrutamiento

MUCHAS GRACIAS
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo RIP
Protocolo OSPFv2

Introduccin
Formato de OSPFv2
Caso de estudio

Protocolo de
Enrutamiento
OSPFv2

Configuracin
Redistribucin esttica
Redistribucin con RIP

Profesor Daniel Daz Ataucuri


Profesor Titular de Telecomunicaciones
Universidad Nacional de Ingeniera
Universidad Nacional Mayor de San Marcos

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Protocolo de
enrutamiento

http://www.danieldiaza.com
ddiaz@inictel-uni.edu.pe
ddiaz1610@gmail.com
Daniel Daz Ataucuri

Lima, Enero Diciembre de 2014

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

Propiedad intelectual de Daniel Daz @ 2014

PROTOCOLO OSPFv2

ddiaz@inictel-uni.edu.pe

RFC 2328 OSPF Version 2, April 1998

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ASPECTO BSICO DEL PROTOCOLO OSPFv2

Se encapsula en IP
con protocolo=59h.
Se define 05 tipos
de paquetes o mensajes.
Lectura obligada.

Caractersticas ms importante:
Velocidad de convergencia.
Soporte de VLSM.
Grandes redes IP: reas.
Enrutamiento jerrquico.
Daniel Daz Ataucuri

Mejor uso del ancho de


banda.
Se define costos.
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Definido por la
IETF en la RFC
2328, de Abril-98.

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ASPECTO BSICO DEL PROTOCOLO OSPFv2


FUNCIN

Hello

Es utilizado por un nodo para conocer los


nodos adyacentes que soportan OSPF.

DataBase Description (DBD)

Incluye una lista abreviada de la base de datos


de estado de enlace del router emisor.

Link State Request (LSR)

Los routers receptores solicitan informacin


adicional acerca de una entrada en la DBD
enviando un paquete LSR.

Link State Update (LSU)

Se genera como respuesta al paquete LSR y se


usa para responder las LSR y para anunciar
nueva informacin.

Link State Ack (LSA)

Cuando un router recibe un paquete LSU,


responde enviando un paquete LSA para
confirmar la recepcin de LSU.

Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

TIPO DE MESAJES OSPF

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDES DE REA NICA


SISTEMA AUTNOMO

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

AREA 0

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

REDES MULTIAREAS

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

SISTEMA AUTNOMO

El rea 0 es clave!!
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

CARACTERSTICAS DEL PROTOCOLO OSPFv2


Los routers vecinos deben conocerse entre si.

La clave de OSPF es el intercambio de estados.


Router
El estado de enlace es la descripcin
de una interfaz y de su relacin con los
routers vecinos: direccin IP, mscara
de subred, tipo de red conectada, etc.

Crea una base


de datos
topolgicas

Llamado tambin
Base de datos de
Estado de Enlace

OSPF origina que cada routers conozca de manera


completa toda la red de su rea.
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Se hace uso del paquete HELLO.


HELLO
Direccin IP 224.0.0.5
Se enva peridicamente a la
direccin multicast IP 224.0.0.5
Direcc. MAC multicast: 01-00-5E-00-00-05

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO OSPFv2

Propiedad intelectual de Daniel Daz @ 2014

Campo Tipo:
Indica el tipo de mensaje que
encapsula OSPF.
Tipo 1: Hello
Tipo 2: DataBase DescriptionDBD
Tipo 3: Link-State Request-LSR
Tipo 4: Link-State Update-LSU
Tipo 5: Link-State
Acknowledgement-LSA
Daniel Daz Ataucuri

Ver

HLEN

16
ToS

Longitud Total

Identificador
TTL

31

Indicador/Desplazam.

Protocolo
59H = 89

Suma de Chequeo

Direccin IP de Origen
Direccin
Direccin IP
IP de
de Destino
Destino
Versin

Tipo

Longitud del
paquete

ID del Router
ID del rea
Suma de Chequeo Tipo de Autenticacin

Autenticacin

Formato del tipo de


Paquete OSPF
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Indica la versin del protocolo


OSPF, Versin 2.

Protocolo OSPF

Campo Versin:

Cabecera IPv4

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO OSPFv2

Propiedad intelectual de Daniel Daz @ 2014

Campo ID del Router:


Indica el ID del router que
origin en paquete OSPF.
Normalmente cada router
escoge como ID la IP mayor
entre las IP activas y la
loopback si esta est activa.

Campo ID del rea:


Indica el rea en el que se origin
el paquete OSPF.
Daniel Daz Ataucuri

Ver

HLEN

16
ToS

Longitud Total

Identificador
TTL

31

Indicador/Desplazam.

Protocolo
59H = 89

Suma de Chequeo

Direccin IP de Origen
Direccin IP de Destino

Versin

Tipo

Longitud del
paquete

ID del Router
ID del rea
Suma de Chequeo Tipo de Autenticacin

Autenticacin

Formato del tipo de


Paquete OSPF
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Indica longitud del paquete OSPF,


incluyendo la cabecera OSPF.

Protocolo OSPF

Campo Longitud del paquete:

Cabecera IPv4

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO OSPFv2


Campo Suma de Chequeo:

Cabecera IPv4

Ver

HLEN

16
ToS

31

Longitud Total

Identificador
Indicador/Desplazam.
Verifica todo el contenido del paquete OSPF,
excluyendo el campo de autenticacin. TTL Protocolo
Suma de Chequeo
59H = 89

Campo Autenticacin:
Campo de 64 bits, contiene la
informacin de autenticacin.
Daniel Daz Ataucuri

Direccin IP de Origen
Direccin IP de Destino

Versin

Tipo

Longitud del
paquete

ID del Router
ID del rea
Suma de Chequeo Tipo de Autenticacin

Autenticacin

Formato del tipo de


Paquete OSPF
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Indica el tipo de autenticacin a usar


en el paquete. Se configura por reas.
La RFC 2328 define dos tipos de
autenticacin:
- 0 Ninguna
- 1 Password de 64 bits, texto.
- 2 Autenticacin MD5.
Protocolo OSPF

Propiedad intelectual de Daniel Daz @ 2014

Campo Tipo de Autenticacin:

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO OSPFv2


D:\Laboratorio de Redes-GNS3\OSPFv2\OSPFv2

200.1.1.0/24

R2
11.1.1.40/30

.1

R1

.5

.2

R4

.9

Costo 6

.1

.41 .42

.6

.10

.29

.37

AREA 1

Costo 1

Costo 1

AREA 1

AREA 0

OSPFv2

OSPFv2

.25

11.1.1.24/30

.38

Costo 3

11.1.1.44/30

Rb

.30

R5

.14

R6

OSPFv2
.17
.18

11.1.1.16/30

Desde 11.1.1.29 a 224.0.0.5

.1

Costo 1

.34
Costo 2

.13

200.2.2.0/24

Daniel Daz Ataucuri

Costo 4

11.1.1.32/30
.53 .54

.22

11.1.1.52/30

R8

.21

R7

Rd
200.4.4.0/24

CABECERA OSPF

Propiedad intelectual de Daniel Daz @ 2014

11.1.1.28/30
.45 .46

Costo 1

11.1.1.36/30

.26
.1

.1

.49 .50

.33

Costo 1

Costo 3

Rc

11.1.1.48/30

Versin

Longitud del paquete


Tipo
ID del Router

ID del rea
Suma de Chequeo
Tipo de Autenticacin
Autenticacin

Formato del tipo de


Paquete OSPF
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Ra

200.3.3.0/24

R3

11.1.1.4/30

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO DEL PROTOCOLO OSPFv2


D:\Laboratorio de Redes-GNS3\OSPFv2\OSPFv2

200.1.1.0/24

R2
11.1.1.40/30

.1

R1

.5

.2

R4

.9

Costo 6

.1

.41 .42

.6

.10

.29

.37

AREA 1

Costo 1

Costo 1

AREA 1

AREA 0

OSPFv2

OSPFv2

.25

11.1.1.24/30

.38

Costo 3

11.1.1.44/30

Rb

.30
Costo 2

200.2.2.0/24

.14

R6

OSPFv2
.17
.18

11.1.1.16/30

Desde 11.1.1.37 a 224.0.0.5

Desde 11.1.1.38 a 224.0.0.5

Daniel Daz Ataucuri Archivo Captura entre R4 y R8 Tramas 243 y 246

.1

Costo 1

.34

.13

R5

Costo 4

11.1.1.32/30
.53 .54

.22

11.1.1.52/30

.21

R8

R7

Rd
200.4.4.0/24

CABECERA OSPF

Propiedad intelectual de Daniel Daz @ 2014

11.1.1.28/30
.45 .46

Costo 1

11.1.1.36/30

.26
.1

.1

.49 .50

.33

Costo 1

Costo 3

Rc

11.1.1.48/30

Versin

Longitud del paquete


Tipo
ID del Router

ID del rea
Suma de Chequeo
Tipo de Autenticacin
Autenticacin

Formato del tipo de


Paquete OSPF
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Ra

200.3.3.0/24

R3

11.1.1.4/30

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO(Pag.
DEL
PAQUETE
HELLO
193 de la RFC 2328)
0

Protocolo OSPF

16

Tipo=1

Longitud del
paquete

31

Paquetes Hello son paquetes


OSPF tipo 1.

ID del Router

Son enviados peridicamente a


ID del rea
todas las interfaces (incluyendo
Suma de Chequeo Tipo de Autenticacin
los loopback) para definir/mantener
los vecinos. Elige el DR/DBR
Autenticacin
En segmentos multiacceso y punto
Mscara
a punto, el mensaje HELLO se
Prioridad
Intervalo de Hello
Opcin
envan cada 10seg (IP 224.0.0.5)
de Router
Intervalo de Dead Router
En segmentos multiacceso sin
Router Designado (DR)
broadcast-NBMA,es cada 30seg.
Router Designado de Reserva (BDR)
En segmentos multiacceso y
Lista de vecino
punto a punto, si no llega un
un mensaje HELLO en 40 seg. se considera el router vecino cado .

Daniel Daz Ataucuri

ddiaz@inictel-uni.edu.pe

Protocolo HELLO

Propiedad intelectual de Daniel Daz @ 2014

Versin

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO(Pag.
DEL
PAQUETE
HELLO
193 de la RFC 2328)
Campo Mscara.

Intervalo de Hello

Opcin

Prioridad
de Router

Intervalo de Dead Router

Es la mscara de la red asociada


con la interfaz emisora.

Campo Intervalo de Hello.

Router Designado (DR)

Define la frecuencia en seg. con


que un router enva un paquete Hello.

Router Designado de Reserva (BDR)


Lista de vecinos

Campo de Opcin:
DN

DC

NP

MC

No
usado

Campo Prioridad de Router:


Usado para la eleccin de un router DR o BDR
Si este campo est en 0, el router nunca ser seleccionado como
DR o BDR. Por defecto este campo est en 1.
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Protocolo HELLO

Mscara

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO(Pag.
DEL
PAQUETE
HELLO
193 de la RFC 2328)
Intervalo de Hello

Opcin

Prioridad
de Router

Intervalo de Dead Router


Router Designado (DR)

Router Designado de Reserva (BDR)


Lista de vecinos

Campo Intervalo Dead


Router.

Nmero en segundos antes de


declarar cado. Por default es
cuatro (04) veces del campo
Intervalo de Hello.

Campo de Router Designado (DR):

Identifica a un router dentro de un sistema autnomo.


Es la direccin IP ms alta de sus interfaces.
Es utilizado para seleccionar el router DR.

Campo de Router Designado de Respaldo (BDR):

Selecciona el router BDR (cuando no escucha LSA desde el DR)

Lista de vecinos

Enumera la ID del router OSPF de los routers vecinos.


Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Protocolo HELLO

Mscara

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

Opcin

Prioridad
de Router

Intervalo de Dead Router


Router Designado (DR)
Router Designado de Reserva (BDR)

Lista de vecinos
OSPF LLS Data Block

FF

FF

FF

FC

00

0A

12

01

00

00

00

28

40 segundos

0B

01

01

25

11.1.1.37

0B

01

01

26

11.1.1.38

0B

01

01

35

11.1.1.53

OSPF LLS Data Block

Desde 11.1.1.37 a 224.0.0.5


Daniel Daz Ataucuri Archivo Captura entre R4 y R8 Tramas 330

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Intervalo de Hello

Protocolo HELLO

Mscara

Protocolo HELLO

Propiedad intelectual de Daniel Daz @ 2014

FORMATO(Pag.
DEL
PAQUETE
HELLO
193 de la RFC 2328)

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

FORMATO(Pag.
DEL
PAQUETE
HELLO
193 de la RFC 2328)
Mscara 255.255.255.252
Intervalo de Hello 10 seg.
Prioridad de router 1
Intervalo Dead Router 40 seg.
Router DR 11.1.1.37

Opcin

Prioridad
de Router

Intervalo de Dead Router


Router Designado (DR)
Router Designado de Reserva (BDR)

Lista de vecinos
OSPF LLS Data Block

FF

FF

FF

FC

00

0A

12

01

00

00

00

28

40 segundos

0B

01

01

25

11.1.1.37

0B

01

01

26

11.1.1.38

0B

01

01

31

11.1.1.49

OSPF LLS Data Block

Desde 11.1.1.37 a 224.0.0.5


Daniel Daz Ataucuri Archivo Captura entre R4 y R8 Tramas 334

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Intervalo de Hello

Protocolo HELLO

Mscara

Protocolo HELLO

Propiedad intelectual de Daniel Daz @ 2014

Router BDR 11.1.1.38

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

CONFIGURACIN DE
PROTOCOLO
OSPFv2

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ASPECTOS DE CONFIGURACIN (1/7)


Router# configure terminal
Router(config)# router ospf process-ID
Router(config-router)# network direccin_de_red wildcard
area area_ID
Router(config-router)# exit
R1# configure terminal
Router(config)#
R1(config)# router ospf 1
R1(config-router)# network 10.2.3.4 0.0.0.3 area 1
R1(config-router)# network 20.1.71.8 0.0.0.3 area 2
R1(config-router)# network 40.1.0.4 0.0.0.3 area 0
R1(config-router)# network 40.1.0.8 0.0.0.3 area 0
R1(config)#

rea 0

rea 1

Daniel Daz Ataucuri

R1

rea 2

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Configuracin OSPF:

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ASPECTOS DE CONFIGURACIN (2/7)


Al iniciarse el proceso OSPF en un router, el IOS utiliza
la direccin IP activa local ms alta como ID del router.
Si no existe una interfaz activa, el proceso OSPF no se
iniciar.
Para asegurar la estabilidad del proceso OSPF, es necesario
que el router tenga una interfaz activa en todo momento.
La interfaz loopback es importante para este objetivo.

En un router con ms de una interfaz loopback,


la direccin ms alta ser el ID-Router.

Seleccin del Router Designado (DR):


La interfaz con mayor prioridad permitira el router sea DR.
Ante iguales prioridades se selecciona el de mayor ID-Router.
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Definicin de Identificador de Router (ID-Router):

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ASPECTOS DE CONFIGURACIN (3/7)


Configuracin de prioridad en una interfaz:
Router(config)# interface serial 0/0/0
Router(config-if)# ip priority nmero_de_prioridad

Valor 0 de prioridad imposibilita al router que sea


elegido DR.
En resumen sobre seleccin de DR y BDR:
Mayor prioridad Router DR.
Segundo valor de prioridad Router BDR.
Routers con igual prioridad Ser DR el mayor ID-Router
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Un valor de prioridad puede variar de 0 a 255.

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANLISIS DE LA RED MULTIAREA


R5

PCb

Daniel Daz Ataucuri

.5

R2

.22

.2

R4

PCc
.65

.1
.9

220.2.2.64/26

.6

R7

220.2.2.0/26

.10
.1

.5

R9

PCd

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

.129

20.1.1.12/30

.10
.13

R8

Costo 3

.6

210.1.1.128/26 .10

.14

R6

.6

.21

.18

210.1.1.64/26

AREA 0

Costo 2

.9

20.1.1.16/30

.2

.1

.1
.9

.17

.65

R1

AREA 2

.5

Costo 1

R3

PCa
Propiedad intelectual de Daniel Daz @ 2014

.2

20.1.1.20/30

AREA 1

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

R2>enable
R2#configute terminal
R2(config)#router ospf 1
R2(config-router)#network 30.3.3.4 0.0.0.3 area 1
R2(config-router)#network 30.3.3.8 0.0.0.3 area 1
R2(config-router)#network 210.1.1.128 0.0.0.63 area 1
R2(config-router)#exit

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

CONFIGURACIN DE ROUTER CON OSPF

R1>enable
R1#configute terminal
R1(config)#router ospf 1
R1(config-router)#network 30.3.3.0 0.0.0.3 area 1
R1(config-router)#network 30.3.3.8 0.0.0.3 area 1
R1(config-router)#network 210.1.1.64 0.0.0.63 area 1
R1(config-router)#exit
Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

R7>enable
R7#configute terminal
R7(config)#router ospf 1
R7(config-router)#network 20.1.1.8 0.0.0.3 area 0
R7(config-router)#network 20.1.1.12 0.0.0.3 area 0
R4>enable
R7(config-router)#network 20.1.1.20 0.0.0.3 area 0
R4#configute terminal
R7(config-router)#network 40.4.4.4 0.0.0.3 area 2
R4(config)#router ospf 1
R4(config-router)#network 20.1.1.12 0.0.0.3 area 0 R7(config-router)#exit
R4(config-router)#network 20.1.1.16 0.0.0.3 area 0
Los dems router se configuran
R4(config-router)#network 30.3.3.4 0.0.0.3 area 1
de manera similar.
R4(config-router)#exit
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

CONFIGURACIN DE ROUTER CON OSPF

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

COSTOS OSPF POR DEFAULT

Por default, OSPF asigna costo


asociado al ancho de banda:
costo= 108/(Ancho de banda)

R1>enable
R1#configute terminal
R1(config)#interface fastethernet 2/0
R1(config-if)#bandwidth 100 000
Expresado en 1000

Se puede usar el comando bandwidth


para cambiar el denominador de la frmula
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

fa2/0

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

CONFIGURACIN DE COSTOS OSPF

R1>enable
Los dems router se configuran
R1#configute terminal
de manera similar.
R1(config)#interface fastethernet 1/1
Para observar el costo de una interfaz:
R1(config-if)#ip ospf cost 5
R1(config-router)#exit
show ip ospf interface fastethernet 1/1
R1(config)#interface fastethernet 2/0 R1#show ip ospf interface fastethernet 1/1
R1(config-if)#ip ospf cost 1
FastEthernet1/1 is up, line protocol is up
R1(config-router)#exit
Internet Address 30.3.3.1/30, Area 1
Process ID 1, Router ID 210.1.1.65, Network Type BROADCAST, Cost: 5
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 210.1.1.65, Interface address 30.3.3.1
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

fa2/0

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

R3#debug ip ospf events


Se desactiva:
OSPF events debugging is on
R#no debug ip ospf events
R3#
*Jan 14 10:45:30.079: OSPF: Rcv hello from 40.4.4.6 area 0 from FastEthernet2/1 20.1.1.10
*Jan 14 10:45:30.083: OSPF: End of hello processing
R3#
*Jan 14 10:45:31.567: OSPF: Send hello to 224.0.0.5 area 1 on FastEthernet1/0 from 30.3.3.2
*Jan 14 10:45:31.571: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet2/0 from 20.1.1.1
*Jan 14 10:45:31.575: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet1/1 from 20.1.1.17
*Jan 14 10:45:31.579: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet2/1 from 20.1.1.9
*Jan 14 10:45:31.779: OSPF: Rcv hello from 210.1.1.65 area 1 from FastEthernet1/0 30.3.3.1
*Jan 14 10:45:31.783: OSPF: End of hello processing
R3#
*Jan 14 10:45:35.991: OSPF: Rcv hello from 20.1.1.5 area 0 from FastEthernet2/0 20.1.1.2
*Jan 14 10:45:35.995: OSPF: End of hello processing
R3#
*Jan 14 10:45:38.487: OSPF: Rcv hello from 30.3.3.6 area 0 from FastEthernet1/1 20.1.1.18
*Jan 14 10:45:38.491: OSPF: End of hello processing
R3#
*Jan 14 10:45:40.083: OSPF: Rcv hello from 40.4.4.6 area 0 from FastEthernet2/1 20.1.1.10
*Jan 14 10:45:40.087: OSPF: End of hello processing
R3#
*Jan 14 10:45:41.571: OSPF: Send hello to 224.0.0.5 area 1 on FastEthernet1/0 from 30.3.3.2
*Jan 14 10:45:41.575: OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet2/0 from 20.1.1.1
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

COMANDO debug ip ospf events

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

ANALISIS DE PATH PCb a PCc

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

ANALISIS DE PATH PCc a PCb

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

TABLA DE ENRUTAMIENTO DE R2
R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Costos totales

Costo total
desde R2 hasta
la red
220.2.2.64
es 14.

Daniel Daz Ataucuri

220.2.2.0/26 is subnetted, 2 subnets


O IA 220.2.2.64 [110/14] via 30.3.3.9, 00:34:37, FastEthernet1/0
O IA 220.2.2.0 [110/13] via 30.3.3.9, 00:34:37, FastEthernet1/0
20.0.0.0/30 is subnetted, 6 subnets
O IA 20.1.1.20 [110/12] via 30.3.3.9, 00:34:37, FastEthernet1/0
O IA 20.1.1.16 [110/8] via 30.3.3.9, 00:34:32, FastEthernet1/0
O IA 20.1.1.4 [110/16] via 30.3.3.9, 00:34:46, FastEthernet1/0
O IA 20.1.1.0 [110/12] via 30.3.3.9, 00:34:39, FastEthernet1/0
O IA 20.1.1.12 [110/11] via 30.3.3.9, 00:34:37, FastEthernet1/0
O IA 20.1.1.8 [110/13] via 30.3.3.9, 00:34:32, FastEthernet1/0
40.0.0.0/30 is subnetted, 3 subnets
O IA 40.4.4.8 [110/13] via 30.3.3.9, 00:34:37, FastEthernet1/0
O IA 40.4.4.0 [110/13] via 30.3.3.9, 00:34:37, FastEthernet1/0
O IA 40.4.4.4 [110/12] via 30.3.3.9, 00:34:41, FastEthernet1/0
210.1.1.0/26 is subnetted, 2 subnets
C
210.1.1.128 is directly connected, FastEthernet2/0
O
210.1.1.64 [110/2] via 30.3.3.9, 00:34:50, FastEthernet1/0
30.0.0.0/30 is subnetted, 3 subnets
C
30.3.3.8 is directly connected, FastEthernet1/0
C
30.3.3.4 is directly connected, FastEthernet1/1
O
30.3.3.0 [110/6] via 30.3.3.9, 00:34:50, FastEthernet1/0
R2#

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Gateway of last resort is not set

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

NUEVO ESCENARIO DE ANLISIS


rea 1

205.2.83.128/25

Lo_1

Lo_0

R6
S0/0/0
Lo_2

Propiedad intelectual de Daniel Daz @ 2014

Lo_10: 10.41.52.3/24
Lo_11: 10.41.68.19/24
Lo_12: 51.5.6.6/24

Fa0/0
Lo_6

R2
Lo_10

R4

Lo_13: 204.6.21.36/24
Lo_14: 204.9.80.94/24
Fa0/1

R1

rea 0

Lo_12

Lo_3

S0/0/1

Lo_4

rea 3
Lo_8

Lo_5

Fa0/1

Fa0/0
10.52.177.56/30

Fa0/0

Fa0/1

200.4.5.0/24
Daniel Daz Ataucuri

R5
S0/0/1

Lo_9

Lo_7
Lo_11

Lo_13

S0/0/0

rea 2

S0/0/0
Fa0/0

R3

Lo_4:
Lo_5:
Lo_6:
Lo_7:
Lo_8:
Lo_9:

210.7.2.31/24
210.8.8.19/24
55.0.4.3/17
55.0.190.90//17
140.1.160.3/21
140.1.170.7/21

Fa0/0

Lo_14

210.7.9.0/24
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

10.2.2.36/30

Lo_2: 190.1.7.73/29
Lo_3: 190.1.9.130/25

Fa0/0

S0/0/1

Lo_0: 131.4.5.33/28
Lo_1: 131.4.6.163/27

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ESTABLECIENDO ENLACE VIRTUAL


rea 1

205.2.83.128/25

Lo_1

Lo_0

R6
S0/0/0
Lo_2

Propiedad intelectual de Daniel Daz @ 2014

Lo_10: 10.41.52.3/24
Lo_11: 10.41.68.19/24
Lo_12: 51.5.6.6/24

Fa0/0
Lo_6

R2
Lo_10

R4

Lo_13: 204.6.21.36/24
Lo_14: 204.9.80.94/24
Fa0/1

R1

rea 0

Lo_12

Lo_3

S0/0/1

Lo_4

rea 3
Lo_8

Lo_5

Fa0/1

Fa0/0
10.52.177.56/30

Fa0/0

virtual-link

Fa0/1

200.4.5.0/24
Daniel Daz Ataucuri

R5
S0/0/1

Lo_9

Lo_7
Lo_11

Lo_13

S0/0/0

rea 2

S0/0/0
Fa0/0

R3

Lo_4:
Lo_5:
Lo_6:
Lo_7:
Lo_8:
Lo_9:

210.7.2.31/24
210.8.8.19/24
55.0.4.3/17
55.0.190.90//17
140.1.160.3/21
140.1.170.7/21

Fa0/0

Lo_14

210.7.9.0/24
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

10.2.2.36/30

Lo_2: 190.1.7.73/29
Lo_3: 190.1.9.130/25

Fa0/0

S0/0/1

Lo_0: 131.4.5.33/28
Lo_1: 131.4.6.163/27

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

OBSERVANDO LA TABLA DE RUTEO EN R5

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Observar que un loopback siempre se anuncia


con una mscara 255.255.255.255

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

CONFIGURANDO VIRTUAL-LINK
R1
Lo_6

R2
Lo_12

Lo_10

R4

S0/0/1

Lo_11

Fa0/0
10.52.177.56/30

Fa0/0

virtual-link

Fa0/1

R3

Lo_13

S0/0/0

R5
S0/0/1

Lo_9
Lo_7: 55.0.190.90//17

200.4.5.0/24
R2>enable
R2#configure terminal.
R2(config)#router ospf 2
R2(config-router)#area 2 virtual-link 140.1.170.7
R2(config-router)#exit
R2(config)#
Daniel Daz Ataucuri

Lo_8

Fa0/1

Lo_7

Fa0/0

Lo_5

rea 2

S0/0/0

Propiedad intelectual de Daniel Daz @ 2014

Lo_4

rea 3

Lo_9: 140.1.170.7/21

Fa0/0

Lo_14

210.7.9.0/24
ddiaz@inictel-uni.edu.pe

rea 0

R3>enable
R3#configure terminal.
R3(config)#router ospf 3
R3(config-router)#area 2 virtual-link 55.0.190.90
R3(config-router)#exit
R3(config)#
http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

OBSERVANDO LA TABLA DE RUTEO EN R5

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

OBSERVANDO LA TABLA DE RUTEO EN R6

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

CONFIGURANDO VIRTUAL-LINK
rea 1

205.2.83.128/25

Lo_1
Fa0/0

Lo_0

R6
S0/0/0
Lo_2

R1

rea 0

Lo_6

R2
Lo_12

R4

S0/0/1

Lo_7
Lo_11

Lo_4

Lo_5

Fa0/1
10.52.177.56/30
Fa0/0

R1>enable
R1#configure terminal
R1(config)#router ospf 1
Lo_8
R1(config-router)#area
2 virtual-link 55.0.190.90
R1(config-router)#exit
Fa0/0
R1(config)#
Fa0/1

rea 2

S0/0/0
Fa0/0

Fa0/1

R2>enable
R2#configure terminal
R2(config)#router ospf 2
Lo_5: 210.8.8.19/24
R2(config-router)#area 2 virtual-link 210.8.8.19
R2(config-router)#exit
Lo_7: 55.0.190.90//17 R2(config)#

200.4.5.0/24
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Fa0/0

Lo_10

Lo_3

S0/0/1

10.2.2.36/30

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

OBSERVANDO LA TABLA DE RUTEO EN R6

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANALIZANDO LOS VIRTUAL-LINK

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

R2#show ip ospf virtual-link

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

CONFIGURACIN DE
LOS PROTOCOLOS
RIPv2/OSPFv2

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANLISIS DE UNA RED OSPF/RIP


R5

PCb

.5

R4

.65

.9

220.2.2.64/26

.21

.22

PCc

.1

.6

R7

220.2.2.0/26

.10
.1

.5

PCd

R9

R2

RIPv2

RIPv2

RIPv2
OSPFv2

Revisin de redistribucin RIP y OSPF en:


http://docwiki.cisco.com/wiki/Internetwork_Design_Guide_--_RIP_and_OSPF_Redistribution#RIP_and_OSPF_Redistribution
Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

.129

20.1.1.12/30

.2

Costo 3

.6

210.1.1.128/26 .10

.14

.10
.13

AREA 2

R8
20.1.1.20/30

210.1.1.64/26

AREA 0

R6

.6
Costo 1

.9

.5

Costo 2

.2

.1

.1
.9

.18

Propiedad intelectual de Daniel Daz @ 2014

.65

R1

20.1.1.16/30

PCa

.17

RIPv2

.2

AREA 1
R3

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANLISIS DE UNA RED OSPF/RIP


router rip
version 2
redistributeR5
ospf 1 match internal external 1 external 2
network 210.1.1.64
no auto-summary
.5
.2

.5

PCbospf 1 R2
router
redistribute rip subnets
network 30.3.3.4 0.0.0.3 area 1
RIPv2
network 30.3.3.8 0.0.0.3 area 1
Daniel Daz Ataucuri

R4

.22

.2

PCc
.65

.1
.9

.6

R7

RIPv2

220.2.2.64/26

220.2.2.0/26

.10
.5

.1

PCd
router rip
R9
version 2
redistribute ospf 1 match internal external 1 external 2RIPv2
network
210.1.1.128
OSPFv2
no auto-summary
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

.129

20.1.1.12/30

.10
.13

R8

Costo 3

.6

210.1.1.128/26 .10

.14

.6

AREA 2

.21

210.1.1.64/26

R6
20.1.1.20/30

.9

AREA 0

Costo 2

.2

.1

.1
.9

.18

Propiedad intelectual de Daniel Daz @ 2014

.65

R1

20.1.1.16/30

PCa

AREA 1
R3
.17

RIPv2

Costo 1

router ospf 1
redistribute rip subnets
network 30.3.3.0 0.0.0.3 area 1
network 30.3.3.8 0.0.0.3 area 1

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ANLISIS DE UNA RED OSPF/RIP


172.16. 0.0/16

RIPv2
Ra
.198

.0.2 BW 100Mbps
.0.1
S1 S0

.201

AREA 0
BW 1544kbps

S0 .197
S1
.206
.65

S1
S0
.205

.202

10.0.37.204/30
.129
router ospf 1
router rip
BW 100Mbps
redistribute
rip subnets
version 2
BW
100Mbps
.66 0.0.0.3 area 0
.130
network 10.0.37.196
redistribute ospf 1 match internal
external 1 external 2
network 10.0.37.200 0.0.0.3 area 0
network 172.16.0.0
no auto-summary 200.37.51.0/24
200.37.42.0/24

RIPv2

Daniel Daz Ataucuri

RIPv2

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

OSPFv2

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

TABLA DE ENRUTAMIENTO

Daniel Daz Ataucuri

http://www.danieldiaza.com

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2
LAN UNMSM

LABORATORIO 2

LAN UNI

212.2.2.0/26

....

192.168.1.0/24

....

R5

.10
20.1.1.12/30

.14

.10

30.3.3.16/30

Rb

.17

.6

.22

.1
.9

R7

.6

.5

.10

40.4.4.16/30
.18
.17

.5

.18

R2

.129

.14

.13

Costo 3

R4

.2

Rc

.13

.21

NAT por
puerto:
211.1.1.2

.18

Propiedad intelectual de Daniel Daz @ 2014

.9

AREA 0

.1

R8
20.1.1.20/30

.2

.1

AREA 2

.6
Costo 1

.14

.1
.9

R6

.5

Costo 2

Ra

R1

20.1.1.16/30

.13

R3
.17

.1

.2

Rd
.193

R9
Sistema Autnomo

....
212.2.2.128/26

LAN UNFV
Daniel Daz Ataucuri

Todos los usuarios


de la red activan
DHCP

Analizar la RFC 2328


Analizar cada mensaje OSPFv2
Exponer individualmente

....
212.2.2.192/26

LAN INICTEL-UNI
http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

AREA 1

Protocolo de
enrutamiento

Protocolo RIP
Protocolo OSPFv2

BIBLIOGRAFIA
RFC 1058 Routing Information Protocol
Junio de 1988.
http://www.ietf.org/rfc/rfc1058.txt

RFC 1723 RIP version 2, Noviembre de 1994


RFC 2082 MD5 Authentication
http://www.ietf.org/rfc/rfc2082.txt

Routing Information Protocol, Autor CISCO


http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/rip.pdf

Daniel Daz Ataucuri

http://www.danieldiaza.com

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

http://www.ietf.org/rfc/rfc1723.txt

Protocolo RIP
Protocolo OSPFv2

ddiaz@inictel-uni.edu.pe

Propiedad intelectual de Daniel Daz @ 2014

Protocolo de
enrutamiento

MUCHAS GRACIAS
Daniel Daz Ataucuri

http://www.danieldiaza.com

Potrebbero piacerti anche