实验六静态路由配置.docx
《实验六静态路由配置.docx》由会员分享,可在线阅读,更多相关《实验六静态路由配置.docx(8页珍藏版)》请在冰豆网上搜索。
![实验六静态路由配置.docx](https://file1.bdocx.com/fileroot1/2023-1/9/7c96f0e2-6e53-4daf-aa4b-83f1d494cbf2/7c96f0e2-6e53-4daf-aa4b-83f1d494cbf21.gif)
实验六静态路由配置
实验报告书
课程名称计算机网络技术与应用
实验题目实验六:
静态路由配置
专业班级2010级信息管理与信息系统2班
学号37号
姓名肖丹妮
指导教师赵圆圆老师
计算机科学与技术专业教研室
2011年11月8日
1、实验目的
掌握静态路由配置方法。
2、问题的描述(实验内容的分析、条件和约束)
(1)、硬件:
计算机两台,CISCO路由交换机两台(本书实验用CISCO3550两台,CISCO3550为三层交换机,支持路由功能),CISCO配置命令线缆一条,交叉网线一条,直连网线两条。
(2)、软件:
计算机中已安装好WindowsXP操作系统。
(3)、网络拓扑:
3、实验的设计(步骤、主要算法描述、模块的层次结构、数据输入、处理、输出、模块调用关系)
实验步骤:
router1的配置:
PressEntertoStart
Router>
Router>en
Router#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnamerouter1
router1(config)#interfacee0
router1(config-if)#ipaddress192.168.1.2255.255.255.0
router1(config-if)#noshut
%LINK-3-UPDOWN:
InterfaceEthernet0,changedstatetoup
router1(config-if)#interfaces0
router1(config-if)#ipaddress192.168.2.1255.255.255.0
router1(config-if)#clockrate6400//clockrate是dce设备给dte设备提供时钟频率的,需要在dce里面设置,而另外的一个路由器里面则不用设置
router1(config-if)#noshut
%LINK-3-UPDOWN:
InterfaceSerial0,changedstatetoup
router1(config-if)#end
%LINK-3-UPDOWN:
InterfaceSerial0,changedstatetodown
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial0,changedstatetodown
router1#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
router1(config)#iproute192.168.3.0255.255.255.0192.168.2.1//设定静态路由
router1(config)#iproute192.168.2.0255.255.255.0192.168.2.1
router1(config)#end
router1#copyrunningstartup
Destinationfilename[startup-config]?
Buildingconfiguration...
[OK]
%LINK-3-UPDOWN:
InterfaceSerial0,changedstatetoup
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerial0,changedstatetoup
router2的配置:
PressEntertoStart
Router>en
Router#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#interfacee0
Router(config-if)#end
Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnamerouter2
router2(config)#interfaces0
router2(config-if)#ipaddress192.168.2.2255.255.255.0
router2(config-if)#noshut
%LINK-3-UPDOWN:
InterfaceSerial0,changedstatetoup
router2(config-if)#interfaces0
router2(config-if)#interfacee0
router2(config-if)#ipaddress192.168.3.1255.255.255.0
router2(config-if)#noshut
%LINK-3-UPDOWN:
InterfaceEthernet0,changedstatetoup
router2(config-if)#end
router2#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
router2(config)#iproute192.168.1.0255.255.255.0192.168.2.2
router2(config)#iproute192.168.2.0255.255.255.0192.168.2.2
router2(config)#end
router2#copyrunningstartup
Destinationfilename[startup-config]?
Buildingconfiguration...
[OK]
router2#ping192.168.1.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms
router2#ping192.168.2.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.2.1,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms
router2#ping192.168.2.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.2.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms//路由器之间试ping了一下,可以ping通,接下来配pc
pc1的配置如下:
BosonBOSS5.0
Copyright1998-2003BosonSoftware,Inc.
Usethecommandhelptogetstarted
PressEntertobegin
C:
>ipconfig/ip192.168.1.1255.255.255.0//此时尚未指定网关
C:
>ping192.168.2.1
Pinging192.168.2.1with32bytesofdata:
Requesttimedout.
Requesttimedout.
Requesttimedout.
Requesttimedout.
Requesttimedout.
Pingstatisticsfor192.168.2.1:
Packets:
Sent=5,Received=0,Lost=5(100%loss),//未指定网关时不能ping通router1的s0,我理解为找不到出口,不知准确否
Approximateroundtriptimesinmilli-seconds:
Minimum=0ms,Maximum=0ms,Average=0ms
C:
>ipconfig/dg192.168.1.2//指定网关为与本机直连的router1的e0口
C:
>ping192.168.1.2
Pinging192.168.1.2with32bytesofdata:
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.1.2:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.2.1
Pinging192.168.2.1with32bytesofdata:
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.2.1:
Packets:
Sent=5,Received=5,Lost=0(0%loss),//指定网关后可以ping通s0口了
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.2.2
Pinging192.168.2.2with32bytesofdata:
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.2.2:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.3.1
Pinging192.168.3.1with32bytesofdata:
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.3.1:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.3.2
Pinging192.168.3.2with32bytesofdata:
Replyfrom192.168.3.2:
bytes=32time=60msTTL=241
Replyfrom192.168.3.2:
bytes=32time=60msTTL=241
Replyfrom192.168.3.2:
bytes=32time=60msTTL=241
Replyfrom192.168.3.2:
bytes=32time=60msTTL=241
Replyfrom192.168.3.2:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.3.2:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms//可以ping通任意一台设备的IP地址,实验成功
C:
>
pc2的配置如下:
BosonBOSS5.0
Copyright1998-2003BosonSoftware,Inc.
Usethecommandhelptogetstarted
PressEntertobegin
C:
>
C:
>ipconfig/ip192.168.3.2255.255.255.0
C:
>ipconfig/dg192.168.3.1//把IP和网关设好
C:
>ping192.168.1.1
Pinging192.168.1.1with32bytesofdata:
Replyfrom192.168.1.1:
bytes=32time=60msTTL=241
Replyfrom192.168.1.1:
bytes=32time=60msTTL=241
Replyfrom192.168.1.1:
bytes=32time=60msTTL=241
Replyfrom192.168.1.1:
bytes=32time=60msTTL=241
Replyfrom192.168.1.1:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.1.1:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.1.2
Pinging192.168.1.2with32bytesofdata:
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Replyfrom192.168.1.2:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.1.2:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.2.1
Pinging192.168.2.1with32bytesofdata:
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Replyfrom192.168.2.1:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.2.1:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.2.2
Pinging192.168.2.2with32bytesofdata:
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Replyfrom192.168.2.2:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.2.2:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms
C:
>ping192.168.3.1
Pinging192.168.3.1with32bytesofdata:
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Replyfrom192.168.3.1:
bytes=32time=60msTTL=241
Pingstatisticsfor192.168.3.1:
Packets:
Sent=5,Received=5,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=50ms,Maximum=60ms,Average=55ms//可以ping通任意一台设备的IP地址,实验成功
4、测试分析(测试用例、结果分析、问题和解决办法)
静态路由的特点
静态路由的IP环境最适合小型、单路径、静态IP网际网络,具体如下:
(1)小型网际网络的定义是2到10个网络;
(2)单路径表示网际网络上的任意两个终点之间只有一条路径用于传送数据包;
(3)静态表示网际网络的拓扑结构不随时间的变化而更改。
适合使用静态路由的环境包括:
(1)小公司;
(2)家庭办公室IP网际网络;
(3)使用单个网络的分支机构。
5、总结(改进设想、经验体会)
做实验时,一定要亲力亲为,务必要将每个步骤,每个细节弄清楚,弄明白,实验后,还要复习,思考,这样,你的印象才深刻,记得才牢固,否则,过后不久你就会忘得一干二净,这还不如不做.做实验时,老师还会根据自己的亲身体会,将一些课本上没有的知识教给我们,拓宽我们的眼界,使我们认识到这门课程在生活中的应用是那么的广泛.
附录:
程序代码(或其它材料)
成绩评定
成绩教师签字