CISCO 动态路由(RIP)

RIP(路由信息协议):是一种内部网关协议(IGP),是一种动态路由选择协议,基于距离矢量算法(DistanceVectorAlgorithms),使用“跳数”(即metric)来衡量到达目标地址的路由距离。

优点:配置简单

缺点

1、适用于规模较少的中小型网络。

2、可以接受来自任何设备的路由更新,网络安全性较差。

3、收敛缓慢,带宽消耗大。

4、以跳数为依据计算度量值,会经常选择非最佳路由。

网络拓扑图

实验过程: 

R1配置如下:

R1>enable
R1#configure terminal
R1(config)#no ip domain-lookup
R1(config)#hostname R1
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 68.1.1.2 255.255.255.0
R1(config-if)#exit
R1(config)#int loopback 0  
R1(config-if)#ip address 7.7.7.7 255.255.255.0
R1(config-if)#exit
R1(config)#route rip   #启用rip协议
R1(config-router)#network 7.7.7.7    #宣告路由
R1(config-router)#network 68.1.1.2
R1(config-router)#end
R1#write

R2配置如下:

R2>enable
R2#configure terminal
R2(config)#no ip domain-lookup
R2(config)#hostname R2
R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 68.1.1.3 255.255.255.0
R2(config)#int f0/1
R2(config-if)#no shutdown
R2(config-if)#ip address 86.1.1.4 255.255.255.0
R2(config-if)#exit
R2(config)#int loopback 0
R2(config-if)#ip address 8.8.8.8 255.255.255.0
R2(config-if)#exit
R2(config)#route rip
R2(config-router)#network 8.8.8.8    
R2(config-router)#network 68.1.1.3
R2(config-router)#network 86.1.1.4
R2(config-router)#end
R2#write
 

R3配置如下:

R3>enable
R3#configure terminal
R3(config)#no ip domain-lookup
R3(config)#hostname R3
R3(config)#int f0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 86.1.1.5 255.255.255.0
R3(config-if)#exit
R3(config)#int loopback 0
R3(config-if)#ip address 9.9.9.9 255.255.255.0
R3(config-if)#exit
R3(config)#route rip
R3(config-router)#network 9.9.9.9    
R3(config-router)#network 86.1.1.5
R3(config-router)#end
R3#write

猜你喜欢

转载自www.cnblogs.com/strive99/p/10164555.html