Sei sulla pagina 1di 16

Configurar Protocolo Rip versión 1

1. En packet tracer, montar el siguiente esquema de red.

1. Configurar RIPv1 y mostrar las tablas de enrutamiento de los routers


con show ip router. Hacer esto en todos los routers.

Router5: Router#show 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

C 192.168.1.0/24 is directly connected, FastEthernet0/0


C 192.168.2.0/24 is directly connected, Serial2/0
R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.4.0/24 [120/1] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.5.0/24 [120/2] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.6.0/24 [120/2] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.7.0/24 [120/3] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.8.0/24 [120/3] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.9.0/24 [120/4] via 192.168.2.2, 00:00:02, Serial2/0

Router1: Router#show 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

R 192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:15, Serial2/0


C 192.168.2.0/24 is directly connected, Serial2/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, Serial3/0
R 192.168.5.0/24 [120/1] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.6.0/24 [120/1] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.7.0/24 [120/2] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.8.0/24 [120/2] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.9.0/24 [120/3] via 192.168.4.2, 00:00:11, Serial3/0
Router2: Router#show 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

R 192.168.1.0/24 [120/2] via 192.168.4.1, 00:00:13, Serial2/0


R 192.168.2.0/24 [120/1] via 192.168.4.1, 00:00:13, Serial2/0
R 192.168.3.0/24 [120/1] via 192.168.4.1, 00:00:13, Serial2/0
C 192.168.4.0/24 is directly connected, Serial2/0
C 192.168.5.0/24 is directly connected, FastEthernet0/0
C 192.168.6.0/24 is directly connected, Serial3/0
R 192.168.7.0/24 [120/1] via 192.168.6.2, 00:00:12, Serial3/0
R 192.168.8.0/24 [120/1] via 192.168.6.2, 00:00:12, Serial3/0
R 192.168.9.0/24 [120/2] via 192.168.6.2, 00:00:12, Serial3/0
Router3: Router#show 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

R 192.168.1.0/24 [120/3] via 192.168.6.1, 00:00:09, Serial2/0


R 192.168.2.0/24 [120/2] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.3.0/24 [120/2] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.4.0/24 [120/1] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.5.0/24 [120/1] via 192.168.6.1, 00:00:09, Serial2/0
C 192.168.6.0/24 is directly connected, Serial2/0
C 192.168.7.0/24 is directly connected, FastEthernet0/0
C 192.168.8.0/24 is directly connected, Serial3/0
R 192.168.9.0/24 [120/1] via 192.168.8.2, 00:00:17, Serial3/0

Router4: Router#show 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

R 192.168.1.0/24 [120/4] via 192.168.8.1, 00:00:05, Serial2/0


R 192.168.2.0/24 [120/3] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.3.0/24 [120/3] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.4.0/24 [120/2] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.5.0/24 [120/2] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.6.0/24 [120/1] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.7.0/24 [120/1] via 192.168.8.1, 00:00:05, Serial2/0
C 192.168.8.0/24 is directly connected, Serial2/0
C 192.168.9.0/24 is directly connected, FastEthernet0/0

2. En Las tablas de enrutamiento del ejercicio anterior, identificar la distancia


administrativa y la métrica de saltos. Identificarlo en la tabla rutas de uno
de los routers.

Router5:
C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial2/0
R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.4.0/24 [120/1] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.5.0/24 [120/2] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.6.0/24 [120/2] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.7.0/24 [120/3] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.8.0/24 [120/3] via 192.168.2.2, 00:00:02, Serial2/0
R 192.168.9.0/24 [120/4] via 192.168.2.2, 00:00:02, Serial2/0

Router1:
R 192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:15, Serial2/0
C 192.168.2.0/24 is directly connected, Serial2/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
C 192.168.4.0/24 is directly connected, Serial3/0
R 192.168.5.0/24 [120/1] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.6.0/24 [120/1] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.7.0/24 [120/2] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.8.0/24 [120/2] via 192.168.4.2, 00:00:11, Serial3/0
R 192.168.9.0/24 [120/3] via 192.168.4.2, 00:00:11, Serial3/0

Router2:
R 192.168.1.0/24 [120/2] via 192.168.4.1, 00:00:13, Serial2/0
R 192.168.2.0/24 [120/1] via 192.168.4.1, 00:00:13, Serial2/0
R 192.168.3.0/24 [120/1] via 192.168.4.1, 00:00:13, Serial2/0
C 192.168.4.0/24 is directly connected, Serial2/0
C 192.168.5.0/24 is directly connected, FastEthernet0/0
C 192.168.6.0/24 is directly connected, Serial3/0
R 192.168.7.0/24 [120/1] via 192.168.6.2, 00:00:12, Serial3/0
R 192.168.8.0/24 [120/1] via 192.168.6.2, 00:00:12, Serial3/0
R 192.168.9.0/24 [120/2] via 192.168.6.2, 00:00:12, Serial3/0

Router3:
R 192.168.1.0/24 [120/3] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.2.0/24 [120/2] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.3.0/24 [120/2] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.4.0/24 [120/1] via 192.168.6.1, 00:00:09, Serial2/0
R 192.168.5.0/24 [120/1] via 192.168.6.1, 00:00:09, Serial2/0
C 192.168.6.0/24 is directly connected, Serial2/0
C 192.168.7.0/24 is directly connected, FastEthernet0/0
C 192.168.8.0/24 is directly connected, Serial3/0
R 192.168.9.0/24 [120/1] via 192.168.8.2, 00:00:17, Serial3/0

Router4:
R 192.168.1.0/24 [120/4] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.2.0/24 [120/3] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.3.0/24 [120/3] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.4.0/24 [120/2] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.5.0/24 [120/2] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.6.0/24 [120/1] via 192.168.8.1, 00:00:05, Serial2/0
R 192.168.7.0/24 [120/1] via 192.168.8.1, 00:00:05, Serial2/0
C 192.168.8.0/24 is directly connected, Serial2/0
C 192.168.9.0/24 is directly connected, FastEthernet0/0

3. Realizar un debug Ip rip en el router 2 y comprobar que rutas envía el


router al router 3, comprobar que rutas envía el router 2 al router 1. ¿Por
qué no envía las mismas rutas?

Router#debug ip rip
RIP protocol debugging is on
Router#RIP: received v1 update from 192.168.4.1 on Serial2/0
192.168.1.0 in 2 hops
192.168.2.0 in 1 hops
192.168.3.0 in 1 hops
RIP: received v1 update from 192.168.6.2 on Serial3/0
192.168.7.0 in 1 hops
192.168.8.0 in 1 hops
192.168.9.0 in 2 hops
RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.168.4.2)
RIP: build update entries
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via Serial3/0 (192.168.6.1)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
Router#undebug all
All possible debugging has been turned off
Porque, a cada puerto de entrada del router 2 van las redes por las que se conectan a él
(la configuración de los saltos) y son distintas redes. La única igual es la red común por
a la que han de llegar la 192.168.5.0
a. Comprobar que rutas recibe el router 2 del router 1 y del router 3.

Router#debug ip rip
RIP protocol debugging is on
Router#RIP: received v1 update from 192.168.4.1 on Serial2/0
192.168.1.0 in 2 hops
192.168.2.0 in 1 hops
192.168.3.0 in 1 hops
RIP: received v1 update from 192.168.6.2 on Serial3/0
192.168.7.0 in 1 hops
192.168.8.0 in 1 hops
192.168.9.0 in 2 hops
RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.168.4.2)
RIP: build update entries
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via Serial3/0 (192.168.6.1)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
Router#undebug all
All possible debugging has been turned off
b. De acuerdo con el resultado de los dos apartados anteriores. ¿Se está
usando el horizonte dividido para evitar bucles? ¿por qué? Después
de realizar la actividad puede quitar el debug ip rip.

Si porque no se perciben bucles o loops de enrutamiento infinitos en la Red. RIP


fija un límite en el número de saltos permitido en una ruta desde su origen hasta
su destino. El número máximo de saltos permitido en una ruta es de 15. Cuando
un router recibe una actualización de enrutamiento que contiene una entrada
nueva o cambiada, el valor de la métrica aumenta en 1, para incluir el salto
correspondiente a sí mismo. Si este incremento hace que la métrica supere la cifra
de 15, se considera que es infinita y la red de destino se considera fuera de alcance
y los paquetes son desechados. Esto hace que RIP sea un protocolo que solamente
es adecuado para redes pequeñas. En una red grande, el administrador
debe dividirla en secciones o utilizar un protocolo alternativo.

Porque la regla de horizonte dividido establece que un router no debería publicar


una red a través de la interfaz por la cual provino la actualización.
La regla de horizonte dividido se basa en que no se debe enviar información
acerca de una ruta a la dirección desde donde se originó. Para evitar bucles de
encaminamiento suele ser útil aplicar esta regla, aunque puede resultar necesario
inhabilitar el mecanismo de horizonte dividido en algunas topologías de red.

4. Quitar el horizonte dividido en cada una de las interfaces de los routers.


Para ello hay que ir a cada interfaz y poner no ip split-horizon.

Router 5:
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.2.1 255.255.255.0
no ip split-horizon
clock rate 2000000
Router 1:
interface FastEthernet0/0
ip address 192.168.3.2 255.255.255.0
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.2.2 255.255.255.0
no ip split-horizon
!
interface Serial3/0
ip address 192.168.4.1 255.255.255.0
no ip split-horizon
clock rate 2000000
!

Router 2:
interface FastEthernet0/0
ip address 192.168.5.2 255.255.255.0
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.4.2 255.255.255.0
no ip split-horizon
!
interface Serial3/0
ip address 192.168.6.1 255.255.255.0
no ip split-horizon
clock rate 2000000
!
Router 3:
interface FastEthernet0/0
ip address 192.168.7.2 255.255.255.0
no ip split-horizon
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.6.2 255.255.255.0
no ip split-horizon
!
interface Serial3/0
ip address 192.168.8.1 255.255.255.0
no ip split-horizon
clock rate 2000000
!

Router 4:
interface Serial2/0
ip address 192.168.8.2 255.255.255.0
no ip split-horizon
!
interface Serial3/0
no ip address
no ip split-horizon
clock rate 2000000
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
router rip
network 192.168.8.0
network 192.168.9.0
!
5. Realizar un debug Ip rip en el router 2 y comprobar que rutas envía el
router al router 3, comprobar que rutas envía el router 2 al router 1. ¿Por
qué no envía las mismas rutas?

Router#debug ip rip
RIP protocol debugging is on
Router#RIP: received v1 update from 192.168.4.1 on Serial2/0
192.168.1.0 in 2 hops
192.168.2.0 in 1 hops
192.168.3.0 in 1 hops
192.168.4.0 in 1 hops
192.168.5.0 in 2 hops
192.168.6.0 in 2 hops
192.168.7.0 in 3 hops
192.168.8.0 in 3 hops
192.168.9.0 in 4 hops
RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.168.4.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via Serial3/0 (192.168.6.1)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: received v1 update from 192.168.6.2 on Serial3/0
192.168.1.0 in 4 hops
192.168.2.0 in 3 hops
192.168.3.0 in 3 hops
192.168.4.0 in 2 hops
192.168.5.0 in 2 hops
192.168.6.0 in 1 hops
192.168.7.0 in 1 hops
192.168.8.0 in 1 hops
192.168.9.0 in 2 hops
Router#undebug all
All possible debugging has been turned off
Sique envía a las mismas rutas como hemos comprobado

a. Comprobar que rutas recibe el router 2 del router 1 y del router 3.

Router#debug ip rip
RIP protocol debugging is on
Router#RIP: received v1 update from 192.168.4.1 on Serial2/0
192.168.1.0 in 2 hops
192.168.2.0 in 1 hops
192.168.3.0 in 1 hops
192.168.4.0 in 1 hops
192.168.5.0 in 2 hops
192.168.6.0 in 2 hops
192.168.7.0 in 3 hops
192.168.8.0 in 3 hops
192.168.9.0 in 4 hops
RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.168.4.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via Serial3/0 (192.168.6.1)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: received v1 update from 192.168.6.2 on Serial3/0
192.168.1.0 in 4 hops
192.168.2.0 in 3 hops
192.168.3.0 in 3 hops
192.168.4.0 in 2 hops
192.168.5.0 in 2 hops
192.168.6.0 in 1 hops
192.168.7.0 in 1 hops
192.168.8.0 in 1 hops
192.168.9.0 in 2 hops
Router#undebug all
All possible debugging has been turned off

6. En el router 2, dentro Router rip, ejecutar el comando passive-interface


fastethernet 0/0

Router#conf term
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#passive-interface f0/0
a. Comprobar que no se publican rutas en el router 2 por la interfaz
fastethernet 0/0 después de poner el comando passive interface y
que antes de poner el comando, si que se publicaban.

Antes:
Router#debug ip rip
RIP protocol debugging is on
Router#RIP: received v1 update from 192.168.4.1 on Serial2/0
192.168.1.0 in 2 hops
192.168.2.0 in 1 hops
192.168.3.0 in 1 hops
192.168.4.0 in 1 hops
192.168.5.0 in 2 hops
192.168.6.0 in 2 hops
192.168.7.0 in 3 hops
192.168.8.0 in 3 hops
192.168.9.0 in 4 hops
RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.168.4.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (192.168.5.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via Serial3/0 (192.168.6.1)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: received v1 update from 192.168.6.2 on Serial3/0
192.168.1.0 in 4 hops
192.168.2.0 in 3 hops
192.168.3.0 in 3 hops
192.168.4.0 in 2 hops
192.168.5.0 in 2 hops
192.168.6.0 in 1 hops
192.168.7.0 in 1 hops
192.168.8.0 in 1 hops
192.168.9.0 in 2 hops
Router#undebug all
All possible debugging has been turned off
APLICO EL COMANDO:
Router#conf term
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#passive-interface f0/0

Despues:
Router#debug ip rip
RIP protocol debugging is on
Router#RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.168.4.2)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: sending v1 update to 255.255.255.255 via Serial3/0 (192.168.6.1)
RIP: build update entries
network 192.168.1.0 metric 3
network 192.168.2.0 metric 2
network 192.168.3.0 metric 2
network 192.168.4.0 metric 1
network 192.168.5.0 metric 1
network 192.168.6.0 metric 1
network 192.168.7.0 metric 2
network 192.168.8.0 metric 2
network 192.168.9.0 metric 3
RIP: received v1 update from 192.168.4.1 on Serial2/0
192.168.1.0 in 2 hops
192.168.2.0 in 1 hops
192.168.3.0 in 1 hops
192.168.4.0 in 1 hops
192.168.5.0 in 2 hops
192.168.6.0 in 2 hops
192.168.7.0 in 3 hops
192.168.8.0 in 3 hops
192.168.9.0 in 4 hops
RIP: received v1 update from 192.168.6.2 on Serial3/0
192.168.1.0 in 4 hops
192.168.2.0 in 3 hops
192.168.3.0 in 3 hops
192.168.4.0 in 2 hops
192.168.5.0 in 2 hops
192.168.6.0 in 1 hops
192.168.7.0 in 1 hops
192.168.8.0 in 1 hops
192.168.9.0 in 2 hops
Router#undebug all
All possible debugging has been turned off

Creo que también se podría demostrar con un show ip protocols:

Antes:
Router#show 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 1, receive any version
Interface Send Recv Triggered RIP Key-chain
Serial2/0 1 2 1
FastEthernet0/0 1 2 1
Serial3/0 1 2 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.4.0
192.168.5.0
192.168.6.0
Passive Interface(s):
Routing Information Sources:
Gateway Distance Last Update
192.168.4.1 120 00:00:25
192.168.6.2 120 00:00:11
Distance: (default is 120)
Router#
Después:
Router# show ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 28 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 1, receive any version
Interface Send Recv Triggered RIP Key-chain
Serial2/0 1 2 1
Serial3/0 1 2 1
Automatic network summarization is in effect
Maximum path: 4
Routing for Networks:
192.168.4.0
192.168.5.0
192.168.6.0
Passive Interface(s):
FastEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
192.168.4.1 120 00:00:20
192.168.6.2 120 00:00:19
Distance: (default is 120)
Router#

El comando passive interface, permite evitar que un router pueda recibir


tramas falsas por una interfaz y así evitar que un atacante modifique la
tabla de rutas de los routers. El passive interface sólo se pone en la interfaz
que apunta a la red local porque ahí no hay ningún router, sólo Pcs, por
tanto es innecesario publicar rutas porque no hay ningún router al otro
lado. Si no se pone el passive interface, los PC puede usar la información de
publicación que envía un router para realizar un ataque de RIP spoofing y
enviar tramas faltas al router.

Potrebbero piacerti anche