《动态路由rip配置.doc》由会员分享,可在线阅读,更多相关《动态路由rip配置.doc(6页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、实验报告配置动态路由RIP目的:掌握RIP路由协议配置方法,理解动态路由原理原理:动态路由是指动态路由协议(如RIP)自动建立路由表,当你去掉一条连线时,它会自动去掉其路由。路由器的每一个接口对应不同网络,而一条连接两个路由器连线的两个端点IP应该属于同一网络。设置的IP地址时,如果路由器的其它端口已有这个网络了,则提示已有这个网络,并显示对应的端口。一、网络拓扑:二:配置实验步骤:1. 以下是pc0客户机配置如下:其他客户机配置分别为:Pc1 配置如下:192.168.3.3 255.255.255.0 192.168.3.1Pc2 配置如下:192.168.4.2 255.255.255.
2、0 192.168.4.1Pc3 配置如下:192.168.4.3 255.255.255.0 192.168.4.1Pc4 配置如下:192.168.5.2 255.255.255.0 192.168.5.1Pc5 配置如下:192.168.5.3 255.255.255.0 192.168.5.12. 配置router0如下:- System Configuration Dialog -Continue with configuration dialog? yes/no: no Press RETURN to get started!RouterenRouter#conf tEnter c
3、onfiguration commands, one per line. End with CNTL/Z.Router(config)#hostname Router0/配置路由器FastEthernet接口IP地址Router0(config)#int f0/0Router0(config-if)#ip address 192.168.3.1 255.255.255.0Router0(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line
4、protocol on Interface FastEthernet0/0, changed state to up/配置路由器Serial口IP地址Router0(config-if)#int s0/0/0Router0(config-if)#ip address 192.168.1.1 255.255.255.0Router0(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down/配置路由器时钟频率Router0(config-if)#clock rate 9600Router
5、0(config-if)#no shutdownRouter0(config-if)#end %SYS-5-CONFIG_I: Configured from console by consoleRouter0#conf tEnter configuration commands, one per line. End with CNTL/Z./配置动态路由Router0(config)#route ripRouter0(config-router)#version 2Router0(config-router)#network 192.168.3.0Router0(config-router)
6、#network 192.168.1.0Router0(config-router)#end/查看路由表Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2
7、 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, Serial0/0/0R 192.168.2.0/24
8、 120/1 via 192.168.1.2, 00:00:03, Serial0/0/0C 192.168.3.0/24 is directly connected, FastEthernet0/0R 192.168.4.0/24 120/1 via 192.168.1.2, 00:00:03, Serial0/0/0R 192.168.5.0/24 120/2 via 192.168.1.2, 00:00:03, Serial0/0/03. 配置router1如下:- System Configuration Dialog -Continue with configuration dial
9、og? yes/no: noPress RETURN to get started!RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Router1/配置路由器FastEthernet接口IP地址Router1(config)#int f0/0Router1(config-if)#ip address 192.168.4.1 255.255.255.0Router1(config-if)#no shutdown%LINK-5-CHANG
10、ED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up/配置路由器Serial口IP地址Router1(config-if)#int s0/0/0Router1(config-if)#ip address 192.168.1.2 255.255.255.0Router1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/
11、0/0, changed state to upRouter1(config-if)#int%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up % Incomplete command.Router1(config)#int s0/0/1Router1(config-if)#ip address 192.168.2.1 255.255.255.0Router1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/1, c
12、hanged state to down/配置路由器时钟频率Router1(config-if)#clock rate 9600Router1(config-if)#no shutdownRouter1(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleRouter1#conf tEnter configuration commands, one per line. End with CNTL/Z./配置动态路由Router(config)#route ripRouter(config-router)#versio
13、n 2Router(config-router)#network 192.168.1.0Router(config-router)#network 192.168.4.0Router(config-router)#network 192.168.2.0Router(config-router)#end/查看路由表Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSP
14、F inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static
15、routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, Serial0/0/0C 192.168.2.0/24 is directly connected, Serial0/0/1R 192.168.3.0/24 120/1 via 192.168.1.1, 00:00:26, Serial0/0/0C 192.168.4.0/24 is directly connected, FastEthernet0/0R 192.168.5.0/24 120/1 via 192.168.2.2, 00:0
16、0:13, Serial0/0/14. 配置router2如下:- System Configuration Dialog -Continue with configuration dialog? yes/no: noPress RETURN to get started!RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Router2/配置路由器FastEthernet接口IP地址Router2(config)#int f0/0Rou
17、ter2(config-if)#ip address 192.168.5.1 255.255.255.0Router2(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up/配置路由器Serial口IP地址Router2(config-if)#int s0/0/0Router2(config-if)#ip add
18、ress 192.168.2.2 255.255.255.0Router2(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/0, changed state to upRouter2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to upend%SYS-5-CONFIG_I: Configured from console by console/配置动态路由Router(config)#route
19、ripRouter(config-router)#version 2Router(config-router)#network 192.168.2.0Router(config-router)#network 192.168.5.0/查看路由表Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA externa
20、l type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not
21、setR 192.168.1.0/24 120/1 via 192.168.2.1, 00:00:18, Serial0/0/0C 192.168.2.0/24 is directly connected, Serial0/0/0R 192.168.3.0/24 120/2 via 192.168.2.1, 00:00:18, Serial0/0/0R 192.168.4.0/24 120/1 via 192.168.2.1, 00:00:18, Serial0/0/0C 192.168.5.0/24 is directly connected, FastEthernet0/0三、测试客户机pc1测试客户机pc4如下所示:测试成功实验心得:配置动态路由RIP主要要掌握RIP路由协议配置方法,理解动态路由原理 过程有有恒心和细心 把一些细节的地方认真做好 尽量不要出错 最后要通过PING命令 检测实验是否成功!
限制150内