实验报告模板2

时间:2024.4.14

淮海工学院计算机工程学院

实验报告书

课程名:   计算机网络A               

题   目:        实验2             

          班   级:                  

学   号:                       

姓   名:                        

 

一.实验目的与要求

1、掌握常用的网络命令,了解网络的运行状态;
    2、对网络进行简单的测试、分析和诊断。

   二.实验内容或题目

1、网络层常用命令:ping,ipconfig,arp,route,tracert
    2、统计命令:netstat

三、实验步骤与结果

C:\Documents and Settings\Administrator>ping www.hhit.edu.cn

Pinging www.hhit.edu.cn [218.92.9.156] with 32 bytes of data:

Reply from 218.92.9.156: bytes=32 time<1ms TTL=63

Reply from 218.92.9.156: bytes=32 time<1ms TTL=63

Reply from 218.92.9.156: bytes=32 time<1ms TTL=63

Reply from 218.92.9.156: bytes=32 time<1ms TTL=63

Ping statistics for 218.92.9.156:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>ping www.baidu.cn

Pinging www.a.shifen.com [220.181.112.143] with 32 bytes of data:

Reply from 220.181.112.143: bytes=32 time=33ms TTL=52

Reply from 220.181.112.143: bytes=32 time=32ms TTL=52

Reply from 220.181.112.143: bytes=32 time=32ms TTL=52

Reply from 220.181.112.143: bytes=32 time=33ms TTL=52

Ping statistics for 220.181.112.143:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 32ms, Maximum = 33ms, Average = 32ms

C:\Documents and Settings\Administrator>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : 94

        Primary Dns Suffix  . . . . . . . :

        Node Type . . . . . . . . . . . . : Unknown

        IP Routing Enabled. . . . . . . . : No

        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter VMware Network Adapter VMnet8:

        Connection-specific DNS Suffix  . :

        Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet8

        Physical Address. . . . . . . . . : 00-50-56-C0-00-08

        Dhcp Enabled. . . . . . . . . . . : No

        IP Address. . . . . . . . . . . . : 192.168.180.1

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

        Connection-specific DNS Suffix  . :

        Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for

VMnet1

        Physical Address. . . . . . . . . : 00-50-56-C0-00-01

        Dhcp Enabled. . . . . . . . . . . : No

        IP Address. . . . . . . . . . . . : 192.168.119.1

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . :

Ethernet adapter 本地连接:

        Connection-specific DNS Suffix  . :

        Description . . . . . . . . . . . : Realtek RTL8139/810x Family Fast Eth

ernet NIC

        Physical Address. . . . . . . . . : 00-15-58-C2-1E-A9

        Dhcp Enabled. . . . . . . . . . . : No

        IP Address. . . . . . . . . . . . : 219.219.94.20

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . : 219.219.94.1

        DNS Servers . . . . . . . . . . . : 221.6.4.66

                                            210.28.39.88

C:\Documents and Settings\Administrator>arp -a

Interface: 219.219.94.20 --- 0x4

  Internet Address      Physical Address      Type

  219.219.94.1          5c-dd-70-3c-0d-00     dynamic

C:\Documents and Settings\Administrator>route

Manipulates network routing tables.

ROUTE [-f] [-p] [command [destination]

                  [MASK netmask]  [gateway] [METRIC metric]  [IF interface]

  -f           Clears the routing tables of all gateway entries.  If this is

               used in conjunction with one of the commands, the tables are

               cleared prior to running the command.

  -p           When used with the ADD command, makes a route persistent across

               boots of the system. By default, routes are not preserved

               when the system is restarted. Ignored for all other commands,

               which always affect the appropriate persistent routes. This

               option is not supported in Windows 95.

  command      One of these:

                 PRINT     Prints  a route

                 ADD       Adds    a route

                 DELETE    Deletes a route

                 CHANGE    Modifies an existing route

  destination  Specifies the host.

  MASK         Specifies that the next parameter is the 'netmask' value.

  netmask      Specifies a subnet mask value for this route entry.

               If not specified, it defaults to 255.255.255.255.

  gateway      Specifies gateway.

  interface    the interface number for the specified route.

  METRIC       specifies the metric, ie. cost for the destination.

All symbolic names used for destination are looked up in the network database

file NETWORKS. The symbolic names for gateway are looked up in the host name

database file HOSTS.

If the command is PRINT or DELETE. Destination or gateway can be a wildcard,

(wildcard is specified as a star '*'), or the gateway argument may be omitted.

If Dest contains a * or ?, it is treated as a shell pattern, and only

matching destination routes are printed. The '*' matches any string,

and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.

Diagnostic Notes:

    Invalid MASK generates an error, that is when (DEST & MASK) != DEST.

    Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1

             The route addition failed: The specified mask parameter is invalid.

 (Destination & Mask) != Destination.

Examples:

    > route PRINT

    > route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2

             destination^      ^mask      ^gateway     metric^    ^

                                                         Interface^

      If IF is not given, it tries to find the best interface for a given

      gateway.

    > route PRINT

    > route PRINT 157*          .... Only prints those matching 157*

    > route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2

      CHANGE is used to modify gateway and/or metric only.

    > route PRINT

    > route DELETE 157.0.0.0

    > route PRINT

C:\Documents and Settings\Administrator>route print

===========================================================================

Interface List

0x1 ........................... MS TCP Loopback interface

0x2 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8

0x3 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1

0x4 ...00 15 58 c2 1e a9 ...... Realtek RTL8139 Family PCI Fast Ethernet NIC -

数据包计划程序微型端口

===========================================================================

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0          0.0.0.0     219.219.94.1   219.219.94.20       20

        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1

    192.168.119.0    255.255.255.0    192.168.119.1   192.168.119.1       20

    192.168.119.1  255.255.255.255        127.0.0.1       127.0.0.1       20

  192.168.119.255  255.255.255.255    192.168.119.1   192.168.119.1       20

    192.168.180.0    255.255.255.0    192.168.180.1   192.168.180.1       20

    192.168.180.1  255.255.255.255        127.0.0.1       127.0.0.1       20

  192.168.180.255  255.255.255.255    192.168.180.1   192.168.180.1       20

     219.219.94.0    255.255.255.0    219.219.94.20   219.219.94.20       20

    219.219.94.20  255.255.255.255        127.0.0.1       127.0.0.1       20

   219.219.94.255  255.255.255.255    219.219.94.20   219.219.94.20       20

        224.0.0.0        240.0.0.0    192.168.119.1   192.168.119.1       20

        224.0.0.0        240.0.0.0    192.168.180.1   192.168.180.1       20

        224.0.0.0        240.0.0.0    219.219.94.20   219.219.94.20       20

  255.255.255.255  255.255.255.255    192.168.119.1   192.168.119.1       1

  255.255.255.255  255.255.255.255    192.168.180.1   192.168.180.1       1

  255.255.255.255  255.255.255.255    219.219.94.20   219.219.94.20       1

Default Gateway:      219.219.94.1

===========================================================================

Persistent Routes:

  None

C:\Documents and Settings\Administrator>tracert www.baidu.com

Tracing route to www.a.shifen.com [220.181.112.143]

over a maximum of 30 hops:

  1    <1 ms    <1 ms    <1 ms  219.219.94.1

  2    <1 ms    <1 ms    <1 ms  bogon [10.10.10.1]

  3     *        *        *     Request timed out.

  4     *        *        *     Request timed out.

  5

C:\Documents and Settings\Administrator>netstat

Active Connections

  Proto  Local Address          Foreign Address        State

  TCP    94:1304                210.28.39.251:http     CLOSE_WAIT

  TCP    94:1305                210.28.39.251:http     CLOSE_WAIT

  TCP    94:1306                210.28.39.251:http     CLOSE_WAIT

  TCP    94:1307                210.28.39.251:http     CLOSE_WAIT

  TCP    94:1309                63.151.120.106.static.bjtelecom.net:http  CLOSE_

WAIT

  TCP    94:1310                114.80.179.226:http    CLOSE_WAIT

  TCP    94:1311                61.151.120.106.static.bjtelecom.net:http  CLOSE_

WAIT

  TCP    94:1312                220.181.124.110:http   CLOSE_WAIT

  TCP    94:1313                63.151.120.106.static.bjtelecom.net:http  CLOSE_

WAIT

  TCP    94:1316                114.80.179.226:http    CLOSE_WAIT

C:\Documents and Settings\Administrator>

四、结果分析与心得

  本次试验主要进行的工作是输入一些常用命令对网络进行测试,通过这次的实验,我学到了很多以前不知道的命令,也发现了自己对于网络知识是有多么的缺乏,作为一名网络班的学生,我要做的还有很多很多,我要更加的努力,这次试验学到的东西只是一个开始,希望以后我能有更大的进步。

五、思考题

1、用ping、tracert命令测试网络站点的连通性和路由时,有时可指定机器的域名,有时可指定机器的IP地址,域名和IP地址之间是什么样的关系?彼此间可以相互转换吗?

答:域名与IP地址间可以是一对一关系,也可以是多对一关系。即一个IP地址同

时可对应多个域名,而一个域名同时只能对应一个IP地址。域名与IP地址间可以通过域名系统即DNS进行查询转换。
    2、第一次使用arp命令时,看到主机中只有少量的解析记录,当主机被其他主机ping,或主机ping过其他主机后,再次运行arp命令,可发现增加了多条解析记录,为什么?

答:因为本地高速缓存的这个ARP表是本地网络流通的基础,而且这个缓存是动态

的。当主机接收到其他机的应答后,就会对本地的ARP缓存进行更新,将应答中的IP和MAC地址存储在ARP缓存中,所以再次运行arp命令,可发现增加了多条解析记录。

更多相关推荐:
实验报告模版

徐州工程学院管理学院实验报告实验课程名称实验地点年月至年月专业班级学生姓名学号指导老师123456

实验报告范本

学生实验报告书实验课程名称开课学院指导教师姓名学生姓名学生专业班级200200学年第学期实验教学管理基本规范实验是培养学生动手能力分析解决问题能力的重要环节实验报告是反映实验教学水平与质量的重要依据为加强实验过...

实验报告格式模板-供参考

实验名称:粉体真密度的测定粉体真密度是粉体质量与其真体积之比值,其真体积不包括存在于粉体颗粒内部的封闭空洞。所以,测定粉体的真密度必须采用无孔材料。根据测定介质的不同,粉体真密度的主要测定方法可分为气体容积法和…

化学实验报告(空白模板)

化学实验报告

实验报告模板

学生实践报告课程名称学生学号所属院部文科类专业班级学生姓名指导教师2020学年第学期金陵科技学院教务处制实践报告书写要求实践报告原则上要求学生手写要求书写工整若因课程特点需打印的要遵照以下字体字号间距等的具体要...

实验报告 范本

研究生实验报告范本实验课程实验名称实验地点学生姓名学号指导教师范本实验时间年月日一实验目的熟悉电阻型气体传感器结构及工作原理进行基于聚苯胺敏感薄膜的气体传感器的结构设计材料制作材料表征探测单元制作与测试实验结果...

实验报告模板(文字格式,具体排版)

北京信息科技大学黑体1号居中实验报告宋体2号加粗居中课程名称学院专业学生姓名班级学号任课老师起止时间200年月日至200年月日以上宋体四号居中目录目录宋体三号加粗居中第一章1112第二章2122第X章结束语参考...

综合实验报告模板

单片机综合实验报告20xx至20xx学年度第一学期题目数字电压表的设计姓名李志波刘波成专业电子信息工程学号备注正文字体要求小四号宋体标准行距首行缩进2字符图表居中主要程序接线1用导线将MCU的I14I17p33...

实验报告模板

上海应用技术学院经济与管理学院物流系统模拟与仿真实验实验总结以金奖豆豉鲮鱼罐头海运出口出口业务为例右侧HS编码查询查询商品HS编码看要领取什么单证客户公司出口索取相关单证BE报关行打开电脑计算税费出口税费为0文...

(本科)《电子商务模拟实验》课程《模拟经营部分》实验报告模版

成都信息工程学院银杏酒店管理学院实验报告实验课程电子商务模拟实验指导教师廖选系别名称电子商务与信息管理系专业方向信息管理与信息系统实验班级10信息1班学生姓名学生学号实验报告写法及范例优秀示例1优秀示例2优秀示...

小学科学实验报告单样板

小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验报告单小学科学实验...

需求分析实验报告模板

实验报告超市运营管理系统需求分析班级学生姓名学号目录1系统需求概述111系统概述112系统功能需求12用例建模121确定系统范围和系统边界222参与者列表223用例列表324用例图325辅助需求8251系统环境...

实验报告模板(51篇)