martes, 10 de mayo de 2011

Enrutamiento Dinámico RIP v2

Para configurar enrutamiento dinámico lo primero que tenemos que saber q redes estan configuradas en las interfaces de los routers por tanto seguimos el siguiente procedimiento:


MADRID#sh ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/1
     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.0/27 is directly connected, FastEthernet0/0
C       192.168.1.64/30 is directly connected, Serial1/0
MADRID#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
MADRID(config)#router rip
MADRID(config-router)#version 2
MADRID(config-router)#net 10.1.1.0
MADRID(config-router)#net 192.168.1.0
MADRID(config-router)#net 192.168.1.64
MADRID(config-router)#^Z
MADRID#
%SYS-5-CONFIG_I: Configured from console by console

MADRID#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
MADRID#


Para verificar si el protocolo de enrutamiento funciona:

MADRID#sh ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 22 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: rip
Default version control: send version 2, receive 2
  Interface             Send  Recv  Triggered RIP  Key-chain
  FastEthernet0/0       2     2    
  FastEthernet0/1       2     2    
  Serial1/0             2     2    
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
 10.0.0.0
 192.168.1.0
Passive Interface(s):
Routing Information Sources:
 Gateway         Distance      Last Update
 192.168.1.66         120      00:00:09
Distance: (default is 120)


Para saber que redes a aprendido el router por RIP:

MADRID#sh ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, FastEthernet0/1
     192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.1.0/27 is directly connected, FastEthernet0/0
R       192.168.1.32/27 [120/1] via 192.168.1.66, 00:00:19, Serial1/0
C       192.168.1.64/30 is directly connected, Serial1/0


Observamos q la red marcada con R 192.168.1.32/27 el router la aprendido por RIP pq la distancia administrativa es 120, la métrica es 1, se conecta a través de 192.168.1.66 y se actualizara en 19 segundos.

QUITO#sh ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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
     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.32/27 is directly connected, FastEthernet0/0
C       192.168.1.64/30 is directly connected, Serial1/0
QUITO#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
QUITO(config)#router rip
QUITO(config-router)#version 2
QUITO(config-router)#net 192.168.1.32
QUITO(config-router)#net 192.168.1.64
QUITO(config-router)#^Z
QUITO#
%SYS-5-CONFIG_I: Configured from console by console

QUITO#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
QUITO#


CONCLUSION:
Con la configuración de enrutamiento dinámico se completa la configuración de la red ahora hay comunicación de todos los Host de la red.

No hay comentarios:

Publicar un comentario

"Tu opinión es importante, gracias por comentar"