计算机网络实验报告—网际互连及路由仿真实验Word格式.docx
- 文档编号:3594093
- 上传时间:2023-05-02
- 格式:DOCX
- 页数:13
- 大小:257.72KB
计算机网络实验报告—网际互连及路由仿真实验Word格式.docx
《计算机网络实验报告—网际互连及路由仿真实验Word格式.docx》由会员分享,可在线阅读,更多相关《计算机网络实验报告—网际互连及路由仿真实验Word格式.docx(13页珍藏版)》请在冰点文库上搜索。
(四) 路由器配置模式
(五) 配置命令和配置过程
四、实验步骤及记录:
1.用bosonnetworkdesigner建立网络拓扑结构图。
截图如下:
2.登录Cisco路由器并为每个路由器分配合适的ip地址,配置
路由协议及建立路由表。
•登陆Cisco路由器
(1)点击屏幕上方的"
eRouterl”按钮将打开eRouter1登录窗口,按“Enter”键启动eRouterl,进入普通模式,提示符“Router〉”
(2)键入“Enable”命令进入特权模式,提示符变为“Router#”
(3)键入“Disable”命令退出特权模式,返回普通模式。
键入“Logout”或“Exit”退出路由器。
•路由器配置
(1)键入“conft”命令进入全局配置模式提示符变为"
Router(config)#"
(2)键入“hostname”命令对路由器命名。
(3)对重新命名好的路由器进行ip分配。
先对路由器的连接情况进行设置,对照网络拓扑图设置连接。
用“interface”命令实现然后用命令”ipaddress”命令为路由器分配ip地址。
每分配完一次地址后均须键入"
noshutdown,,命令。
各路由器配置程序记录如下:
Routerl:
Router>
enable
Router#conft
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostnameR1
R1(config)#interfaceEthernet0
Rl(config-if)#ipaddress202.117.27.2255.255.255.0
Rl(config-if)#noshutdown
%LINK-3-UPDOWN:
InterfaceEthernetO,changedstatetoup
Rl(config-if)#
R1(config-if)#exit
Rl(config)#exit
Rl#conft
R1(config)#router?
bgp BorderGatewayProtocol(BGP)
eigrp EnhancedInteriorGatewayRoutingProtocol(EIGRP)
igrp InteriorGatewayRoutingProtocol(IGRP)
ospf OpenShortestPathFirst(OSPF)
rip RoutingInformationProtocol(RIP)
R1(config)#routerrip
R1(config-router)#network202.117.27.2
R1(config-router)#exit
R1(config)#
R1(config)#confit
%Invalidinputdetectedat,A,marker.
Rl#
Router2
Router(config)#hostnameR2
R2(config)#interfaceEthernet0
R2(config-if)#ipaddress202.117.27.1255.255.255.0
R2(config-if)#noshutdown
R2(config-if)#exit
R2(config)#interfaceEthernet1
R2(config-if)#ipaddress202.117.32.1255.255.255.0
InterfaceEthernet1,changedstatetoup
R2(config)#interfaceSerial0
R2(config-if)#ipaddress202.117.36.1255.255.255.0
InterfaceSerialO,changedstatetoup
InterfaceSerialO,changedstatetodown
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceSerialO,changedstatetodownR2(config-if)#
R2(config-if)#
R2(config)#exit
R2#showipintbrief
Interface IP-Address OK?
MethodStatus Protocol
SerialO 202.117.36.1YESunsetup down
Serial1 unassigned YESunsetadministrativelydowndown
EthemetO 202.117.27.1 YESunsetup up
Ethernet1 202.117.32.1 YESunsetup up
R2#
R2#conft
R2(config)#router?
R2(config)#routerrip
R2(config-router)#network202.117.27.1
R2(config-router)#network202.117.32.1
R2(config-router)#network202.117.36.1
R2(config-router)#exit
R2(config)#
Router3
Router(config)#hostnameR3
R3(config)#interfaceEthernet0
R3(config-if)#ipaddress202.117.32.2255.255.255.0
R3(config-if)#noshutdown
R3(config-if)#
R3(config-if)#exit
R3(config)#exit
R3#conft
R3(config)#routerrip
R3(config-router)#network202.117.32.2
R3(config-router)#exit
R3(config)#
R3#
Router4
Router(config)#hostnameR4
R4(config)#interfaceSerial0
R4(config-if)#ipaddress202.117.36.2255.255.255.0
R4(config-if)#noshutdown
LineprotocolonInterfaceSerialO,changedstatetodown
R4(config-if)#exit
R4(config)#showipinbrif
R4(config)#showipintbrief
R4(config)#exit
R4#showipintbrief
Interface
IP-Address
OK?
MethodStatus
Protocol
SerialO
202.117.36.2
YESunsetup
down
EthemetO
unassigned
YESunsetadministrativelydowndown
R4#
R4#conft
R4(config)#routerrip
R4(config-router)#network202.117.36.2
R4(config-router)#exit
3.检测路由器的连接情况
可用“ping”命令检测。
具体程序记录如下:
Routerl
Rl#ping202.117.27.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto202.117.27.1,timeoutis2seconds:
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4msRl#showiproute
Codes:
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaEl-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticroute
Gatewayoflastresortisnotset
C202.117.27.0/24isdirectlyconnected,EthernetO
R 202.117.32.0/24[120/1]via202.117.27.1,00:
03:
44,EthernetO
R 202.117.36.0/24[120/1]via202.117.27.1,00:
02:
25,EthernetO
截图如下:
R2#ping202.117.27.1
Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms
R2(config-if)#clockrate56000
LineprotocolonInterfaceSerialO,changedstatetoup
R2#ping202.117.36.2
Sending5,100-byteICMPEchosto202.117.36.2,timeoutis2seconds:
R2#ping202.117.32.2
Sending5,100-byteICMPEchosto202.117.32.2,timeoutis2seconds:
R2#ping202.117.27.2
Sending5,100-byteICMPEchosto202.117.27.2,timeoutis2seconds:
R2#showiproute
C 202.117.27.0/24isdirectlyconnected,EthernetO
C 202.117.32.0/24isdirectlyconnected,Ethernet1
C 202.117.36.0/24isdirectlyconnected,SerialO
R3#ping202.117.32.2
R3#showroute
R3#showiproute
C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaEl-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,LI-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticroute
C202.117.32.0/24isdirectlyconnected,EthernetO
R202.117.27.0/24[120/1]via202.117.32.1,00:
01:
39,EthernetO
R4#ping202.117.36.1
Sending5,100-byteICMPEchosto202.117.36.1,timeoutis2seconds:
R202.117.36.0/24[120/1]via202.117.32.1,00:
04:
41,EthernetO截图如下:
五、实验总结:
通过本次实验,我掌握了网际互连基本概念,学会了使用仿真软件建立一个小型互联网,并能顺利完成路由信息的配置和测试。
通过实验,使我将课堂内学到的理论知识与实际操作结合了起来,也加深了对知识的理解与认识。
在实验过程中,我也遇到了一些问题,最开始由于对软件的不熟悉,画图的步骤出现差错,导致实验无法顺利得到结果,为了不影响之后的实验进程,我多次重新实验,避免错误,最终顺利得到实验结果。
在实验过程中,同学们互帮互助,共同解决难题,使实验能顺利完成,在此过程中也增进了大家的友谊,最后也要感谢老师的耐心解答,指导我们解决遇到的相关问题,谢谢老师。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机网络 实验 报告 网际 互连 路由 仿真