计算机网络基础实验报告.doc_第1页
计算机网络基础实验报告.doc_第2页
计算机网络基础实验报告.doc_第3页
计算机网络基础实验报告.doc_第4页
计算机网络基础实验报告.doc_第5页
已阅读5页,还剩24页未读 继续免费阅读

下载本文档

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

文档简介

计算机网络基础实验报告实验一 常用网络命令的使用实验目的:1、 掌握几种常用网络命令,并能解释其显示内容的含义;2、 理解各命令的含义,并能使用这些命令检测常见网络故障; 实验要求:1、 按实验内容要求执行各命令,认真记录实验结果;2、 对实验结果能解释其意义。实验内容:1、 运行IPconfig命令运行该命令,记录主机名、DNS服务器、适配器信息、主机物理地址、IP地址、子网掩码以及默认网关等。实验结果:C:Documents and SettingscydnIpconfigWindows IP ConfigurationEthernet adapter 本地连接: Connection-specific DNS Suffix . : /特定连接的dns后缀 IP Address. . . . . . . . . . . . : 10.4.24.11 / IP地址:10.4.24.11 Subnet Mask . . . . . . . . . . . : 255.255.255.192 /子网掩码:255.255.255.192 Default Gateway . . . . . . . . . : 10.4.24.62 / 默认网关:10.4.24.62显示所有的有关IP地址的配置信息C:Documents and Settingscydnipconfig/allWindows IP Configuration /网络配置窗口 Host Name . . . . . . . . . . . . : 1s11 /主机名:1s11 Primary Dns Suffix . . . . . . . : /主 DNS 后缀 Node Type . . . . . . . . . . . . : Unknown /节点类型:未知 IP Routing Enabled. . . . . . . . : No /IP 路由启用:否 WINS Proxy Enabled. . . . . . . . : No /WINS 代理启用:否Ethernet adapter 本地连接: /以太网适配器 Connection-specific DNS Suffix . : /特定连接的dns后缀 Description . . . . . . . . . . . : Marvell Yukon 88E8056 PCI-E Gigabi /种类:马维尔育空河88e8056 PCI - E千兆Ethernet Controller /以太网控制器 Physical Address. . . . . . . . . : 00-21-97-2F-F0-06 /物理地址 Dhcp Enabled. . . . . . . . . . . : No /动态主机配置协议启用:否 IP Address. . . . . . . . . . . . : 10.4.24.11 /IP地址: 10.4.24.11 Subnet Mask . . . . . . . . . . . : 255.255.255.192 /子网掩码:255.255.255.192 Default Gateway . . . . . . . . . : 10.4.24.62 / 默认网关:10.4.24.62 DNS Servers . . . . . . . . . . . : 10.1.0.40 /DNS 服务器:10.1.0.402、 运行ping命令运行该命令,分别ping 127.0.0.1,本机IP,网关IP,远程IP,本机名,远程域名。并使用一些常用参数,记录结果,解释其含义。C:Documents and Settingscydnping 127.0.0.1Pinging 127.0.0.1 with 32 bytes of data:Reply from 127.0.0.1: bytes=32 time1ms TTL=128Reply from 127.0.0.1: bytes=32 time1ms TTL=128Reply from 127.0.0.1: bytes=32 time1ms TTL=128Reply from 127.0.0.1: bytes=32 timeping 127.0.0.1正在 Ping 127.0.0.1 具有 32 字节的数据:来自 127.0.0.1 的回复: 字节=32 时间1ms TTL=128来自 127.0.0.1 的回复: 字节=32 时间1ms TTL=128来自 127.0.0.1 的回复: 字节=32 时间1ms TTL=128来自 127.0.0.1 的回复: 字节=32 时间ping 10.4.24.11Pinging 10.4.24.11 with 32 bytes of data:Reply from 10.4.24.11: bytes=32 time1ms TTL=128Reply from 10.4.24.11: bytes=32 time1ms TTL=128Reply from 10.4.24.11: bytes=32 time1ms TTL=128Reply from 10.4.24.11: bytes=32 timeping 10.4.24.11:正在 Ping 10.4.24.11: 具有 32 字节的数据:来自 10.4.24.11: 的回复: 字节=32 时间1ms TTL=128来自 10.4.24.11: 的回复: 字节=32 时间1ms TTL=128来自 10.4.24.11: 的回复: 字节=32 时间1ms TTL=128来自 10.4.24.11: 的回复: 字节=32 时间netstat -A 117.81.160.156活动连接 协议 本地地址 外部地址 状态 TCP 0.0.0.0:21 jqq315:0 LISTENING TCP 0.0.0.0:80 jqq315:0 LISTENING TCP 0.0.0.0:135 jqq315:0 LISTENING TCP 0.0.0.0:445 jqq315:0 LISTENING TCP 0.0.0.0:912 jqq315:0 LISTENING TCP 0.0.0.0:49152 jqq315:0 LISTENING TCP 0.0.0.0:49153 jqq315:0 LISTENING TCP 0.0.0.0:49154 jqq315:0 LISTENING TCP 0.0.0.0:49155 jqq315:0 LISTENING TCP 0.0.0.0:49156 jqq315:0 LISTENING TCP 10.4.23.62:139 jqq315:0 LISTENING TCP 127.0.0.1:49180 jqq315:0 LISTENING TCP 192.168.150.1:139 jqq315:0 LISTENING TCP 192.168.242.1:139 jqq315:0 LISTENING TCP :21 jqq315:0 LISTENING TCP :80 jqq315:0 LISTENING4、 运行arp命令运行该命令,并通过使用其参数添加、删除高速缓存中的静态项目。记录实验结果,理解arp协议的工作原理。C:Documents and Settingscydnarp -aInterface: 10.4.24.11 - 0x2 Internet Address Physical Address Type 10.4.24.38 00-21-97-40-7d-a5 dynamic 10.4.24.62 00-0f-e2-2e-94-18 dynamic解释为:C:WindowsSystem32arp -a接口:10.4.24.11 - 0x2 Internet 地址 物理地址 类型 10.4.24.38 00-21-97-40-7d-a5 动态 10.4.24.62 00-0f-e2-2e-94-18 动态5、 运行route命令运行route print命令,记录、解释结果。并与netstat r命令结果相比较。C:Documents and Settingscydnroute print=Interface List0x1 . MS TCP Loopback interface0x2 .00 21 97 2f f0 06 . Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller - 数据包计划程序微型端口=Active Routes:Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.4.24.62 10.4.24.11 20 10.4.24.0 255.255.255.192 10.4.24.11 10.4.24.11 20 10.4.24.11 255.255.255.255 127.0.0.1 127.0.0.1 20 10.255.255.255 255.255.255.255 10.4.24.11 10.4.24.11 20 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 224.0.0.0 240.0.0.0 10.4.24.11 10.4.24.11 20 255.255.255.255 255.255.255.255 10.4.24.11 10.4.24.11 1Default Gateway: 10.4.24.62=Persistent Routes: None解释为:C:WindowsSystem32route print = 接口列表 0x1 .微软网络环回接口 0x2 .00 21 97 2f f0 06 . 马维尔育空88e8056 PCI - E千兆以太网控制troller - 数据包计划程序微型端口= 活动路由: 网络目标 网络掩码 网关 接口 跃点数 0.0.0.0 0.0.0.0 10.4.24.62 10.4.24.11 20 10.4.24.0 255.255.255.192 10.4.24.11 10.4.24.11 20 10.4.24.11 255.255.255.255 127.0.0.1 127.0.0.1 20 10.255.255.255 255.255.255.255 10.4.24.11 10.4.24.11 20 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1 224.0.0.0 240.0.0.0 10.4.24.11 10.4.24.11 20 255.255.255.255 255.255.255.255 10.4.24.11 10.4.24.11 1默认网关:10.4.24.62=永久路由:无此结果和netstat r 运行结果一样。6、 运行net命令运行net view命令,记录结果。C:Documents and Settingscydnnet view服务器名称 注释-1S11S111S21S231S241S251S31S41S51S82S12S102S112S122S132S142S152S162S172S182S192S22S202S212S222S232S242S252S32S42S52S62S72S82S9ZJG122命令成功完成。 实验二:Cisco IOS 及静态路由实验目的:1、熟悉实验环境,了解实验室的拓扑结构2、掌握访问相关设备的方法,掌握如何管理Cisco设备。3、掌握Cisco IOS基本命令。4、掌握静态路由的配置方法。5、掌握默认路由的配置方法和路由总结。实验环境:实验室路由网络环境如下图所示,每个小组有5台路由器,并通过”本地连接”与其它小组相连。由于设备数量众多,为方便管理及维护,统一使用telnet的方式访问设备。访问指定的设备请使用:telnet + 服务器IP +指定端口号。一、Cisco IOS实验拓扑图:实验步骤及要求:1、由授课教师负责分配设备并且进行实验演示。2、每个人按照教师演示方法登录到自己的设备上。3、熟悉以下基本命令的使用方法。必要参数 可选参数 任选参数Router enable /进入特权模式Router# clock set hh:mm:ss day month year /设置设备时间Router# configure terminal /进入全局配置模式Router(config)# hostname word /设置设备名Router(config)# enable secret password /设置设备enable加密密码Router(config)# enable password password /设置设备enable普通密码Router(config)# banner motd start-word /设置设备的登录线程提示Router(config)# interface type module/port /进入具体接口 Router(config-if)# description word /为具体接口设置描述字符串Router(config-if)# ip address ip address /定义IP地址Router(config-if)# no shutdown /将接口置于打开状态Router(config-if)# exit /回到全局配置模式Router(config)# line con 0 /进入线路0(Console口)Router(config-line)# password password /设置线路密码Router(config-line)# login /允许从该线路登陆设备Router(config-line)# exitRouter(config)# line aux 0Router(config-line)# password passwordRouter(config-line)# loginRouter(config-line)# exitRouter(config)# line vty 0 4Router(config-line)# password passwordRouter(config-line)# login /配置VTY线路的login以及pass,以便远程登陆Router(config-line)# exit4、建立一个回环接口,设置其IP地址为1.1.1.1/32。Router(config)# interface loopback 0Router(config-if)# ip address 1.1.1.1 255.255.255.255Router(config-if)# exit5、按照拓扑图将每台路由器接口上的地址配好。6、使用show interface命令检查接口是否工作正常。7、使用ping命令检验相邻设备的连通性。8、使用copy run start命令保存配置。9、使用show version查看IOS版本信息和配置寄存器值。二、Static Route实验拓扑图:实验步骤及要求:1、登录到各自的路由器上。2、按拓扑图所示配置路由器的hostname;将enable secret设置为cisco、enable password设置为just、VTY线路密码为cisco。3、配置各接口的IP地址。4、检验相邻设备的连通性。5、配置静态路由(不允许配置默认路由和总结路由),让网络全互通,并且使用show ip route命令查看路由表。London(config)# ip route 172.16.1.0 255.255.255.0 10.3.3.2 /指定到172.16.1.0/24 的路由全部发往10.3.3.2London(config)# ip route 172.16.2.0 255.255.255.224 10.3.3.2London(config)# ip route 172.16.3.0 255.255.255.0 10.3.3.2London(config)# ip route 192.168.1.0 255.255.255.0 10.3.3.2Florence(config)# ip route 10.1.1.0 255.255.255.0 10.3.3.1Florence(config)# ip route 10.2.2.0 255.255.255.224 10.3.3.1Florence(config)# ip route 172.16.1.0 255.255.255.0 172.16.3.1Florence(config)# ip route 172.16.2.0 255.255.255.224 172.16.3.1Denver(config)# ip route 10.1.1.0 255.255.255.0 172.16.3.2Denver(config)# ip route 10.2.2.0 255.255.255.224 172.16.3.2Denver(config)# ip route 10.3.3.0 255.255.255.0 172.16.3.2Denver(config)# ip route 192.168.1.0 255.255.255.0 172.16.3.26、在“London”和“Denver”上对原先所配置的静态路由进行尽量的总结(必须去掉原先配置的路由,不允许用默认路由),并且使用show ip route命令查看路由表。London(config)# no ip route 172.16.1.0 255.255.255.0 10.3.3.2/使用no+已存在命令,则删除该命令London(config)# no ip route 172.16.2.0 255.255.255.224 10.3.3.2London(config)# no ip route 172.16.3.0 255.255.255.0 10.3.3.2London(config)# ip route 172.16.0.0 255.255.0.0 10.3.3.2Denver(config)# no ip route 10.1.1.0 255.255.255.0 172.16.3.2Denver(config)# no ip route 10.2.2.0 255.255.255.224 172.16.3.2Denver(config)# no ip route 10.3.3.0 255.255.255.0 172.16.3.2Denver(config)# ip route 10.0.0.0 255.0.0.0 172.16.3.27、在“London”和“Denver”上去掉步骤6所配置的路由,改用默认路由,并且使用show ip route命令查看路由表。London(config)# no ip route 172.16.0.0 255.255.0.0 10.3.3.2London(config)# ip route 0.0.0.0 0.0.0.0 10.3.3.2Denver(config)# no ip route 10.0.0.0 255.0.0.0 172.16.3.2Denver(config)# ip route 0.0.0.0 0.0.0.0 172.16.3.2从PC0到PC1从PC1到PC0实验三:动态路由RIP实验目的:1、掌握RIP v1/v2的配置方法。2、掌握show ip route、show ip rip database、show ip protocol命令。3、理解有类路由和无类路由的区别。实验拓扑图:实验步骤及要求:1、登录到各自的设备上。2、按拓扑图所示配置路由器的hostname;将enable secret设置为cisco、enable password设置为just、VTY线路密码为cisco。3、配置各接口的IP地址。4、检验相邻设备的连通性。5、按下列步骤配置RIP v1,并且在三台路由器上使用“show ip route”和“show ip rip database”命令查看路由表。London(config)# router rip /进入RIP协议配置London(config-router)# network 10.0.0.0 /声明RIP的工作范围Florence(config)# router ripFlorence(config-router)# network 10.0.0.0Florence(config-router)# network 172.16.0.0Florence(config-router)# network 192.168.1.0Denver(config)# router ripDenver(config-router)# network 172.16.0.0在三台路由器上查看show ip protocol命令的输出,理解其含义。6、在三台路由器上使用“debug ip rip”和“clear ip route *”命令查看RIP v1的动态更新情况,查看完毕之后使用“undebug all”关闭调试。London#debug ip ripRIP protocol debugging is onLondon#RIP: received v1 update from 10.3.3.2 on FastEthernet0/1 172.16.0.0 in 1 hopsRIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (10.4.4.1)RIP: build update entries network 10.1.1.0 metric 1 network 10.3.3.0 metric 1 network 172.16.0.0 metric 2 network 192.168.1.0 metric 2RIP: sending v1 update to 255.255.255.255 via FastEthernet0/1 (10.3.3.1)RIP: build update entries network 10.1.1.0 metric 1 network 10.4.4.0 metric 1RIP: sending v1 update to 255.255.255.255 via Loopback0 (10.1.1.1)RIP: build update entries network 10.3.3.0 metric 1 network 10.4.4.0 metric 1 network 172.16.0.0 metric 2 network 192.168.1.0 metric 2RIP: sending v1 update to 255.255.255.255 via Loopback1 (10.2.2.1)RIP: build update entries network 172.16.0.0 metric 2 network 192.168.1.0 metric 2RIP: received v1 update from 10.3.3.2 on FastEthernet0/1 172.16.0.0 in 1 hops 192.168.1.0 in 1 hopsRIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (10.4.4.1)RIP: build update entries network 10.1.1.0 metric 1 network 10.3.3.0 metric 1 network 172.16.0.0 metric 2 network 192.168.1.0 metric 2RIP: sending v1 update to 255.255.255.255 via FastEthernet0/1 (10.3.3.1)RIP: build update entries network 10.1.1.0 metric 1 network 10.4.4.0 metric 1RIP: sending v1 update to 255.255.255.255 via Loopback0 (10.1.1.1)RIP: build update entries network 10.3.3.0 metric 1 network 10.4.4.0 metric 1 network 172.16.0.0 metric 2 network 192.168.1.0 metric 2RIP: sending v1 update to 255.255.255.255 via Loopback1 (10.2.2.1)RIP: build update entries network 172.16.0.0 metric 2 network 192.168.1.0 metric 2RIP: received v1 update from 10.3.3.2 on FastEthernet0/1 172.16.0.0 in 1 hops 192.168.1.0 in 1 hopsRIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (10.4.4.1)RIP: build update entrie network 10.1.1.0 metric 1network 10.3.3.0 metric 1network 172.16.0.0 metric 2network 192.168.1.0 metric 2RIP: sending v1 update to 255.255.255.255 via FastEthernet0/1 (10.3.3.1)RIP: build update entriesnetwork 10.1.1.0 metric 1network 10.4.4.0 metric 1RIP: sending v1 update to 255.255.255.255 via Loopback0 (10.1.1.1)RIP: build update entriesnetwork 10.3.3.0 metric 1network 10.4.4.0 metric 1network 172.16.0.0 metric 2network 192.168.1.0 metric 2RIP: sending v1 update to 255.255.255.255 via Loopback1 (10.2.2.1)RIP: build update entriesnetwork 172.16.0.0 metric 2network 192.168.1.0 metric 2clear ip route *London#clear ip route *London#RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.4.4.1)London#undebug allAll possible debugging has been turned off7、将RIP升成version 2,查看此时路由表中出现的变化,比较与RIP v1路由表的区别。London(config)# router ripLondon(config-router)# version 2 /变更RIP的版本号为2Florence(config)# router ripFlorence(config-router)# version 2Denver(config)# router ripDenver(config-router)# version 27、 在三台路由器上使用“debug ip rip”和“clear ip route *”命令查看RIP v2的动态更新情况,查看完毕之后使用“undebug all”关闭调试。对于第一台路由器:RIP: sending v2 update to 224.0.0.9 via Loopback1 (10.2.2.1)RIP: build update entries 10.1.1.0/24 via 0.0.0.0, metric 1, tag 0 10.3.3.0/24 via 0.0.0.0, metric 1, tag 0 10.4.4.0/24 via 0.0.0.0, metric 1, tag 0 172.16.0.0/16 via 0.0.0.0, metric 2, tag 0 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0RIP: received v2 update from 10.3.3.2 on FastEthernet0/1 172.16.0.0/16 via 0.0.0.0 in 1 hops 192.168.1.0/24 via 0.0.0.0 in 1 hopsRIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.4.4.1)RIP: build update entries 10.1.1.0/24 via 0.0.0.0, metric 1, tag 0 10.2.2.0/27 via 0.0.0.0, metric 1, tag 0 10.3.3.0/24 via 0.0.0.0, metric 1, tag 0 172.16.0.0/16 via 0.0.0.0, metric 2, tag 0 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0RIP: sending v2 update to 224.0.0.9 via FastEthernet0/1 (10.3.3.1)RIP: build update entries 10.1.1.0/24 via 0.0.0.0, metric 1, tag 0 10.2.2.0/27 via 0.0.0.0, metric 1, tag 0 10.4.4.0/24 via 0.0.0.0, metric 1, tag 0RIP: sending v2 update to 224.0.0.9 via Loopback0 (10.1.1.1)RIP: build update entries 10.2.2.0/27 via 0.0.0.0, metric 1, tag 0 10.3.3.0/24 via 0.0.0.0, metric 1, tag 0 10.4.4.0/24 via 0.0.0.0, metric 1, tag 0 172.16.0.0/16 via 0.0.0.0, metric 2, tag 0 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0RIP: sending v2 update to 224.0.0.9 via Loopback1 (10.2.2.1)RIP: build update entries 10.1.1.0/24 via 0.0.0.0, metric 1, tag 0 10.3.3.0/24 via 0.0.0.0, metric 1, tag 0 10.4.4.0/24 via 0.0.0.0, metric 1, tag 0 172.16.0.0/16 via 0.0.0.0, metric 2, tag 0 192.168.1.0/24 via 0.0.0.0, metric 2, tag 0RIP: received v2 update from 10.3.3.2 on FastEthernet0/1 172.16.0.0/16 via 0.0.0.0 in 1 hops 192.168.1.0/24 via 0.0.0.0 in 1 hopsLondon#clear ip route RIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.4.4.1)RIP: build update entries 10.1.1.0/24 via 0.

温馨提示

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

评论

0/150

提交评论