1、实验完成后应认真撰写实验报告。五、实验原理六、实验步骤1、最常用的网络测试工具PING.EXE(1)判断本地的TCP/IP协议栈是否已安装成功C:Documents and Settingsstudentping 127.0.0.1Pinging 127.0.0.1 with 32 bytes of data:用32个数据字节验证本机与计算机的连接Reply from 127.0.0.1: bytes=32 time10ms TTL=128返回本机:字节为32个 时间小于10 毫秒 生存时间为128Ping statistics for 127.0.0.1:统计本机的数据:Packets: S
2、ent = 4, Received = 4, Lost = 0 (0% loss),包数:发送为4,接收为4,丢失为0(丢失率为0%)Approximate round trip times in milli-seconds:大概回路行程时间在毫秒Minimum = 0ms, Maximum = 0ms, Average = 0ms最小为0毫秒,最大为0毫秒,平均为0毫秒(2)判断能否到达指定IP地址的远程计算机ping 10.64.42.1Pinging 10.64.42.1 with 32 bytes of data:用32个数据字节验证网关与计算机的连接Reply from 10.64.
3、42.1:10ms TTL=64返回网关:字节为32个 时间小于10 毫秒 生存时间为64 bytes=32 time=34ms TTL=64Ping statistics for 10.64.42.1:统计网关的数据:用32个数据字节验证网络与计算机的连接返回网络:字节为32 时间小于10毫秒 生存时间为128统计腾讯网的数据:发送为4,收回为4,丢失为0(丢失率为0%)大概循环时间在毫秒:最小值01毫秒,最大值为0毫秒,平均值为0毫秒(6)Ping指定的IP地址30次ping -n 30 202.205.107.58Pinging 202.205.107.58 with 32 bytes
4、of data:Reply from 202.205.107.58:10ms TTL=126字节为32 时间小于10毫秒 生存时间为126Ping statistics for 202.205.107.58:统计网络的数据: Sent = 30, Received = 30, Lost = 0 (0% loss),发送为30,收回为30,丢失为0(丢失率为0%)最小值为10毫秒,最大值为0毫秒,平均值为0毫秒(7)用400字节长的包Ping指定的IP地址ping -l 400 202.205.107.10Pinging 202.205.107.10 with 400 bytes of data
5、:用400个数据字节验证网络与计算机的连接Reply from 202.205.107.10: bytes=400 timeIpconfig/allWindows IP Configuration Host Name . . . . . . . . . . . . : r5-045 Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . :Ether
6、net adapter 本地连接: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Realtek RTL8139 Family PCI Fast Ethernet NIC Physical Address. . . . . . . . . : 00-E0-4C-4C-A9-DB Dhcp Enabled. . . . . . . . . . . : IP Address. . . . . . . . . . . . : 10.64.5.45 Subnet Mask . . . . . . . . .
7、 . . : 255.255.255.0 Default Gateway . . . . . . . . . : 10.64.5.254 DNS Servers . . . . . . . . . . . : 202.205.107.103、网络连接统计工具NETSTAT.EXE(1)显示所有连接netstat -aActive Connections Proto Local Address Foreign Address State TCP r5-045:epmap r5-045:0 LISTENINGmicrosoft-ds r5-045:1161 r5-045:8177 r5-045:1
8、0019 r5-045:netbios-ssn r5-045:1028 10.64.7.199:10018 ESTABLISHED1045 r5-045:10019 ESTABLISHED1681 221.7.91.31:http SYN_SENT1682 10.64.7.122:7211 SYN_SENT1027 CLOSE_WAIT1045 ESTABLISHED1031 r5-045: UDP r5-045:microsoft-ds *:*isakmp *:ms-sql-m *:4500 *:5412 *:5999 *:6000 *:6002 *:ntp *:netbios-ns *:n
9、etbios-dgm *:1900 *:1099 *:(2)显示所有协议的统计信息netstat -sIPv4 Statistics Packets Received = 142692 Received Header Errors = 0 Received Address Errors = 94 Datagrams Forwarded = 0 Unknown Protocols Received = 0 Received Packets Discarded = 21591 Received Packets Delivered = 121098 Output Requests = 137681
10、Routing Discards = 0 Discarded Output Packets = 12 Output Packet No Route = 0 Reassembly Required = 0 Reassembly Successful = 0 Reassembly Failures = 0 Datagrams Successfully Fragmented = 0 Datagrams Failing Fragmentation = 0 Fragments Created = 0ICMPv4 Statistics Received Sent Messages 805 811 Erro
11、rs 0 0 Destination Unreachable 0 6 Time Exceeded 0 0 Parameter Problems 0 0 Source Quenches 0 0 Redirects 0 0 Echos 758 47 Echo Replies 47 758 Timestamps 0 0 Timestamp Replies 0 0 Address Masks 0 0 Address Mask Replies 0 0TCP Statistics for IPv4 Active Opens = 17741 Passive Opens = 12445 Failed Conn
12、ection Attempts = 13063 Reset Connections = 171 Current Connections = 4 Segments Received = 110285 Segments Sent = 120741 Segments Retransmitted = 9516UDP Statistics for IPv4 Datagrams Received = 10002 No Ports = 59 Receive Errors = 0 Datagrams Sent = 66084、操纵网络路由表的工具ROUTE.EXE(1)显示全部路由信息:route print
13、=Interface List0x1 . MS TCP Loopback interface0x2 .00 e0 4c 4c a9 db . Realtek RTL8139 Family PCI Fast Ethernet NIC -数据包计划程序微型端口Active Routes:Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.64.5.254 10.64.5.45 20 10.64.5.0 255.255.255.0 10.64.5.45 10.64.5.45 20 10.64.5.45 255
14、.255.255.255 127.0.0.1 127.0.0.1 20 10.255.255.255 255.255.255.255 10.64.5.45 10.64.5.45 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.64.5.45 10.64.5.45 20 255.255.255.255 255.255.255.255 10.64.5.45 10.64.5.45 1Default Gateway:Persistent Routes: None(2)添加一个路由route ADD157.0.0.0
15、 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2Manipulates 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 ru
16、nning 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 e
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1