实例讲解RIP的明文验证
创始人
2024-07-25 09:31:29
0

明文验证步骤如下:

拓扑如图:

 

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

2、验证

R1上配置为:

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

R2上配置为:

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

3、路由器的路由表结果

  1. R1#show ip route  
  2.  
  3. Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP  
  4.  
  5. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area  
  6.  
  7. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2  
  8.  
  9. E1 - OSPF external type 1, E2 - OSPF external type 2  
  10.  
  11. i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2  
  12.  
  13. ia - IS-IS inter area, * - candidate default, U - per-user static route  
  14.  
  15. o - ODR, P - periodic downloaded static route  
  16.  
  17. Gateway of last resort is not set  
  18.  
  19. C    192.168.12.0/24 is directly connected, FastEthernet0/0  
  20.  
  21. C    192.168.1.0/24 is directly connected, Loopback0 
  1. R2#show ip route  
  2.  
  3. Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP  
  4.  
  5. D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area  
  6.  
  7. N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2  
  8.  
  9. E1 - OSPF external type 1, E2 - OSPF external type 2  
  10.  
  11. i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2  
  12.  
  13. ia - IS-IS inter area, * - candidate default, U - per-user static route  
  14.  
  15. o - ODR, P - periodic downloaded static route  
  16.  
  17. Gateway of last resort is not set  
  18.  
  19. C    192.168.12.0/24 is directly connected, FastEthernet0/0  
  20.  
  21. R    192.168.1.0/24 [120/1] via 192.168.12.1, 00:00:15, FastEthernet0/0  
  22.  
  23. C    192.168.2.0/24 is directly connected, Loopback0 

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

【编辑推荐】

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

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...