RIPv2验证

RIPv2验证
在R1,R2上进行配置
 
R1
conf t
int l 0
ip ad 4.4.4.4 255.255.255.255
int s 0
ip ad 10.1.1.1 255.255.255.0
clock rate 64000
ip rip authentication key-chain RIP_authen       在接口上进行验证
ip rip authentication mode md5                        定义验证方法(md5/text)

no shut
exit
key chain RIP_authen           定义key chain的名字
key 1                                     定义key的标识符 
key-string pass                      定义验证码
router rip
ver 2
no au
net 4.0.0.0
net 10.0.0.0
 
 
R2
conf t
int l 0
ip ad 5.5.5.5 255.255.255.255
int s0
ip ad 10.1.1.2 255.255.255.0
no shut
ip authentication key-chain RIP_authen
ip authentication mode md5

exit
key chain RIP_authen
key 1
key-string pass

router rip
ver 2
no au
net 10.0.0.0
net 5.0.0.0
exit

R1#sh 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, 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
     4.0.0.0/32 is subnetted, 1 subnets
C       4.4.4.4 is directly connected, Loopback0
     5.0.0.0/32 is subnetted, 1 subnets
R       5.5.5.5 [120/1] via 10.1.1.2, 00:00:03, Serial0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial0


r2#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
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/1] via 10.1.1.1, 00:00:16, Serial0
     5.0.0.0/32 is subnetted, 1 subnets
C       5.5.5.5 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial0

R1#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
r2#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/61/64 ms

本文出自 “穿过地狱去看海” 博客,谢绝转载!

你可能感兴趣的:(职场,路由,休闲,rip)