CCNA学习笔记 RIP协议概要1.doc

CCNA学习笔记 RIP协议概要1

RIP协议 RIP(Routing Information Protocol),RIP是一种分布式的基于距离矢量的路由选择协议,是因特网的标准协议,其最大优点就是实现简单,开销较但RIP的缺点也较多。首先,其限制了网络的规模,能使用的最大距离为15(16表示不可达)。其次路由器交换的信息是路由器的完整路由表,因而随着网络规模的扩大,开销也就增加。最后,“坏消息传播得慢”,使更新过程的收敛时间过长。因此对于规模较大的网络就应当使用OSPF协议。然而目前在规模较小的网络中,使用RIP协议的仍占多数。RIP协议有以下特点 过于简单,以跳数为依据计算度量值,经常得出非最优路由。例如:2跳64K专线,和3跳1000M光纤,显然多跳一下没什么不好。度量值以16为限,不适合大的网络。解决路由环路问题,16跳在rip中被认为是无穷大,rip是一种域内路由算法自治路由算法,多用于园区网和企业网。 安全性差,接受来自任何设备的路由更新。无密码验证机制,默认接受任何地方任何设备的路由更新。不能防止恶意的rip欺骗。 不支持无类ip地址和VLSMripv1。 收敛性差,时间经常大于5分钟。 消耗带宽很大。完整的复制路由表,把自己的路由表复制给所有邻居,尤其在低速广域网链路上更以显式的全量更新。 // 以配置Router1为例来讲解操作命令 Routeren // 切换成特权模式 Router# Router#conf t // 切换成路由器全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int s1/0 // 打开s1/0接口 Router(config-if)#no shutdown // 设置接口为开启模式 Router(config-if)# %LINK-5-CHANGED: Interface Serial1/0, changed state to up Router(config-if)#ip add 192.168.12.2 255.255.255.0 // 配置接口ip地址 Router(config-if)#int s1/1 // 切换到s1/1接口 Router(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial1/1, changed state to down Router(config-if)#ip add 192.168.23.2 255.255.255.0 Router(config-if)#clock rate 64000 // 配置串口DCE时钟 Router(config-if)#int l0 // 打开第0个环回口并配置 Router(config-if)# %LINK-5-CHANGED: Interface Loopback0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up Router(config-if)#no shutdown Router(config-if)#ip add 2.2.2.2 255.255.255.0 Router(config-if)# Router# %SYS-5-CONFIG_I: Configured from console by console Router#write Building configuration... [OK] Router# %LINK-5-CHANGED: Interface Serial1/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#router rip // 设置路由器路由为RIP协议 Router(config-router)#version 2 // 设置RIP路由协议为版本2 Router(config-router)#network 192.168.1

文档评论(0)

1亿VIP精品文档

相关文档