|
Ⅰ Ping
C:\> Ping 61.136.253.204 [向61.136.253.204发送数据包]
Pinging 61.136.253.204 With 32 bytes of data: [正在发送 32 字节的包到 :61.136.253.204]
Request timed out. [丢包 原因:超时]
Reply from 61.136.253.204: bytes=32 time=62ms TTL=120 [正确抵达|大小32字节|消耗时间 62ms ]
Reply from 61.136.253.204: bytes=32 time=69ms TTL=120
Reply from 61.136.253.204: bytes=32 time=59ms TTL=120 </P><P> Ping statistics for 61.136.253.204 [资料统计]
Packets: Sent = 4, Received = 3, Lost = 1 <25% loss>, [发送了4个数据包,收到了3个,丢失1个占25% ]
Approximate round trip times in milli-seconds:
Minimum = 59ms, Maximum = 69ms, Average = 63ms [最快抵达 59ms 最慢 69 ms 平均时间 63ms]
现在我们来加入命令参数:
C:\> Ping -a 61.136.253.204 -l 1 -t [-a 代表同时获取主机名 -l 1 指定 包大小为 1bytes -t 直到用户手动终止]
Pinging XINGXING [61.136.253.204] With 1 bytes of data:
Reply from 61.136.253.204: bytes=1 time=49ms TTL=120 [因为只发送1字节的包,所以时间缩短了]
Reply from 61.136.253.204: bytes=1 time=59ms TTL=120
Reply from 61.136.253.204: bytes=1 time=54ms TTL=120
Reply from 61.136.253.204: bytes=1 time=55ms TTL=120
Reply from 61.136.253.204: bytes=1 time=50ms TTL=120
Reply from 61.136.253.204: bytes=1 time=49ms TTL=120
Reply from 61.136.253.204: bytes=1 time=49ms TTL=120 </P><P> Ping statistics for 61.136.253.204
Packets: Sent = 7, Received = 7, Lost = 0 <0% loss>, [发送了7个数据包,收到了7个,丢失0个占0% ]
Approximate round trip times in milli-seconds:
Minimum = 49ms, Maximum = 59ms, Average = 52ms [最快抵达 59ms 最慢 69 ms 平均时间 63ms]
Control-C [按 Ctrl + C 强行终止]
^C
C:\> </P><P>
——————————————————————————————————————————
——————————————————————————————————————————
—————————————————————————————————————————— </P><P>
Ⅱ Netstat [这是一个观察网络连接状态的实用工具]
C:\> Netstat -a [显示协议与当前网络连接] </P><P> Active Connections [活动的连接] </P><P> [端口类型] [本地的] [外部连接] [状态]
Proto Local Address Foreign Address State
TCP freefwq:telnet freefwq:0 LISTENING [端口类型 TCP 端口 Telnet 监听状态]
TCP freefwq:epmap freefwq:0 LISTENING
TCP freefwq:microsoft-ds freefwq:0 LISTENING
TCP freefwq:1026 freefwq:0 LISTENING [端口类型 TCP 端口 1027 **** ]
TCP freefwq:1027 freefwq:0 LISTENING
TCP freefwq:5277 freefwq:0 LISTENING
UDP freefwq:microsoft-ds *:*
UDP freefwq:3001 *:*
UDP freefwq:3005 *:* [端口类型 UDP 端口 3005]
UDP freefwq:4000 *:*
UDP freefwq:5419 *:*
.
.
.
C:\> Netstat -n -a [扩展命令参数] </P><P> Active Connections [活动的连接] </P><P> TCP 192.168.0.1:139 0.0.0.0:0 LISTENING
TCP 192.168.0.1:3002 0.0.0.0:0 LISTENING
TCP 192.168.0.1:3003 0.0.0.0:0 LISTENING
TCP 192.168.0.1:3004 0.0.0.0:0 LISTENING
TCP 211.91.155.117:139 0.0.0.0:0 LISTENING
TCP 211.91.155.117:8384 61.186.175.113:2887 ESTABLISHED [现在就可以很清楚的看见IP地址和端口名了]
UDP 0.0.0.0:135 *:*
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:3001 *:*
UDP 0.0.0.0:3005 *:* |
|