网络构建实验七-2静态路由配置.doc_第1页
网络构建实验七-2静态路由配置.doc_第2页
网络构建实验七-2静态路由配置.doc_第3页
网络构建实验七-2静态路由配置.doc_第4页
网络构建实验七-2静态路由配置.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

计算机网络实验报告实验组号: 112 课程: 班级: 实验名称:实验六 路由器静态路由的配置 姓 名_ 实 验 日 期: 学 号_ 实验报告日期: 同组人姓名_ 报 告 退 发: ( 订正 、 重做 )同组人学号_ _ 教 师 审 批 签 字:通过 不通过 实验六 路由器静态路由的配置一、:实验名称:路由器的静态路由二、实验目的:掌握路由器的静态路由的基本配置方法。背景描述:设校园网通过1台路由器连接到校园外的另一台路由器上,现要在路由器上做适当的配置,实现校园网内部主机与校园网外部主机的相互通讯。三、实验设备:每一实验小组提供如下实验设备 1、 实验台设备:计算机两台PC1和PC2(或者PC4和PC5)2、 实验机柜设备: R1762路由器两台 计算机两台3、 实验工具及附件:网线测试仪一台 跳线若干 四、实验内容及技术原理:路由器属于网络层设备,能够根据IP包头的信息,选择一条最佳路径,将数据包转发出去,实现不同网段的主机之间的互相访问。路由器是根据路由表进行选路和转发的。而路由表里就是由一条条的路由信息组成,路由表的产生方式一般有3种:直连路由:给路由器接口配置一个地址,路由器自动产生本接口IP所在网段的路由信息。静态路由:在拓扑结构简单的网络中,管理员通过手工的方式配置本路由器未知网段的路由信息,从而实现不同网络段之间的连接。动态路由:路由器通过路由协议学习自动产生的路由信息。五、实验注意事项及要求: 1、 实验中严禁在设备端口上随意插拔线缆,如果确实需要应向老师说明征求许可。2、 以电子文档形式提交实验报告。3、 本次实验结果保留:是 否 4、 将路由器的配置文档、验证计算机的TCP/IP配置信息保存。5、 将路由器的配置信息以图片的形式保存到实验报告中。六、实验用拓扑图F1/0NIC2S1/2S1/2R1762-7-1(Ra)DCEF1/017216.1.0/2417216.2.0/2417216.3.0/24R1762-7-2(Rb)DTE.1.2NIC2.2.1.1.2注意:普通路由器和主机直接连接时,需要使用交叉线,在R1762的以太网接口支持MDI/MDIX,使用直连线也可以连通。七、实验具体步骤及实验结果记录:1、 按照实验拓扑图完成网络连接2、路由器的配置: 1)、在路由器Ra上配置接口的IP地址和串口上的时钟频率 RAenable 14 RA #configure terminal RA (config)# RA (config)# interface fastethernet 1/0 RA (config-if)# ip address 172.16.1.1 255.255.255.0 RA (config-if)# no shutdown RA (config-if)# exit RA (config)# interface serial 1/2 RA (config-if)# ip address 172.16.2.1 255.255.255.0 RA (config-if)# clock rate 64000 RA (config-if)# no shutdown验证路由器接口的配置 RA #show ip interface brief ra#show ip interface briefInterface IP-Address(Pri) OK? Statusserial 1/2 172.16.2.1/24 YES UPserial 1/3 no address YES DOWNFastEthernet 1/0 172.16.1.1/24 YES DOWNFastEthernet 1/1 no address YES DOWN 注意:查看接口状态 RA #show interface serial 1/2 ra#show interface serial 1/2Index(dec):3 (hex):3serial 1/2 is UP , line protocol is UPHardware is PQ2 SCC HDLC CONTROLLER serialInterface address is: 172.16.2.1/24 MTU 1500 bytes, BW 512 Kbit Encapsulation protocol is HDLC, loopback not set Keepalive interval is 10 sec , set Carrier delay is 2 sec RXload is 1 ,Txload is 1 Queueing strategy: WFQ 1 carrier transitions V35 DCE cable DCD=up DSR=up DTR=up RTS=up CTS=up 5 minutes input rate 17 bits/sec, 0 packets/sec 5 minutes output rate 17 bits/sec, 0 packets/sec 225 packets input, 4950 bytes, 0 no buffer, 0 dropped Received 225 broadcasts, 0 runts, 0 giants 1 input errors, 0 CRC, 1 frame, 0 overrun, 0 abort 225 packets output, 4950 bytes, 0 underruns , 0 dropped 0 output errors, 0 collisions, 2 interface resets)在路由器Ra 上配置静态路有 RA (config)#ip route 172.16.3.0 255.255.255.0 172.16.2.2或者: RA (config)#ip route 172.16.3.0 255.255.255.0 serial 1/2验证测试:验证ra 上的静态路有配置 RA #show ip route ra#show ip routeCodes: C - connected, S - static, R - RIP B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate defaultGateway of last resort is no setC 172.16.2.0/24 is directly connected, serial 1/2C 172.16.2.1/32 is local host.S 172.16.3.0/24 1/0 via 172.16.2.2记录实验结果:)、在路由器Rb上配置接口的IP地址 Rbenable Rb # configure terminal Rb (config)# interface fastethernet 1/0 Rb (config-if)# ip address 172.16.3.1 255.255.255.0 Rb (config-if)# no shutdown Rb (config-if)# exit Rb (config)# interface serial 1/2 Rb (config-if)# ip address 172.16.2.2 255.255.255.0 Rb (config-if)# no shutdown验证路由器接口的配置 Rb #show ip interface brief R1762-1-2#show ip interface briefInterface IP-Address(Pri) OK? Statusserial 1/2 172.16.2.2/24 YES UPserial 1/3 no address YES DOWNFastEthernet 1/0 172.16.3.1/24 YES DOWNFastEthernet 1/1 no address YES DOWNR1762-1-2# RA #show interface serial 1/2 Index(dec):3 (hex):3serial 1/2 is UP , line protocol is UPHardware is PQ2 SCC HDLC CONTROLLER serialInterface address is: 172.16.2.2/24 MTU 1500 bytes, BW 2000 Kbit Encapsulation protocol is HDLC, loopback not set Keepalive interval is 10 sec , set Carrier delay is 2 sec RXload is 1 ,Txload is 1 Queueing strategy: WFQ 1 carrier transitions V35 DTE cable DCD=up DSR=up DTR=up RTS=up CTS=up 5 minutes input rate 17 bits/sec, 0 packets/sec 5 minutes output rate 17 bits/sec, 0 packets/sec 263 packets input, 5786 bytes, 0 no buffer, 0 dropped Received 263 broadcasts, 0 runts, 0 giants 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort 263 packets output, 5786 bytes, 0 underruns , 0 dropped 0 output errors, 0 collisions, 1 interface resetsR1762-1-2#记录实验结果:4) 在路由器Rb 上配置静态路由 a) Rb (config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1或者:b) Rb(config)#ip route 172.16.1.0 255.255.255.0 serial 1/2验证测试:验证rb 上的静态路有配置 Rb #show ip route R1762-1-2#sho ip routeCodes: C - connected, S - static, R - RIP B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate defaultGateway of last resort is no setS 172.16.1.0/24 1/0 via 172.16.2.1C 172.16.2.0/24 is directly connected, serial 1/2C 172.16.2.2/32 is local host.R1762-1-2#记录实验结果:5) 测试网络的互联互通性 从PC1 PING pc2 从PC2 ping pc1记录实验结果:6) 使用NO命令在路由器的全局配置模式下删除非直连网段的静态路由配置,改用默认路由配置。a) Ra (config)#ip route 0.0.0.0 0.0.0.0 172.16.2.2b) Rb (config)#ip route 0.0.0.0 0.0.0.0 172.16.2.1 Rb #show ip route 记录实

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论