实例讲解RIP的明文验证

网络 路由交换
明文认证的匹配原则:发送方发送最小KEY ID的密钥;不携带K ID号码;接受方会和所有的KEY chain中的密钥匹配,如果匹配成功,则通过。下面让我们通过实例来看一下明文验证步骤。

明文验证步骤如下:

拓扑如图:

 

1、明文认证时,被认证方发送key chian时,发送最低ID值的key,并且不携带ID;认证方接收到key后,和自己key chain的全部key进行比较,只要有一个key匹配就通过对被认证方的认证。

2、验证

R1上配置为:

key chain rip-key  
 
key 1  
 
key-string ccxx02  
 
!  
 
interface FastEthernet0/0  
 
ip address 192.168.12.1 255.255.255.0  
 
ip rip authentication key-chain rip-key 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.

R2上配置为:

key chain rip-key  
 
key 1  
 
key-string ccxx01  
 
key 2  
 
key-string ccxx02  
 
!  
 
interface FastEthernet0/0  
 
ip address 192.168.12.2 255.255.255.0  
 
ip rip authentication key-chain rip-key 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.

3、路由器的路由表结果

R1#show 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, 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  
 
C    192.168.12.0/24 is directly connected, FastEthernet0/0  
 
C    192.168.1.0/24 is directly connected, Loopback0 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
R2#show 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, 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  
 
C    192.168.12.0/24 is directly connected, FastEthernet0/0  
 
R    192.168.1.0/24 [120/1] via 192.168.12.1, 00:00:15, FastEthernet0/0  
 
C    192.168.2.0/24 is directly connected, Loopback0 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.

明文验证的过程就为大家介绍完了,希望大家已经掌握。

【编辑推荐】

  1. 局域网接口种类介绍
  2. 深入解析路由重分发(5)
  3. 实例讲解路由器DNS设置故障
  4. Distance 命令修改默认管理距离
  5. 路由器故障:广域网故障处理分析
  6. 熟练使用cisco rommon维护路由器 上篇
责任编辑:佚名 来源: Cisco技术
相关推荐

2011-04-01 09:04:09

RIP

2010-08-06 09:38:58

RIP报文

2009-06-09 11:23:23

思科ripsecondary 地

2010-06-10 15:46:07

RIP路由协议

2009-12-15 14:29:52

RIP路由协议

2010-08-06 09:47:36

RIP路由协议

2011-05-23 13:24:01

2009-12-25 17:39:01

WPF验证

2009-11-23 20:16:17

PHP接口特性

2009-11-23 17:31:49

PHP时间戳

2010-09-14 17:20:57

2010-06-03 18:22:38

Hadoop

2011-04-02 16:37:26

PAT

2013-01-10 14:54:48

Android开发组件Intent

2009-11-23 15:32:13

PHP获取远程URL

2010-04-20 16:34:31

2009-11-23 14:44:22

PHP 5.0构造函数

2010-09-03 10:23:49

PPP Multili

2011-04-02 16:33:33

2009-08-28 16:37:32

C# for循环
点赞
收藏

51CTO技术栈公众号