Cixi Deshun Container Co., Ltd.
 
 
□ 公司简介
 
□ 企业文化
 
□ 组织机构
德顺优质产品
    德鑫机械滚塑设备
    滚塑模具
    滚塑水箱
    锥底水箱
    发泡保温水箱
    卧式储罐
    钢塑复合制品
    物流箱
    加药箱
    溶盐箱
    圆形桶
    方形桶
    大口径缠绕管与罐槽
    滚塑OEM产品
常用TCP/IP诊断实用程序使用简介

注:以下命令为Windows 2000命令集

ping命令
ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count]
-t  Ping 指定的计算机直到中断。
不停的ping地方主机,直到你按下 Ctrl+C中断。
此命令主要是应用:开始->运行->ping –t hong 模式下,可以长时间显示网络连通状态,并看到对方IP地址。
示例:C:\>ping -t liuk
Pinging hong [128.2.2.103] with 32 bytes of data:
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Reply from 128.2.2.103: bytes=32 time<10ms TTL=128
Ping statistics for 128.2.2.103:
    Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum =  0ms, Average =  0ms
Control-C
^C
-a  将地址解析为计算机名,解析计算机NetBIOS名。
从下面示例可以知道IP为192.168.1.21的计算机NetBIOS名为iceblood.yofor.com。
示例:C:\>ping -a 192.168.1.21
Pinging iceblood.yofor.com [192.168.1.21] with 32 bytes of data:
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Reply from 192.168.1.21: bytes=32 time<10ms TTL=254
Ping statistics for 192.168.1.21:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
注:在整个企业网络被接入Internet后,若内部网络使用的IP地址为公网IP,析出的NetBIOS名为此IP地址的公网NetBIOS名称。
-n count  发送 count 指定的 ECHO 数据包数,默认值为 4。
在默认情况下,一般都只发送四个数据包,通过这个命令可以自己定义发送的个数,对衡量网络速度很有帮助,比如我想测试发送50个数据包的返回的平均时间为多少,最快时间为多少,最慢时间为多少就可以通过以下获知:
从下面示例可以知道在给202.103.96.68发送50个数据包的过程当中,返回了48个,其中有两个由于未知原因丢失,这48个数据包当中返回速度最快为40ms,最慢为51ms,平均速度为46ms。
示例:C:\>ping -n 50 202.103.96.68
Pinging 202.103.96.68 with 32 bytes of data:
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Request timed out.
………………
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Reply from 202.103.96.68: bytes=32 time=50ms TTL=241
Ping statistics for 202.103.96.68:
Packets: Sent = 50, Received = 48, Lost = 2 (4% loss),Approximate round trip times in milli-seconds:
Minimum = 40ms, Maximum = 51ms, Average = 46ms
-i TTL 生存时间
指定TTL值在对方的系统里停留的时间。
此参数同样是帮助你检查网络运转情况的。
-r count 在“记录路由”字段中记录传出和返回数据包的路由。
在一般情况下你发送的数据包是通过一个个路由才到达对方的,但到底是经过了哪些路由呢?通过此参数就可以设定你想探测经过的路由的个数,不过限制在了9个,也就是说你只能跟踪到9个路由.
从下面示例可以知道从我的计算机到202.96.105.101一共通过了202.107.208.187 ,202.107.210.214 , 61.153.112.70 , 61.153.112.89 , 202.96.105.149 , 202.96.105.97这几个路由。
示例: C:\>ping -n 1 -r 9 202.96.105.101 (发送一个数据包,最多记录9个路由)
Pinging 202.96.105.101 with 32 bytes of data:
Reply from 202.96.105.101: bytes=32 time=10ms TTL=249
Route: 202.107.208.187 ->
202.107.210.214 ->
61.153.112.70 ->
61.153.112.89 ->
202.96.105.149 ->
202.96.105.97 ->
202.96.105.101 ->
202.96.105.150 ->
61.153.112.90
Ping statistics for 202.96.105.101:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 10ms, Average = 10ms
Ipconfig命令
该诊断命令显示所有当前的 TCP/IP 网络配置值。该命令在运行 DHCP 系统上的特殊用途,允许用户决定 DHCP 配置的 TCP/IP 配置值。
ipconfig [/all | /renew [adapter] | /release [adapter]]
/all
产生完整显示适配器信息。在没有该开关的情况下 ipconfig 只显示 IP 地址、子网掩码和每个网卡的默认网关值。
示例:C:\>ipconfig /all
Windows 2000 IP Configuration
        Host Name . . . . . . . . . . . . : hong
        Primary DNS Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Broadcast
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : D-Link DFE-530TX PCI Fast Ethernet A
dapter
        Physical Address. . . . . . . . . : 00-50-BA-F1-74-5F
        DHCP Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.2.5
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.2.1
        DHCP Server . . . . . . . . . . . : 192.168.2.1
        DNS Servers . . . . . . . . . . . : 202.103.2.33
                                 169.88.7.9
        Lease Obtained. . . . . . . . . . : 2003年3月20日 8:47:32(租约获得)
        Lease Expires . . . . . . . . . . : 2038年1月19日 11:14:07(租约到期)
/renew [adapter]
更新 DHCP 配置参数。该选项只在运行 DHCP 客户端服务的系统上可用。要指定适配器名称,请键入使用不带参数的 ipconfig 命令显示的适配器名称。
示例:C:\>ipconfig /renew
Windows 2000 IP Configuration
Ethernet adapter 本地连接:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 162.168.2.103
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . : 192.168.2.10
注:此命令用于更新 DHCP 配置参数,使适配器获取最新的DHCP 配置参数,已确保服务器修改DHCP 配置参数后,客户端及时更新配置。
/release [adapter]
发布当前的 DHCP 配置。该选项禁用本地系统上的 TCP/IP,并只在 DHCP 客户端上可用。要指定适配器名称,请键入使用不带参数的 ipconfig 命令显示的适配器名称。
如果没有参数,那么 ipconfig 实用程序将向用户提供所有当前的 TCP/IP 配置值,包括 IP 地址和子网掩码。该使用程序在运行 DHCP 的系统上特别有用,允许用户决定由 DHCP 配置的值。
示例:C:\>ipconfig /release
Windows 2000 IP Configuration
IP address successfully released for adapter "本地连接"
Nbtstat命令
该诊断命令使用 NBT(TCP/IP 上的 NetBIOS)显示协议统计和当前 TCP/IP 连接。该命令只有在安装了 TCP/IP 协议之后才可用。
Nbtstat  [-a remotename] [-A IP address] [-c] [-n] [-R] [-r] [-S] [-s] [interval]
-A IP address  使用远程计算机的 IP 地址并列出名称表。
示例:C:\>nbtstat -A  128.2.2.103
本地连接:
Node IpAddress: [128.2.2.103] Scope Id: []
           NetBIOS Remote Machine Name Table
       Name               Type         Status
    ---------------------------------------------
    INet~Services      <1C>  GROUP       Registered
    IS~HONG........      <00>  UNIQUE      Registered
    HONG             <00>  UNIQUE      Registered
    HONG             <03>  UNIQUE      Registered
    WORKGROUP     <00>  GROUP       Registered
    WORKGROUP     <1E>  GROUP       Registered
    HONG             <20>  UNIQUE      Registered
 
    MAC Address = 00-50-BA-F1-74-5F
-n 
列出本地 NetBIOS 名称。“已注册”表明该名称已被广播 (Bnode) 或者 WINS(其他节点类型)注册。
示例同上
-R
清除 NetBIOS 名称缓存中的所有名称后,重新装入 Lmhosts 文件。
-r
列出 Windows 网络名称解析的名称解析统计。在配置使用 WINS 的 Windows 2000 计算机上,此选项返回要通过广播或 WINS 来解析和注册的名称数。
示例C:\>nbtstat -r
    NetBIOS Names Resolution and Registration Statistics
    ----------------------------------------------------
    Resolved By Broadcast     = 18
    Resolved By Name Server   = 0
    Registered By Broadcast   = 12
    Registered By Name Server = 0
    NetBIOS Names Resolved By Broadcast
---------------------------------------------
           TEST7
           TEST7
           TEST7
           YSSERVER
           SERVER         <00>
           TEST7
           TEST7
           YSSERVER
-S    显示客户端和服务器会话,只通过 IP 地址列出远程计算机。
具体示例参见《常用TCP/IP测试方法》
-s     显示客户端和服务器会话。尝试将远程计算机 IP 地址转换成使用主机文件的名称。
 

网站首页 | 关于我们 | 产品介绍 | 销售网络 | 服务支持 | 联系我们
CopyRight © 2008 - 2010 德顺容器 版权所有 滚塑滚塑设备 网站地图
鲁ICP备05010949号