静态路由实验题

上传人:汽*** 文档编号:455421856 上传时间:2023-01-28 格式:DOCX 页数:5 大小:50.56KB
返回 下载 相关 举报
静态路由实验题_第1页
第1页 / 共5页
静态路由实验题_第2页
第2页 / 共5页
静态路由实验题_第3页
第3页 / 共5页
静态路由实验题_第4页
第4页 / 共5页
静态路由实验题_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《静态路由实验题》由会员分享,可在线阅读,更多相关《静态路由实验题(5页珍藏版)》请在金锄头文库上搜索。

1、静态路由实验题实验一:配置实现全网互通配置静态路由实现全网互通。三台路由器R0 R1 R2两两互连,每台路由器上都配置了 loopback地址模拟 网络环境10. 1/-24Loopback 0 192. IBB. 10. 0/241.2/2419. 16S. 1.0/2419Z. 160.3. 0/24192: IBS. 2. 2/24loopback 0 19. 166. 20.0/420.1/241 oopb黑羁避om需求描述: 需要在三台路由器上配置静态路由,以实现各网段之间的互通在R0上路由配置RouterenRouter#conf tRouter(config)#inter fa0

2、/0Rou ter(config -if )#ip address 192.168. 1.2 255.255.255.0Router(config-if)#no shutRouter(config-if)#inter fa0/1Router(config-if)#ip address 192.168. 2.1 255.255.255.0Router(config-if)#no shutRouter(config)#inter loopback 0Rou ter(config -if )#ip address 192.168. 10.1 255.255.255.0Router(config-if

3、)#no shutRouter(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.1 Router(config)#ip route 192.168.20.0 255.255.255.0 192.168.1.1Router(config)#ip route 192.168.30.0 255.255.255.0 192.168.2.2 在R1上路由配置RouterenRouter#conf tRouter(config)#inter fa0/0Rout er(config-if)#ip address 192.168.1.1 255.255

4、.255.0Router(config-if)#no shutRouter(config-if)#inter fa0/1Router(config-if)#ip address 192.168. 3.1 255.255.255.0Router(config-if)#no shutRouter(config)#inter loopback 0Router(config-if)#ip address 192.168. 20.1 255.255.255.0Router(config-if)#no shutRouter(config)#ip route 192.168. 10.0 255.255.25

5、5.0 192.168.1.2Router(config)#ip route 192.168.30.0 255.255.255.0 192.168.3.2Rou ter(config)#ip rou te 192.168.2.0 255.255.255.0 192.168. 1.2Router(config)#do show ip rouC 192.168.1.0/24 is direc tly connec ted, Fas tEt herne t0/0S 192.168.2.0/24 1/0 via 192.168. 1.2C 192.168.3.0/24 is direc tly con

6、nec ted. Fas tEt herne t0/1S 192.168. 10.0/24 1/0 via 192.168. 1.2C 192.168.20.0/24 is direc tly connec ted. Loopback。S 192.168. 30.0/24 1/0 via 192.168. 3.2在R2路由上配置RouterenRouter#conf tRouter(config)#inter fa0/0Router(config-if)#ip address 192.168. 2.2 255.255.255.0Router(config-if)#no shutRouter(c

7、onfig-if)#inter fa0/1Router(config-if)#ip address 192.168. 3.2 255.255.255.0Router(config-if)#no shutRouter(config)#inter loopback 0Router(config-if)#ip address 192.168. 30.1 255.255.255.0Router(config-if)#no shutRouter(config)#ip route 192.168.1.0 255.255.255.0 192.168. 3.1Router(config)#ip route 1

8、92.168. 10.0 255.255.255.0 192.168. 2.1Router(config)#ip route 192.168.20.0 255.255.255.0 192.168. 3.1Router(config)#do show ip rouS 192.168.1.0/24 1/0 via 192.168. 3.1C192.168.2.0/24 is direc tly connec ted,Fas tEt herne t0/0C192.168.3.0/24 is direc tly connec ted.Fas tEt herne t0/1S192.168. 10.0/2

9、4 1/0 via 192.168. 2.1S192.168. 20.0/24 1/0 via 192.168. 3.1C 192.168.30.0/24 is direc tly connec ted. Loopback。最后测试连通性Rou ter#ping 192.168.10.1Sending 5, 100-by te ICMP Echos to 192.168.10.1, ti meo ut is 2 seconds:Success rate is 80 percent (4/5), round-trip min/avg/max = 31/31/32 msRou ter#ping 1

10、92.168.30.1Type escape sequence to abort.Sending 5, 100-by te ICMP Echos to 192.168.30.1, ti meo ut is 2 seconds:Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms 其他路由也能ping通实验二:配置静态实现路由选路Routers在R2上设置Rou ter(config -if )#ip address 192.168. 10.1 255.255.255.0Routerl oopback 0

11、192.SO.Router(config-if)#no shut把R2和R1静态路由192.168.10.0那一段 去掉Rou ter(config)#no ip rou te 192.168. 10.0 255.255.255.0 192.168.1.2Rou ter(config)#no ip rou te 192.168. 10.0 255.255.255.0 192.168.2.1 需求描述:需要实现当192.168. 20.0/24访问192.168.30.0/24时,数据R1到R2,而当192.168.20./24访问192.168.10.0/24时,数据从R1经过R0在到R2.返

12、回路由都从R2到R11: 在 R1配置到192.168.30.0/24的静态路由S 192.168. 30.0/24 1/0 via 192.168.3.2 这里我已经配好了。Router(config)#ip route 192.168. 30.0 255.255.255.0 192.168. 3.22: 在 R1上配置到192.168. 10.0/24的静态路由,在R0上夜应该配置到192.168. 10.0/24的静态路由Router(config)#ip route 192.168. 10.0 255.255.255.0 192.168. 3.2RO配置静态路由Rou ter(conf

13、ig)#ip rou te 192.168.10.0 255.255.255.0 192.168.2.2最后在R2配置回程的静态路由在R1和R0上配置自己不知道的网段。实验三: 三台路由器R1,R2,R3分别直连三个网络1.0.0.0/8 2.0.0.0/8 3.0.0.0/8, 且每台路由器上都配置了默认路由,指向顺时针方向的相邻路由器(R1-R3 R2-R1 R3-R2loopback 0 1. 0.0. 0/91. 0.0. 17819?. IBS. 1. 0/24192. 168.?. 0/$4192. l&S:?. 2/242-811192. lBS.;0/24RouterLooback 2. 0. 0. 0/82.0. 0. 1/S2311Ro.uter3: I,lcIcom

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 机械/制造/汽车 > 综合/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号