温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

RIP协议之高级篇

发布时间:2020-06-23 17:54:00 来源:网络 阅读:741 作者:钦之双翼 栏目:网络安全

之前,写过一篇博客,总结的是RIP的初级应用,现在对RIP的其他方面做个总结,比如安全认证,默认路由,RIP的单播更新等,不过应该在实际工程项目上用得不多吧。更多的是命令部署。

一. RIP认证 

text模式:

RIP协议之高级篇

md5模式:

RIP协议之高级篇实验拓扑:

RIP协议之高级篇

部署:

 

R1:

  R1(config)#key chain PL

  R1(config-keychain)#key 1

  R1(config-keychain-key)#key-string cisco

  R1(config-keychain-key)#int f0/0

  R1(config-if)#ip rip authentication mode ?

       md5   Keyed message digest

       text  Clear text authentication

  R1(config-if)#ip rip authentication key-chain PL

R2:

  R2(config)#key chain PL      //定义钥匙串名,可以不一致

  R2(config-keychain)#key 1  //定义密钥序号

  R2(config-keychain-key)#key-string cisco  //定义密钥密码

  R2(config-keychain-key)#int f0/0

  R2(config-if)#ip rip authentication mode ?

       md5   Keyed message digest   ------>密码明文

       text  Clear text authentication ------>密码md5加密

  R2(config-if)#ip rip authentication key-chain PL

show命令:show key chain

          show run | s key


二.RIP的默认路由

   配置方便--命令简单,就一条命令

   动态适应网络拓扑

   命令部署:

       R2(config)#router rip

       R2(config-router)#default-information originate 

     -------会动态默认路由,一般在边缘出口路由上部署

RIP协议之高级篇

  R*---->RIP的默认路由。


三.RIP的被动接口

 部署:

   方法①:

   R1(config)#router rip

   R1(config-router)#passive-interface f0/0      //路由器执行

   或 

   R1(config-router)#passive-interface vlan 10/20/30...    //一般在汇聚层交换机上执行

    ----------优化对方不需要的数据包

   方法②:

   R1(config)#router rip

   R1(config-router)#passive-interface default   //将所有接口设置为被动接口

   R1(config-router)#no passive-interface f0/0   //开启某个接口

   一般部署的环境:

          ①在汇聚层交换机上部署,因为接入层的交换机不需要协议包,只识别mac。

          ②在边缘路由器上部署

四.RIP单播更新

   部署:

    R1(config)#router rip 

    R1(config-router)#version 2

    R1(config-router)#no auto-summary 

    R1(config-router)#network x.0.0.0    //发出组播包224.0.0.9

    R1(config-router)#neighbor 12.1.1.2 //单播指定邻居,采用单播包与邻居交互

    R1(config-router)#passive-interface f0/0 //被动接口特性只能抑制组播,广播包,无法抑制单播包。

   R2同样要部署。

   

  注:RIP流量优化=被动接口+单播更新

五.RIP的偏移列表

    定义:offset-list(只增不减),用于修改度量值<跳数>

    部署:

       ①通过ACL匹配路由

           access-list 1 permit 2.2.2.2

       ②通过偏移列表调用ACL

           router rip

              offset-list 1 in 5 f0/0         //从接口f0/0进来的路由增加跳数5

              offset-list 1 out 12 f0/0     //从接口f0/0出去的路由增加5

              offset-list 0 out 12 f0/0     //从接口f0/0出去的所有路由增加5    

    关于方向的选择问题:

     路由从哪里学到的,顺着方向写。比如R1是从R2学到路由的,也就是说R2给R1路由的,所以要增大R1中R2的跳数,就要用in。谁接收,就谁in。











向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI