PDA

View Full Version : Thú vị trong chứng thực RIP version 2



tranmyphuc
27-12-2008, 03:20 PM
Chào mọi người,
Hôm nay khi thực hành RIP version 2 athentication mode md5 , tôi phát hiện ra một điều khá thú vị :
Topo mạng như sau :

http://vinaanh.com/images0/17065/f/4955ddf3a2545_f.png
Mô tả :
R0 có :
fa0/0 : 192.168.1.2/24
inter loopback 0 : 1.1.1.1/24
inter loopback 1: 2.2.2.2/24

R0#sho ip rout
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

1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback1
C 192.168.1.0/24 is directly connected, FastEthernet0/0

R1 có :
fa0/0 : 192.168.1.1/24
inter loopback 0 : 10.0.0.1/24
inter loopback 1: 11.0.0.1/24

R1#sho ip rou
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

10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Loopback0
11.0.0.0/24 is subnetted, 1 subnets
C 11.0.0.0 is directly connected, Loopback1
C 192.168.1.0/24 is directly connected, FastEthernet0/0

Dưới đây là show run của cả 2 router
R0

key chain test
key 2
key-string cisco
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface Loopback1
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
ip rip authentication mode md5
ip rip authentication key-chain test
duplex half
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 1.0.0.0
network 2.0.0.0
network 192.168.1.0
!
ip classless

R1

key chain phuc
key 1
key-string cisco
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 10.0.0.1 255.255.255.0
!
interface Loopback1
ip address 11.0.0.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip rip authentication mode md5
ip rip authentication key-chain phuc
duplex half
!
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/1
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 10.0.0.0
network 11.0.0.0
network 192.168.1.0
!

Tuy nhiên hiện tượng xảy ra như sau :

R0#show ip rout
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

1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback1
R 10.0.0.0/8 [120/1] via 192.168.1.1, 00:00:05, FastEthernet0/0
R 11.0.0.0/8 [120/1] via 192.168.1.1, 00:00:05, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/0


R1#sho ip rout
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

10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Loopback0
11.0.0.0/24 is subnetted, 1 subnets
C 11.0.0.0 is directly connected, Loopback1
C 192.168.1.0/24 is directly connected, FastEthernet0/0

Các bạn đã từng gặp vấn đề trên chưa ?
Chúc các bạn vui và hi vọng rằng có khi giải pháp sắp tới tôi đưa ra sẽ giúp bạn ích nhiều trong công việc nếu như bạn đã từng phải đau đầu vì khúc mắc trên.

vnpro-test
27-12-2008, 03:32 PM
Key 1 và Key 2 phải cùng key ID trong MD5 chứ.