RIP动态路由协议的汇总实验报告
一、实验目的
1、掌握RIP协议的配置实验
2、通过动态路由协议RIP实验学习路由的设置
3、熟练掌握RIPv1与RIPv2在路由中的不同
二、RIPV1与RIPV2的区别
RIPv1:
1、RIPv1 是有类路由协议
2、RIPv1 发布路由更新不携带子网掩码信息
3、不支持可变长子网掩码VISM
4、RIPv1发布路由更新时自动汇总并且无法关闭的
RIPv2:
1、RIPv2 是无类路由协议
2、RIPv2 发布路由更新携带子网掩码信息
3、支持可变长子网掩码VISM
4、RIPv2发布路由更新时自动汇总并且可以关闭的
三、实验器材
需要四台电脑、两个(2811型号)路由器、五根交叉线
注意:R1需要设备物理试图为(NM—4E)
四、实验拓扑图
五、实验步骤
1、路由之间实现全网互通
R1的配置实验
Router>
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#
R1(config)#int e1/0
R1(config-if)#ip add
R1(config-if)#ip address 10.10.10.254 255.255.255.0
R1(config-if)#no shu
%LINK-5-CHANGED: Interface Ethernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up
R1(config-if)#
R1(config-if)#int e1/1
R1(config-if)#ip add
R1(config-if)#ip address 10.10.20.126 255.255.255.128
R1(config-if)#no shu
%LINK-5-CHANGED: Interface Ethernet1/1, changed state to up
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/1, changed state to up
R1(config-if)#int e1/2
R1(config-if)#ip add
R1(config-if)#ip address 11.11.11.254 255.255.255.0
R1(config-if)#no shu
%LINK-5-CHANGED: Interface Ethernet1/2, changed state to u
R1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/2, changed state to up
R1(config-if)#int e1/3
R1(config-if)#ip address 11.11.22.126 255.255.255.128
R1(config-if)#no shu
%LINK-5-CHANGED: Interface Ethernet1/3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/3, changed state to up
R1( (config-if)#
R1(config-if)#int f0/0
R1(config-if)#ip add
R1(config-if)#ip address 10.10.30.1 255.255.255.0
R1(config-if)#no shu
R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
R1(config-if)#
R2的配置
Router >
Router >en
Router #conf t
Router(config)#hostname R2
R2(config)#
R2(config)#int f0/1
R2(config-if)#ip add
R2(config-if)#ip address 10.10.30.2 255.255.255.0
R2(config-if)#no shu
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up R2(config-if)#
2、动态路由(RIPv1)设置
R1(config)#rou
R1(config)#router rip
R1(config-router)#net
R1(config-router)#network 10.10.10.0
R1(config-router)#network 10.10.20.0
R1(config-router)#network 11.11.11.0
R1(config-router)#network 11.11.22.0
R1(config-router)#network 10.10.30.0
R1(config-router)#
R2(config)#router rip
R2(config-router)#
R2(config-router)#net
R2(config-router)#network 10.10.30.0
R2(config-router)#
3、RIPV2的是设置
R1(config-router)#ve
R1(config-router)#version 2 启动V2版本
R1(config-router)#no auto
R1(config-router)#no auto-summary 关闭自动汇总
R1(config-router)#