PDA

View Full Version : Routing between RIPv1 & RIPv2



themask
25-02-2004, 08:03 AM
sh run
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname singapore
!
!
ip subnet-zero
!
!
!
!
!
interface Loopback0
ip address 192.168.3.1 255.255.255.0
no ip directed-broadcast
!
interface Ethernet0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0
ip address 192.168.240.1 255.255.255.252
no ip directed-broadcast
no ip mroute-cache
no fair-queue
clockrate 64000
!
interface Serial1
ip address 192.168.224.1 255.255.255.252
no ip directed-broadcast
clockrate 64000
!
interface BRI0
no ip address
no ip directed-broadcast
shutdown
!
router rip
version 2
network 192.168.3.0
network 192.168.224.0
network 192.168.240.0
!
ip classless
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
end

singapore#
singapore#
singapore#
singapore#sh ipro   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, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

192.168.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial1
192.168.240.0/30 is subnetted, 1 subnets
C 192.168.240.0 is directly connected, Serial0
R 192.168.252.0/24 [120/1] via 192.168.240.2, 00:00:17, Serial0
C 192.168.3.0/24 is directly connected, Loopback0
singapore#
singapore#
singapore#
singapore#
singapore#
singapore#
singapore#
sanjose3#
sanjose3#
sanjose3#sh run
Building configuration...

Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sanjose3
!
!
!
!
!
!
ip subnet-zero
no ip domain-lookup
!
!
!
!
interface Loopback0
ip address 192.168.1.3 255.255.255.0
!
interface Ethernet0
ip address 200.200.50.2 255.255.255.0
!
interface Serial0
ip address 192.168.224.2 255.255.255.252
!
interface Serial1
no ip address
shutdown
!
router rip
version 1
network 192.168.1.0
network 192.168.224.0
!
ip classless
ip http server
!
!
line con 0
logging synchronous
transport input none
line aux 0
line vty 0 4
login
!
end

sanjose3#
sanjose3#
sanjose3#
sanjose3#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
C 200.200.50.0/24 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Loopback0
sanjose3#
sanjose3#
sanjose3#
auckland#
auckland#
auckland#
auckland#sh run
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname auckland
!
!
ip subnet-zero
!
!
!
!
!
interface Loopback0
ip address 192.168.252.1 255.255.255.0
no ip directed-broadcast
!
interface Ethernet0
no ip address
no ip directed-broadcast
shutdown
!
interface Serial0
ip address 192.168.240.2 255.255.255.252
no ip directed-broadcast
no ip mroute-cache
no fair-queue
!
interface Serial1
no ip address
no ip directed-broadcast
shutdown
!
interface BRI0
no ip address
no ip directed-broadcast
shutdown
!
router rip
version 2
network 192.168.240.0
network 192.168.252.0
!
ip classless
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
end

auckland#
auckland#
auckland#
auckland#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, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

R 192.168.224.0/24 [120/1] via 192.168.240.1, 00:00:17, Serial0
192.168.240.0/30 is subnetted, 1 subnets
C 192.168.240.0 is directly connected, Serial0
C 192.168.252.0/24 is directly connected, Loopback0
R 192.168.3.0/24 [120/1] via 192.168.240.1, 00:00:17, Serial0
auckland#
auckland#
auckland#
auckland#








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, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

R 192.168.224.0/24 [120/1] via 192.168.240.1, 00:00:21, Serial0
192.168.240.0/30 is subnetted, 1 subnets
C 192.168.240.0 is directly connected, Serial0
R 192.168.1.0/24 [120/2] via 192.168.240.1, 00:00:22, Serial0
C 192.168.252.0/24 is directly connected, Loopback0
R 192.168.3.0/24 [120/1] via 192.168.240.1, 00:00:22, Serial0
auckland#
auckland#
auckland#
auckland#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
C 200.200.50.0/24 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Loopback0
sanjose3#
sanjose3#
sanjose3#
sanjose3#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, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

192.168.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial1
192.168.240.0/30 is subnetted, 1 subnets
C 192.168.240.0 is directly connected, Serial0
R 192.168.1.0/24 [120/1] via 192.168.224.2, 00:00:09, Serial1
R 192.168.252.0/24 [120/1] via 192.168.240.2, 00:00:00, Serial0
C 192.168.3.0/24 is directly connected, Loopback0
singapore#
singapore#
singapore#
singapore#
sanjose3#debug ip rip
RIP protocol debugging is on
sanjose3#clear ip route *
sanjose3#
00:35:18: RIP: sending request on Loopback0 to 255.255.255.255
00:35:18: RIP: sending request on Serial0 to 255.255.255.255
sanjose3#
00:35:20: RIP: sending v1 flash update to 255.255.255.255 via Loopback0 (192.168.1.3)
00:35:20: RIP: build flash update entries
00:35:20: network 192.168.224.0 metric 1
00:35:20: RIP: sending v1 flash update to 255.255.255.255 via Serial0 (192.168.224.2)
00:35:20: RIP: build flash update entries
00:35:20: network 192.168.1.0 metric 1
sanjose3#
00:35:28: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.3)
00:35:28: RIP: build update entries
00:35:28: network 192.168.224.0 metric 1
00:35:28: RIP: sending v1 update to 255.255.255.255 via Serial0 (192.168.224.2)
00:35:28: RIP: build update entries
00:35:28: network 192.168.1.0 metric 1
00:35:29: RIP: ignored v2 packet from 192.168.224.1 (illegal version)
sanjose3#
sanjose3#
sanjose3#
sanjose3#un all
All possible debugging has been turned off
sanjose3#
sanjose3#



RIP illegal version




sanjose3#
sanjose3#
sanjose3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
sanjose3(config)#int s0
sanjose3(config-if)#ip rip re
sanjose3(config-if)#ip rip receive ver
sanjose3(config-if)#ip rip receive version 2
sanjose3(config-if)#^Z
sanjose3#
sanjose3#
sanjose3#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
C 200.200.50.0/24 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Loopback0
sanjose3#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
C 200.200.50.0/24 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Loopback0
sanjose3#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
R 192.168.240.0/24 [120/1] via 192.168.224.1, 00:00:00, Serial0
C 200.200.50.0/24 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Loopback0
R 192.168.252.0/24 [120/2] via 192.168.224.1, 00:00:00, Serial0
R 192.168.3.0/24 [120/1] via 192.168.224.1, 00:00:00, Serial0
sanjose3#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
R 192.168.240.0/24 [120/1] via 192.168.224.1, 00:00:04, Serial0
C 200.200.50.0/24 is directly connected, Ethernet0
C 192.168.1.0/24 is directly connected, Loopback0
R 192.168.252.0/24 [120/2] via 192.168.224.1, 00:00:04, Serial0
R 192.168.3.0/24 [120/1] via 192.168.224.1, 00:00:04, Serial0
sanjose3#


RIP1 & RIP2 can't understand eachother.

chipchipzzz
05-03-2004, 02:57 PM
Sanjose3: RIP ver 1
Singapore: RIP ver 2
Auckland: RIP ver 2



Sanjose3#clea ip route *
Sanjose3#
00:36:59: RIP: sending general request on Loopback0 to 255.255.255.255
00:36:59: RIP: sending general request on Loopback0 to 224.0.0.9
00:36:59: RIP: sending general request on Serial0 to 255.255.255.255
00:36:59: RIP: sending general request on Serial0 to 224.0.0.9
00:36:59: RIP: ignored v2 packet from 192.168.1.3 (sourced from one of our addresses)
00:36:59: RIP: received v2 update from 192.168.224.1 on Serial0
00:36:59: 192.168.3.0/24 -> 0.0.0.0 in 1 hops
00:36:59: 192.168.240.0/24 -> 0.0.0.0 in 1 hops
00:36:59: 192.168.252.0/24 -> 0.0.0.0 in 2 hops
00:36:59: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.3)
00:36:59: network 192.168.224.0, metric 1
00:36:59: network 192.168.240.0, metric 2
00:36:59: network 192.168.252.0, metric 3
00:36:59: network 192.168.3.0, metric 2
00:36:59: RIP: sending v1 update to 255.255.255.255 via Serial0 (192.168.224.2)
00:36:59: network 192.168.1.0, metric 1
00:37:04: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.3)
00:37:04: network 192.168.224.0, metric 1
00:37:04: network 192.168.240.0, metric 2
00:37:04: network 192.168.252.0, metric 3
00:37:04: network 192.168.3.0, metric 2
00:37:04: RIP: sending v1 update to 255.255.255.255 via Serial0 (192.168.224.2)
00:37:04: network 192.168.1.0, metric 1
00:37:15: RIP: received v2 update from 192.168.224.1 on Serial0
00:37:15: 192.168.3.0/24 -> 0.0.0.0 in 1 hops
00:37:15: 192.168.240.0/24 -> 0.0.0.0 in 1 hops
00:37:15: 192.168.252.0/24 -> 0.0.0.0 in 2 hops
00:37:33: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.3)
00:37:33: network 192.168.224.0, metric 1
00:37:33: network 192.168.240.0, metric 2
00:37:33: network 192.168.252.0, metric 3
00:37:33: network 192.168.3.0, metric 2
00:37:33: RIP: sending v1 update to 255.255.255.255 via Serial0 (192.168.224.2)
00:37:33: network 192.168.1.0, metric 1
Sanjose3#



Sanjose3#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, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

192.168.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
R 192.168.240.0/24 [120/1] via 192.168.224.1, 00:00:04, Serial0
C 192.168.1.0/24 is directly connected, Loopback0
R 192.168.252.0/24 [120/2] via 192.168.224.1, 00:00:04, Serial0
R 192.168.3.0/24 [120/1] via 192.168.224.1, 00:00:04, Serial0
Sanjose3#


Singapore#
00:33:37: RIP: ignored v1 packet from 192.168.224.2 (illegal version)
00:33:43: RIP: received v2 update from 192.168.240.2 on Serial1
00:33:43: 192.168.252.0/24 via 0.0.0.0 in 1 hops
00:33:44: RIP: sending v2 update to 224.0.0.9 via Loopback0 (192.168.3.1)
00:33:44: RIP: build update entries
00:33:44: 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0
00:33:44: 192.168.224.0/24 via 0.0.0.0, metric 1, tag 0
00:33:44: 192.168.240.0/24 via 0.0.0.0, metric 1, tag 0
00:33:44: 192.168.252.0/24 via 0.0.0.0, metric 2, tag 0
00:33:44: RIP: sending v2 update to 224.0.0.9 via Serial0 (192.168.224.1)
00:33:44: RIP: build update entries
00:33:44: 192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
00:33:44: 192.168.240.0/24 via 0.0.0.0, metric 1, tag 0
00:33:44: 192.168.252.0/24 via 0.0.0.0, metric 2, tag 0
00:33:44: RIP: sending v2 update to 224.0.0.9 via Serial1 (192.168.240.1)
00:33:44: RIP: build update entries
00:33:44: 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0
00:33:44: 192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
00:33:44: 192.168.224.0/24 via 0.0.0.0, metric 1, tag 0
00:33:45: RIP: ignored v2 packet from 192.168.3.1 (sourced from one of our addresses)


Singapore#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
192.168.240.0/30 is subnetted, 1 subnets
C 192.168.240.0 is directly connected, Serial1
R 192.168.252.0/24 [120/1] via 192.168.240.2, 00:00:03, Serial1
C 192.168.3.0/24 is directly connected, Loopback0
Singapore#

Kết luận:
Sanjose3, chạy RIP ver 1, chấp nhận quảng bá & cập nhật RIP ver 2
Singapore, chạy RIP ver 2, không chấp nhận cập nhật RIP ver 1

Routing between RIP v1 and RIP v2:
Singapore: RIP ver 2, receive RIP ver 1


Singapore(config)#int s0
Singapore(config-if)#ip rip receive ver 1
Singapore(config-if)#^Z
Singapore#clear ip route *


Singapore#
01:04:59: RIP: sending request on Loopback0 to 224.0.0.9
01:04:59: RIP: sending request on Serial0 to 224.0.0.9
01:04:59: RIP: sending request on Serial1 to 224.0.0.9
01:04:59: RIP: ignored v2 packet from 192.168.3.1 (sourced from one of our addresses)
01:04:59: RIP: received v2 update from 192.168.240.2 on Serial1
01:04:59: 192.168.252.0/24 via 0.0.0.0 in 1 hops
Singapore#
01:05:01: RIP: sending v2 flash update to 224.0.0.9 via Loopback0 (192.168.3.1)
01:05:01: RIP: build flash update entries
01:05:01: 192.168.224.0/24 via 0.0.0.0, metric 1, tag 0
01:05:01: 192.168.240.0/24 via 0.0.0.0, metric 1, tag 0
01:05:01: 192.168.252.0/24 via 0.0.0.0, metric 2, tag 0
01:05:01: RIP: sending v2 flash update to 224.0.0.9 via Serial0 (192.168.224.1)
01:05:01: RIP: build flash update entries
01:05:01: 192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
01:05:01: 192.168.240.0/24 via 0.0.0.0, metric 1, tag 0
01:05:01: 192.168.252.0/24 via 0.0.0.0, metric 2, tag 0
01:05:01: RIP: sending v2 flash update to 224.0.0.9 via Serial1 (192.168.240.1)
Singapore#
01:05:01: RIP: build flash update entries
01:05:01: 192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
01:05:01: 192.168.224.0/24 via 0.0.0.0, metric 1, tag 0
01:05:01: RIP: ignored v2 packet from 192.168.3.1 (sourced from one of our addresses)
Singapore#
01:05:03: RIP: sending v2 update to 224.0.0.9 via Loopback0 (192.168.3.1)
01:05:03: RIP: build update entries
01:05:03: 192.168.224.0/24 via 0.0.0.0, metric 1, tag 0
01:05:03: 192.168.240.0/24 via 0.0.0.0, metric 1, tag 0
01:05:03: 192.168.252.0/24 via 0.0.0.0, metric 2, tag 0
01:05:03: RIP: sending v2 update to 224.0.0.9 via Serial0 (192.168.224.1)
01:05:03: RIP: build update entries
01:05:03: 192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
01:05:03: 192.168.240.0/24 via 0.0.0.0, metric 1, tag 0
01:05:03: 192.168.252.0/24 via 0.0.0.0, metric 2, tag 0
01:05:03: RIP: sending v2 update to 224.0.0.9 via Serial1 (192.168.240.1)
01:05:03: RIP: build update entries
01:05:03: 192.168.3.0/24 via 0.0.0.0, metric 1, tag 0
01:05:03: 192.168.224.0/24 via 0.0.0.0, metric 1, tag 0
01:05:03: RIP: ignored v2 packet from 192.168.3.1 (sourced from one of our addresses)
Singapore#
01:05:09: RIP: received v2 update from 192.168.240.2 on Serial1
01:05:09: 192.168.252.0/24 via 0.0.0.0 in 1 hops


Singapore#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.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0
192.168.240.0/30 is subnetted, 1 subnets
C 192.168.240.0 is directly connected, Serial1
R 192.168.1.0/24 [120/1] via 192.168.224.2, 00:00:02, Serial0
R 192.168.252.0/24 [120/1] via 192.168.240.2, 00:00:08, Serial1
C 192.168.3.0/24 is directly connected, Loopback0
Singapore#

Singapore chấp nhận RIP ver 1

admin
05-03-2004, 10:29 PM
Thân mời số đông thành viên tham gia thảo luận về kết luận dưới đây của chipchip và themask:

Kết luận:
Sanjose3, chạy RIP ver 1, chấp nhận quảng bá & cập nhật RIP ver 2
Singapore, chạy RIP ver 2, không chấp nhận cập nhật RIP ver 1

Có ý kiến ngược lại như sau:

RIP version 1 không hiểu và không chấp nhận RIP version 2.
RIP version 2 hiểu và chấp nhận cập nhật RIP version 1.

Ý kiến của các bạn thế nào?

Xin cám ơn,

tuaninbox
06-03-2004, 02:25 AM
Xin chào,

Ý kiến của em là:

Rip v 2 nhận update v1 và v2, gửi v2
Rip v 1 nhận update v1, gửi v1

Từ đó có thể lý giải cấu hình của themask như sau:

SanJose3 không hiểu v2 update từ Sing do Sing gởi v2 mà SanJ chỉ hiểu được v1



sanjose3#
00:35:28: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.3)
00:35:28: RIP: build update entries
00:35:28: network 192.168.224.0 metric 1
00:35:28: RIP: sending v1 update to 255.255.255.255 via Serial0 (192.168.224.2)
00:35:28: RIP: build update entries
00:35:28: network 192.168.1.0 metric 1
00:35:29: RIP: ignored v2 packet from 192.168.224.1 (illegal version)
sanjose3#


themask đã cấu hình cho SanJ hiểu v2 bằng lệnh: ip rip receive version 2. Lệnh này nói rằng rip sẽ chỉ hiểu v2 update trên int s0. Bài toán đã được giải quyết.

Tuy nhiên, theo debug của anh chip thì Sing (chạy v2) lại không hiểu v1 update từ SanJose (chạy v1). Không biết cấu hình của anh chip có giống 100% cấu hình của themask?

danguyennhi
07-03-2004, 08:03 AM
Hi,

Sỡ dĩ RIP v.1 không thể hiểu và chấp nhận RIP v.2 update là do trong RIP update của version 2 có dùng thêm một số field. Các field này không thể xử lý bởi các routers chạy RIP v.1

mến,

leminhkhoi
10-03-2004, 02:25 PM
chào,

Rip v 2 nhận update v1 và v2, gửi v2 ,V1
Rip v 1 nhận update v1, gửi v1
Theo mình nghĩ là vậy.