计算机网络原理实验【静态路由与RIP路由】.doc_第1页
计算机网络原理实验【静态路由与RIP路由】.doc_第2页
计算机网络原理实验【静态路由与RIP路由】.doc_第3页
计算机网络原理实验【静态路由与RIP路由】.doc_第4页
计算机网络原理实验【静态路由与RIP路由】.doc_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

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

文档简介

实验 4 报告学号姓名课堂号01实验日期实验名称静态路由与RIP路由实验用时同组人指导教师一、实验目的通过实验理解并掌握路由器的原理及配置方法,理解并掌握查看路由器系统及配置信息;掌握静态路由方式实现网络的连通性。二、实验要求1通过实验理解并掌握路由器的原理及配置方法,2理解并掌握查看路由器系统及配置信息;3掌握静态路由方式实现网络的连通性。4. 掌握RIP路由方式实现网络的连通性。三、实验环境(设备) 实验设备 路由器2台,PC2台,直连线1根,交叉线1根,V.35 DCE/DTE电缆1根192.16.1.2/24(DCE)DTE192.16.3.1/24192.16.2.1/24192.16.2.2/24192.16.1.1/24S1S0F0F0R2624-1R2620-2PC2PC1192.16.3.2/24(一)静态路由1、单击一个路由设备如:R2624-1 (4口) R2620-2(1口)用ctrl+C中断要你输入的内容,进入Red-Giant2、路由器R2624-1配置(1)配置2624-1的接口 f0Red-Giant (config)#hostname R2624-1R2624-1(config)#interface fastethernet ? FastEthernet interface numberR2624-1(config)#interface fastethernet 0R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0R2624-1(config-if)#no shutdown(2)配置2624-1的串口s1R2624-1(config)#interface serial 1R2624-1(config-if)#ip address 192.16.2.1 255.255.255.0R2624-1(config-if)#clock rate 64000(配置时钟,注意是DCE端)R2624-1(config-if)#no shutdown(3)验证路由器接口及串口配置:R2624-1#Show ip interface briefR2624-1#show interface serial 1(4)配置静态路由R2624-1(config)#ip route 192.16.1.0 255.255.255.0 serial 1(或者用下一跳IP:192.16.2.2)R2624-1#show ip route(查看路由)3、路由器2620-2配置Red-GiantenableRed-Giant#conf terEnter configuration commands, one per line. End with CNTL/Z.Red-Giant (config)#hostname R2620-2R2620-2(config)#(1)查看路由器接口状态R2620-2#show ip int brief(2)配置接口f0R2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-2(config)#interface fa 0R2620-2(config-if)#ip address 172.16.3.1 255.255.255.0R2620-2(config-if)#no shutdown(3)配置串口s0R2620-2(config)#inter serial 0R2620-2(config-if)#ip address 172.16.2.2 255.255.255.0R2620-2(config-if)#no shutdown(4)验证接口、串口配置R2620-2#Show ip interface briefR2620-2#show interface serial 0(5)静态配置R2620-2(config)#ip route 172.16.4.0 255.255.255.0 serial 0(建议使用)R2620-2#show ip route4测试 断开防火墙 断开第1块网卡连接 将PC1的内网卡 IP设置成192.16.3.2,掩码255.255.255.0 网关192.16.3.1 将PC2的内网卡 IP设置成192.16.1.2,掩码255.255.255.0网关192.16.1.1(请注意:R2620和主机之间的连接需要使用交叉线) 测试互通性 PC1 ping PC2 PC2 ping PC1(二)动态路由RIP1、路由器R2624-1配置(1)配置2624-1的接口 f0Red-Giant (config)#hostname R2624-1R2624-1(config)#interface fastethernet ? FastEthernet interface numberR2624-1(config)#interface fastethernet 0R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0R2624-1(config-if)#no shutdown(2)配置2624-1的串口s1R2624-1(config)#interface serial 1R2624-1(config-if)#ip address 192.16.2.1 255.255.255.0R2624-1(config-if)#clock rate 64000(配置时钟,注意是DCE端)R2624-1(config-if)#no shutdown(3)验证路由器接口及串口配置:R2624-1#Show ip interface briefR2624-1#show interface serial 1(4)配置RIP路由R2624-1(config)#router ripR2624-1(config-rip)#network 192.16.3.0 R2624-1(config-rip)#network 192.16.2.0 R2624-1#show ip route(查看路由)3、路由器2620-2配置Red-GiantenableRed-Giant#conf terEnter configuration commands, one per line. End with CNTL/Z.Red-Giant (config)#hostname R2620-2R2620-2(config)#(1)查看路由器接口状态R2620-2#show ip int brief(2)配置接口f0R2620-2#conf terEnter configuration commands, one per line. End with CNTL/Z.R2620-2(config)#interface fa 0R2620-2(config-if)#ip address 192.16.1.1 255.255.255.0R2620-2(config-if)#no shutdown(3)配置串口s0R2620-2(config)#inter serial 0R2620-2(config-if)#ip address 192.16.2.2 255.255.255.0R2620-2(config-if)#no shutdown(4)验证接口、串口配置R2620-2#Show ip interface briefR2620-2#show interface serial 0(5)RIP路由配置R2620-2(config)#router ripR2620-2(config-rip)#network 192.16.1.0R2620-2(config-rip)#network 192.16.2.0附录:可使用的验证命令 1.show run 2.show ip interface brife 3.show ip route 4.ping五、实验记录静态路由实验对R2624-1的配置如下:Red-Giantenable Red-Giant#conf ter Enter configuration commands, one per line. End with CNTL/Z. Red-Giant(config)#hostname R2624-1 R2624-1(config)#show ip int brief R2624-1(config)#conf ter R2624-1(config)#exit R2624-1#show ip int brief Interface IP-Address OK? Method Status Protocol FastEthernet0 unassigned YES unset administratively down down FastEthernet1 unassigned YES unset administratively down down FastEthernet2 unassigned YES unset administratively down down FastEthernet3 unassigned YES unset administratively down Serial0 unassigned YES unset administratively down down Serial1 unassigned YES unset administratively down down R2624-1#conf ter Enter configuration commands, one per line. End with CNTL/Z. R2624-1(config)#interface fa 0 R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0 R2624-1(config-if)#no shutdown R2624-1(config-if)# %UPDOWN: Line protocol on Interface FastEthernet0, changed state to up %UPDOWN: Interface FastEthernet0, changed state to up R2624-1(config-if)#ex R2624-1(config)#inter serial 0 R2624-1(config-if)#ip address 192.16.2.1 255.255.255.0 R2624-1(config-if)#no shutdown R2624-1(config-if)# %UPDOWN: Interface Serial0, changed state to up %UPDOWN: Line protocol on Interface Serial0, changed state to up %UPDOWN: Line protocol on Interface Serial0, changed state to down R2624-1#Show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0 192.16.3.1 YES manual up up FastEthernet1 unassigned YES unset administratively down down FastEthernet2 unassigned YES unset administratively down down FastEthernet3 unassigned YES unset administratively down down Serial0 unassigned YES unset administratively down d Serial1 192.16.2.1 YES manual up up R2624-1#show interface serial 1 Serial1 is up, line protocol is up Hardware is HDLC4530B Internet address is 192.16.2.1/24 MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:06, output 00:00:03, output hang never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/64/0 (size/threshold/drops) Conversations 0/2 (active/max active) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 273 packets input, 10716 bytes, 0 no buffer Received 269 broadcasts 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 276 packets output, 12255 bytes, 0 underruns 0 output errors, 0 collisions, 32 int 0 output buffer failures, 0 output buffers swapped out 0 carrier transitions DCD=down DSR=up DTR=up RTS=up CTS=up 对R2620-2配置 R2620-2en R2620-2#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R2620-2(config)#exit R2620-2#show ip int b Interface IP-Address OK? Method Status Protocol FastEthernet0 192.16.1.1 YES manual up up Serial0 192.16.2.2 YES manual up up Serial1 unassigned YES unset administratively down down R2620-2#configure terminal Enter configuration commands, one per R2620-2(config)#interface fa 0 R2620-2(config-if)#ip address 192.16.1.1 255.255.255.0 R2620-2(config-if)#no shutdown R2620-2(config-if)#exit R2620-2(config)#inter serial 0 R2620-2(config-if)#ip address 192.16.2.2 255.255.255.0 R2620-2(config-if)#no shutdown R2620-2(config-if)#end R2620-2#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0 192.16.1.1 YES manual up up Serial0 192.16.2.2 YES manua Serial1 unassigned YES unset administratively down down R2620-2#show interface serial 0 Serial0 is up, line protocol is up Hardware is HDLC4530A Internet address is 192.16.2.2/24 MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:00, output 00:00:08, output hang never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/64/0 (size/threshold/drops) Conversations 0/2 (active/max active) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 441 packets input, 13551 bytes, 0 no buffer Received 403 broadcasts 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 559 packets output, 23464 bytes, 0 underruns 0 output errors, 0 collisions, 40 int 0 output buffer failures, 0 output buffers swapped out 0 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up动态路由:对R2624-1的配置Red-Giantenable Red-Giant#conf ter Enter configuration commands, one per line. End with CNTL/Z. Red-Giant(config)#hostname R2624-1 R2624-1(config)#inter R2624-1(config)#interface fastethernet 0 R2624-1(config-if)#ip address 192.16.3.1 255.255.255.0 R2624-1(config-if)#clock rate 64000 R2624-1(config-if)#no shutdown R2624-1(config-if)# %UPDOWN: Line protocol on Interface FastEthernet0, changed state to up %UPDOWN: Interface FastEthernet0, changed state to up R2624-1(config-if)#exit R2624-1(config)#exit R2624-1#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0 192.16.3.1 YES manual up up FastEthernet1 unassigned YES unset administratively FastEthernet2 unassigned YES unset administratively down down FastEthernet3 unassigned YES unset administratively down down Serial0 unassigned YES unset administratively down down Serial1 unassigned YES unset administratively down down R2624-1#show interface serial 1 Serial1 is administratively down, line protocol is down Hardware is HDLC4530B MTU 1500 bytes, BW 2048 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair Output queue: 4/64/0 (size/threshold/drops) Conversations 1/2 (active/max active) Reserved Conversations 0/

温馨提示

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

评论

0/150

提交评论