您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 基于Routersim的模拟路由器配置
1《计算机网络基础》课程报告基于Routersim的模拟路由器配置院系:班级:学号:姓名:教师:2012年11月24日2目录一实验名称··············································3二实验目的··············································3三实验要求··············································3四实验内容··············································34.1两台PC机用一台路由器相连·························34.2四台PC机用两台路由器相连··························6五结束语···············································113一实验名称基于Routersim的模拟路由器配置二实验目的熟练使用Routersim软件,对路由器进行简单配置,通过实验进一步巩固第四章IP编址和自治区域内部选路协议的相关知识,以及静态配置路由的过程。三实验要求(1)两台PC机通过一台路由器相连,配置IP地址、子网掩码和接口等相关信息,使用ping命令,检验网络是否连通。(2)两台PC机通过两台路由器相连,配置接口IP地址以及自治系统内部选路协议,使用ping命令,检验网络是否连通。四实验内容4.1两台PC机用一台路由器相连步骤:(1)利用Routersim中的NetworkDesigner画出模拟连接图。如下图所示。模拟连接图(2)利用Routersim中的Simulator对PC机和路由器进行配置。①路由器配置:由于路由器与pc机直接相连,只有两个网段,因此不需要配置路由协议。配置信息截图如下。具体命令解释:RouterenRouter#configt4Router(config)#interfacee0Router(config-if)#noshutdown%激活路由器接口e0%LINK-3-UPDOWN:InterfaceEthernet0,changedstatetoupRouter(config-if)#ipaddress160.10.1.1255.255.255.0%配置e0的IP地址和子网掩码Router(config-if)#exitRouter(config)#interfacee1Router(config-if)#noshutdown%激活路由器接口e1%LINK-3-UPDOWN:InterfaceEthernet1,changedstatetoupRouter(config-if)#ipaddress10.1.1.1255.255.255.0%配置e1的IP地址和子网掩码②PC1配置:配置PC1的IP地址、子网掩码和网关地址。配置信息截图如下。具体命令解释:C:winipcfg%配置PC1的IP地址,子网掩码及网关地址。将弹出上面的配置信息截图,输入相关信息,点击OK,完成配置操作C:ipconfig%通过ipconfig命令可以查看配置好的信息BosonDOS1.0IPConfigurationEthernetadapterLocalAreaConnection:Connection-specificDNSSuffix.:boson.comIPAddress..................:160.10.1.2%PC1的IP地址SubnetMask.................:255.255.255.0%子网掩码DefaultGateway..............:160.10.1.1%网关地址③PC2配置:配置PC2的IP地址、子网掩码和网关地址。配置信息截图如下。5(3)检验网络连通性①由PC1向PC2发送ping报文,Lost=0(0%loss),表明PC1到PC2通。②由PC2向PC1发送ping报文,Lost=0(0%loss),表明PC2到PC1通。4.2四台PC机用两台路由器相连6步骤:(1)利用Routersim中的NetworkDesigner画出模拟连接图。如下图所示。模拟连接图(2)利用Routersim中的Simulator对PC机和路由器进行IP地址、子网掩码和网关地址等相关信息的配置。具体的配置信息如下图所示。Router1Router2PC17PC2PC3PC4(3)基于静态协议配置路由器下面以Router1为例说明Router1静态配置时,需要做的是告诉Router1直接相连的网段是160.10.1.0和12.1.1.0,且Router1要到达网络159.12.1.0,需要经过直连的接口12.1.1.2的转发。8路由配置命令如下:Router#configtRouter(config)#iproute160.10.1.2255.255.255.0160.10.1.1Router(config)#iproute160.10.1.3255.255.255.0160.10.1.1Router(config)#iproute12.1.1.2255.255.255.012.1.1.1Router(config)#iproute159.12.1.2255.255.255.012.1.1.2Router(config)#iproute159.12.1.3255.255.255.012.1.1.2Router(config)#exit查看路由表信息:Router#showiprouteC160.10.1.0/24isdirectlyconnected,160.10.1.1%160.10.1.0网段与Router1的接口160.10.1.1直接相连C12.1.1.0/24isdirectlyconnected,12.1.1.1%12.1.1.0网段与Router1的接口12.1.1.1直接相连S159.12.1.0/24[1/0]via12.1.1.2%要到达网络159.12.1.0,需要经过直连的接口12.1.1.2路由转发(4)检测网络连通性%检测Router1和Router2的连通性,连通!Router#ping12.1.1.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto12.1.1.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5)round-tripmin/avg/max=1/2/4ms%检测Router1和PC1的连通性。连通!Router#ping160.10.1.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto160.10.1.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms%检测Router1和PC2的连通性。连通!Router#ping160.10.1.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto160.10.1.3,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms%检测Router1和PC3的连通性,连通!Router#ping159.12.1.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto159.12.1.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5)round-tripmin/avg/max=1/2/4ms9%检测Router1和PC4的连通性,连通!Router#ping159.12.1.3Typeescapesequencetoabort.Sending5,100-byteICMPEchosto159.12.1.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5)round-tripmin/avg/max=1/2/4ms%检测PC1与PC3的连通性,连通!C:ping159.12.1.2Pinging159.12.1.2with32bytesofdata:Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Pingstatisticsfor159.12.1.2:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=50ms,Maximum=60ms,Average=55ms%检测PC1与PC2的连通性,连通!C:ping160.10.1.3Pinging160.10.1.3with32bytesofdata:Replyfrom160.10.1.3:bytes=32time=60msTTL=241Replyfrom160.10.1.3:bytes=32time=60msTTL=241Replyfrom160.10.1.3:bytes=32time=60msTTL=241Replyfrom160.10.1.3:bytes=32time=60msTTL=241Replyfrom160.10.1.3:bytes=32time=60msTTL=241Pingstatisticsfor160.10.1.3:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=50ms,Maximum=60ms,Average=55ms%检测PC2与PC3的连通性,连通!C:ping159.12.1.2Pinging159.12.1.2with32bytesofdata:Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=241Replyfrom159.12.1.2:bytes=32time=60msTTL=24110Pingstatisticsfor159.12.1.2:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=50ms,Maximum=60ms,Average=55ms%检测PC2与PC4的连通性,连通!C:ping159.12.1.3Pinging159.12.1.3with32bytesofdata:Replyfrom159.12.1.3:bytes=32time=60msTTL=241Replyfrom159.12.1.3:bytes=32time=60msTTL=241Repl
本文标题:基于Routersim的模拟路由器配置
链接地址:https://www.777doc.com/doc-2571949 .html