《网络配置:综合路由实验1——考察单臂路由、静态路由知识点.docx》由会员分享,可在线阅读,更多相关《网络配置:综合路由实验1——考察单臂路由、静态路由知识点.docx(20页珍藏版)》请在课桌文档上搜索。
1、网络配置:综合路由实验1考察单臂路由、静态路由知识点2009年Il月Q9日星期一15:09实验环境:某一公司内有精存部和财务部两个部分,分处不同虚拟局域网,现要求实现通信,通过单臂路由完成销售部、财务部两部门通信问题:公司通过一条DDN专线专线与ISP通信,现在要求PCl、PC2与子公司的服务器PC3和服务器PC4实现通信。在服务器PC3和服务器PC4上配置DNS、HTTP服务器。(Pc4承担DNS.HTTP服务器,PC3只承担HTTP服务器。)现在要求在RI、R2、R3和R4上实现价态路由。公司内部交换机SW2Hl遭VLAN,外部网络的交换机不做任何配置,只承担级联作用。网络拓扑:实小脸一、
2、主机及服务器IP地址、子网掩码、默认网关、DNS服务器PCl192.168.1.2/24255.255.255.0192.168.1.1192.168.7.2PC2192.168.2.2/24255.255.255.0192.168.2.1192.168.7.2服务器PC3192.168.5.2/24192.168.5.1服务器PC3的HTTP服务的Index.html文件1.5倍:首行缩进:2字符:题”字体:3,黑体,单.义行即:章片,体:4号黑体,单一行即。fontSiZe=+2color=*blue*X?iscoPacketTracerMYhelIOtoyouWeIcometoCisco
3、PacketTracer,thebestthingsincePacketTracer4.x.QuickLinks:Asmal1pageCopyrightsImagepageImage服务器PC4192.168.7.2/24255.255.255.O服务器PC4的HrrP服务的Index,html文件fontSiZe=+2color=*blue*X?iscoPacketTracerYourhellotoMeWelcometoCiscoPacketTracer,thebestthingsincePacketTracer4.x.QuickLinks:Asmal1pagcCopyrights1mage
4、pageInage服务器PC4的DNS服务配置记录E.123.OoMRecord192.168.7.2w”.abc.cuARecord192.168.5.2二、公司内SI2配置SW2ttshowrnning-configBuiIdingconfiguration.Currentconfiguration:1021bytesIversion12.1noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicePaSSWOrd-encryptionIhostnameSW2interfaceFastEth
5、crnctO/4interfaceFaStEtherneI0/5interfaceEastEthernetO/6interfaceFastEthernetO/7interfaceEastElhernetO/8interfaceFaStEthernet0/9interfaceFastEthernetOZlOinterfaceFastEthcrnetO/!1interfaceFaSCElhernet012interfaceFastEthcrnctO/13interfaceFaSIEthernetO/14interfaceEastEthernet15interfaceFastEthernet16in
6、terfaceFastEthernetO/17interfaceFaStEthernelO/18interfaceFastEthernet19interfaceFastEthernetO2OinterfaceFaStElherneto/21interfaceFastEthernetO/22!interfaceFastEthernetO/23IinterfaceFastEthernctO/24IinterfaceVlanlnoipaddressshutdownIIlinecon0I1inevty04loginlinevty515loginIIend三、Rl配置Klttshowrunning-co
7、nfigBuiIdingconfiguration.Currentconfiguration:830bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryptionIhostnameRlinterfaceFastEthernetO/OnoipaddressduplexautospeedautointerfaceFastEthernet1/0noipaddressduplexautospeedautoshutdowninterfac
8、eSeria13/0noipaddressshutdownIinterfaceFastEthernet40noipaddressshutdownIinterfaceFastEthernet50noipaddressshutdownipclassless1inecon0linevty04loginend四、R2的配置R2#ShOWrunning-configBuildingconfiguration.Currentconfiguration:852bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebug
9、datetimemsecnoservicepassword-encryptionIhostnameR2duplexautospeedautoduplexautospeedautointerfaceSerial30noipaddressshutdownIinterfaceFaStEthernet4/0noipaddressshutdownIinterfaceFastEthernetSZOnoipaddressshutdown!ipclasslesslinecon0linevty04loginend四、R3的配JER3#ShOWrunning-configBuiIdingconfiguration
10、.Currentconfiguration:869bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryption!hostnameR3duplexautospeedautoduplexautospeedautointerfaceSerial20noipaddressshutdownIinterfaceSerial30noipaddressshutdownIinterfaceFaStEthernOt4/0noipaddresssh
11、utdownIinterfaceFastEthernetSZOnoipaddressshutdownIipclassless1inecon01inevty04loginend五、R4的配置R4#ShOWrunning-configBuildingconfiguration.Currentconfiguration:869bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryptionhostnameR4duplexautospee
12、dautoduplexautospeedautointerfaceSerial20noipaddressshutdown1.5倍:首行缩进:2字符:题”字体:3,黑体,单打行即:章行体:4号黑体.单倍行距。interfaceScria13/0noipaddressshutdown!interfaceFastEthernetVOnoipaddressshutdownIinterfaceFaStEthernet5/0noipaddressshutdownipclassless1inecon0linevty04loginiIiend六、网络测试PCl与PC2互通:PCl可以访问PC3、PC4的HTT
13、P页面:PC2可以访问PC3、PC4的HTTP页面:(EM心Qn可访问PC3服务器;2Xx三J访问PC4服务器)(PCKPC2之所以可以访问HTTP服务器,因为PC4在这里承担DNS服务器)PaCketTraCer5.2实疆文件下载网络配置:综合路由实验1考察单臂路由、静态路由知识点2009年Il月Q9日星期一15:09实验环境:某一公司内有销售部和财务部两个部分,分处不同虚拟局域网,现要求实现通信,通过单臂路由完成销售部、财务部两部门通信问题:公司通过一条DDN专线专线与ISP通信,现在要求PCl、PC2与子公司的服务器PC3和服务器PC4实现通信。在服务器PC3和服务器PC4上配置DNS、
14、HTTP服务器。(Pc4承担DNS、HTTP服务器,PC3只承担HTTP服务器。)现在要求在RI、R2、R3和R4上实现价态路由。公司内部交换机SW2Hl遭VLAN,外部网络的交换机不做任何配置,只承担级联作用。网络拓扑:实小脸一、主机及服务器IP地址、子网掩码、默认网关、DNS服务器PCl192.168.1.2/24255.255.255.0192.168.1.1192.168.7.2PC2192.168.2.2/24255.255.255.0192.168.2.1192.168.7.2服务器PC3192.168.5.2/24192.168.5.1服务器PC3的HTTP服务的Index.ht
15、ml文件1.5倍:首行缩进:2字符:题”字体:3,黑体,单.义行即:章片,体:4号黑体,单一行即。fontSiZe=+2color=*blue*X?iscoPacketTracerMYhelIOtoyouWeIcometoCiscoPacketTracer,thebestthingsincePacketTracer4.x.QuickLinks:Asmal1pageCopyrightsImagepageImage服务器PC4192.168.7.2/24255.255.255.O服务器PC4的HrrP服务的Index,html文件fontSiZe=+2color=*blue*X?iscoPacke
16、tTracerYourhellotoMeWelcometoCiscoPacketTracer,thebestthingsincePacketTracer4.x.QuickLinks:Asmal1pagcCopyrights1magepageInage服务器PC4的DNS服务配置记录E.123.OoMRecord192.168.7.2w”.abc.cuARecord192.168.5.2二、公司内SI2配置SW2ttshowrnning-configBuiIdingconfiguration.Currentconfiguration:1021bytesIversion12.1noservicet
17、imestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicePaSSWOrd-encryptionIhostnameSW2interfaceFastEthcrnctO/4interfaceFaStEtherneI0/5interfaceEastEthernetO/6interfaceFastEthernetO/7interfaceEastElhernetO/8interfaceFaStEthernet0/9interfaceFastEthernetOZlOinterfaceFastEthcrnetO/!1interf
18、aceFaSCElhernet012interfaceFastEthcrnctO/13interfaceFaSIEthernetO/14interfaceEastEthernet15interfaceFastEthernet16interfaceFastEthernetO/17interfaceFaStEthernelO/18interfaceFastEthernet19interfaceFastEthernetO2OinterfaceFaStEtherneto/21interfaceFastEthernetO/22!interfaceFastEthernetO/23IinterfaceFas
19、tEthernctO/24IinterfaceVlanlnoipaddressshutdownIIlinecon0I1inevty04loginlinevty515loginIIend三、Rl配置Klttshowrunning-configBuiIdingconfiguration.Currentconfiguration:830bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryptionIhostnameRlinterfac
20、eFastEthernetO/OnoipaddressduplexautospeedautointerfaceFastEthernet1/0noipaddressduplexautospeedautoshutdowninterfaceSeria13/0noipaddressshutdownIinterfaceFastEthernet40noipaddressshutdownIinterfaceFastEthernet50noipaddressshutdownipclassless1inecon0linevty04loginend四、R2的配置R2#ShOWrunning-configBuild
21、ingconfiguration.Currentconfiguration:852bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryptionIhostnameR2duplexautospeedautoduplexautospeedautointerfaceSerial30noipaddressshutdownIinterfaceFaStEthernet4/0noipaddressshutdownIinterfaceFastE
22、thernetSZOnoipaddressshutdown!ipclasslesslinecon0linevty04loginend四、R3的配JER3#ShOWrunning-configBuiIdingconfiguration.Currentconfiguration:869bytesIversion12.2noservicetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryption!hostnameR3duplexautospeedautoduplexautospee
23、dautointerfaceSerial20noipaddressshutdownIinterfaceSerial30noipaddressshutdownIinterfaceFaStEthernOt4/0noipaddressshutdownIinterfaceFastEthernetSZOnoipaddressshutdownIipclassless1inecon01inevty04loginend五、R4的配置R4#ShOWrunning-configBuildingconfiguration.Currentconfiguration:869bytesIversion12.2noserv
24、icetimestampslogdatetimemsecnoservicetimestampsdebugdatetimemsecnoservicepassword-encryptionhostnameR4duplexautospeedautoduplexautospeedautointerfaceSerial20noipaddressshutdown1.5倍:首行缩进:2字符:题”字体:3,黑体,单打行即:章行体:4号黑体.单倍行距。interfaceScria13/0noipaddressshutdown!interfaceFastEthernetVOnoipaddressshutdownI
25、interfaceFaStEthernet5/0noipaddressshutdownipclassless1inecon0linevty04loginiIiend六、网络测试PCl与PC2互通:PCl可以访问PC3、PC4的HTTP页面:PC2可以访问PC3、PC4的HTTP页面:(EM心Qn可访问PC3服务器;2Xx三J访问PC4服务器)(PCKPC2之所以可以访问HTTP服务器,因为PC4在这里承担DNS服务器)PaCketTraCer5.2实疆文件下载网络配置:锐捷、华为静态路由实验(D2009年U月09日星期一11:23【实训目的】(1)熟悉路由器的基本配置:(2)掌握静态路由的配置
26、方法和技巧;(3)掌握通过静态路由方式实现网络的连通性:(4)熟悉广域网线缆的连接方式;【实训技术原理】路由器属于网路层设备,能够根据IP包头的信息,选择条最佳路径,将数据包转发出去。实现不同网段的主机之间的互相访问。路由器是根据路由表进行选路和转发的。而路由表里就是由一条条路由信息组成。【实训背景描述】学校有新旧两个校区,每个校区是一个独立的局域网,为了使新旧校区能够正常相互通讯,共享资源。每个校区出口利用一台路由器进行连接,两台路由器间学校申请了一条2M的DDN专线进行相连,要求你做适当配置实现两个校区间的正常相互访问。【实训设备】R1700(2台),S2126(两台),PC(2台)、直连
27、线(4条)、V.35线(1条)【实训内容】(1)在路由器RhR2上配置接口的TP和Rl串口上的时钟频率;(2)查看路由器生成的直连路由;(3)在路由器Rl、R2上配置静态路由:(4)验证RI、R2上的静态路由配置:(5)将PCI、PC2主机默认网关分别设置为与路由器接口Fl/0IP地址。(6)PCI、PC2主机之间可以互相通信:【实训拓扑图】【实训步骤】(1)配置主机IP地址、默认网关。PC1:172.16.1.2/24172.16.1.1PC2:172.16.3.2/24172.16.3.1(2)登陆路由器Rl上配置以太口、同步串口的IP地址Routerttconfigureterminal
28、Router(config)Jtinterfacefastethernet1/0Router(config-if)ttipaddress172.16.1.1255.255.255.0Router(config-if)#noshutdownRouter(config)#interfaceserial1/2Router(config-if)#ipaddress172.16.2.1255.255.255.0Router(config-if)#clockrate64000Router(config-if)ftnoshutdown路由器R2配置以太口、同步串口的IP地址:Router(config)in
29、terfacefastethernet1/0Router(config-if)ttipaddress172.16.3.1255.255.255.0Router(config-if)noshutdownRouter(config)#interfaceserial1/2Router(configif)paddress172.16.2.2255.255.255.0Router(config-if)#noshutdown(R2作为DTE一端就不用再配置时钟频率)(3)在路由器RI、R2上配置静态路由Rl路由器配置:以下2条任选其一:Router(config)proute172.16.3.0255.2
30、55.255.0172.16.2.2!iproute目的网络子网掩码下一条路由器直连接口地址Router(config)#iproute172.16.3.0255.255.255.0Serial1/2!iproute目的网络子网掩码本路由器发送接口R2路由器配置同Rl配置:Router(config)#iproute172.16.1.0255.255.255.0172.16.2.1!下一跳路由器TP地址Router(config)#iproute172.16.1.0255.255.255.0serial1/2!本路由器发送接口【实训测试】(I)用网线将计算机和路由器的以太口相连,计算机的默认网
31、关分别设为路由器接口Fl/0IP地址(2)在计算机上ping默认网关地址(3)ping通后,ping对方路由器及主机地址;(4)分别在Rl和R2系统视图下执行showiproute查看路由表,注意观察静态路由内容。【实验问题】(1)路由表中路由是怎么来的?(2)为什么要配置时钟频率?(3)在某些情况下,例如上述拓扑图,在写静态路由时候可以写成默认路由形式,那么默认路由改如何写呢?华为设备配置命令:【实训步骤】(1)配置主机IP地址、默认网关。PC1:172.16.1.2/24172.16.1.1PC2:172.16.3.2/24172.16.3.1(2)登陆路由器RkR2上配置以太口的IP地址
32、Rl的配置:Routerlinterfaceethe,net0/0Router-Ethernet0/0ipaddress172.16.1.1255.255.255.0Router-Ethernet00quit路由器R2配置:Routerinterfaceethernet0/0Router-EthernetO/Oipaddress172.16.3.1255.255.255.0Router-EthernetO/0(3)登录路由器RkR2上配置串口的IP地址Rl的配置:Router-EthernetO/Ointerfaceserial1/0Router-SeriallZOlipaddress172.
33、16.2.1255.255.255.0Router-Serial1/0undoshutdownR2的配置:Router-EthernetO/Ointerfaceserial1/0Router-SeriallZOlipaddress172.16.2.2255.255.255.0Router-Serial1/0undoshutdown(作此实验,v35线不区分DCE和DTE端,各位同学可以先了解一下DCE和DTE端分别指什么?有什么用?)(4)在路由器RUR2上配置静态路由Rl配置:Routeriproute-static172.16.3.0255.255.255.0172.16.2.2(下一跳路
34、由器接口IP地址)或Serial1/0(本路由器下一跳接口)R2配置:Routerliproute-static172.16.1.0255.255.255.0172.16.2.1(下一跳路由器接口IP地址)或SeriaI1/0(本路由器下一跳接口)【实训测试】(1)用网线将计算机和路由器的以太口相连,计算机的默认网关分别设为路由器接口Fl0IPWll:(2)在计算机上Ping默认网关地址(3)ping通后,ping对方路由器及主机地址:(4)分别在Rl和R2系统视图下执行disiprouting-table查看路由表,注意观察静态路由内容。packettracer实验文件下就此文件为packettracer5.2试验文件,5.O则打不开。