• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C低端以太网交换机 典型配置指导(V1.01)

37-HWPing典型配置指导

本章节下载  (180.95 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/E/E328[E352]/Configure/Typical_Configuration_Example/E328[E352]_Typical_Configuration_Example(V1.01)/200808/614457_30005_0.htm

37-HWPing典型配置指导


第1章  HWPing典型配置指导

1.1  HWPing典型配置指导

HWPing是一种网络诊断工具,用以测量网络上运行的各种协议的性能,可以实现比普通ping命令更多的功能。

ping命令只能使用ICMP协议来测试数据报文在本端和指定的目的端之间的往返时间,从而判断到目的主机是否可达;

HWPing测试组是多个HWPing测试项的集合。一个测试组中可以包含若干个测试项目。每个测试组都有一个管理员名称和一个操作标签。管理员名称和操作标签可以唯一确定一个测试组。

建立测试组并配置好测试项参数后,就可以通过测试命令进行HWPing测试。

与ping命令不同的是,它不会在控制台终端上实时显示每个报文的往返时间或是否超时,而需要通过display hwping命令查看HWPing操作的统计结果。HWPing功能支持通过网管来设置各项操作的参数,并启动测试操作及查看测试的统计结果。

1.1.1  ICMP测试

1. 组网图

图1-1 ICMP测试组网图

2. 应用要求

两台交换机之间进行HWPing ICMP测试,和ping测试一样,是使用ICMP协议来测试数据报文在本端和指定的目的端之间的往返时间。

3. 适用产品、版本

表1-1 配置适用的交换机产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1510、Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1510、Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-C-SI系列

S3100-T-SI系列

Release 0011、Release 2102、Release 2107软件版本

全系列硬件版本

S3100-TP-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

(除S3100-52TP-SI)

S3100-52TP-SI

Release 2106、Release 2107软件版本

S3100-52TP-SI

S3100-52P

Release 1500、Release 1602软件版本

S3100-52P

S2000-EA系列

Release 2107软件版本

全系列硬件版本

S2126-EI

Release 2102、Release 2106软件版本

S2126-EI

E352&E328

Release 1510、Release 1602软件版本

E352&E328

E152

Release 1500、Release 1602软件版本

E152

E126

Release 0011、Release 2102、Release 2107软件版本

E126

E126A

Release 2104 、Release 2107软件版本

E126A

 

4. 配置过程和解释

# 开启HWping客户端。

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为ICMP。

[SwitchA] hwping administrator icmp

# 配置测试类型为ICMP。

[SwitchA-hwping-administrator-icmp] test-type icmp

# 配置目的IP地址为10.2.2.2。

[SwitchA-hwping-administrator-icmp] destination-ip 10.2.2.2

# 配置一次测试中进行探测的次数为10。

[SwitchA-hwping-administrator-icmp] count 10

# 配置探测的超时时间为5秒。

[SwitchA-hwping-administrator-icmp] timeout 5

# 启动测试操作。

[SwitchA-hwping-administrator-icmp] test-enable

# 查看测试结果。

[SwitchA-hwping-administrator-icmp] display hwping results administrator icmp

[SwitchA-hwping-administrator-icmp] display hwping history administrator icmp

关于显示信息的具体描述,请参见命令手册。

5. 完整配置

SwitchA上的配置

#

hwping-agent enable

hwping administrator icmp

 test-type icmp

 destination-ip 10.2.2.2

 count 10

 timeout 5

6. 配置注意事项

1.1.2  DHCP测试

1. 组网图

图1-2 DHCP测试组网图

2. 应用要求

在两台交换机之间进行HWPing DHCP测试,测试从DHCP服务器分配到IP地址所需的时间。

3. 适用产品、版本

表1-2 配置适用的产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-C-SI系列

S3100-T-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

S3100-TP-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

(除S3100-52TP-SI)

S3100-52TP-SI

Release 2106、Release 2107软件版本

S3100-52TP-SI

S3100-52P

Release 1602软件版本

S3100-52P

S2126-EI

Release 2102、Release 2106、Release 2107软件版本

S2126-EI

S2000-EA系列

Release 2107软件版本

全系列硬件版本

E352&E328

Release 1602软件版本

E352&E328

E152

Release 1602软件版本

E152

E126

Release 2102、Release 2107软件版本

E126

E126A

Release 2104、Release 2107软件版本

E126A

 

4. 配置过程和解释

l              配置DHCP Server(Switch B)

在SwitchB上配置DHCP服务器,关于DHCP服务器的具体配置可参见本手册“DHCP”中相关部分的介绍。

l              配置HWPing Client(Switch A)

# 开启HWping客户端。

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为DHCP。

[SwitchA] hwping administrator dhcp

# 配置测试类型为DHCP。

[SwitchA-hwping-administrator-dhcp] test-type dhcp

# 配置源接口,此接口必须为VLAN接口,DHCP服务器位于和此接口相连的网络上。

[SwitchA-hwping-administrator-dhcp] source-interface Vlan-interface 1

# 配置一次测试中进行探测的次数为10。

[SwitchA-hwping-administrator-dhcp] count 10

# 配置探测的超时时间为5秒。

[SwitchA-hwping-administrator-dhcp] timeout 5

# 启动测试操作。

[SwitchA-hwping-administrator-dhcp] test-enable

# 查看测试结果。

[SwitchA-hwping-administrator-dhcp] display hwping results administrator dhcp

[SwitchA-hwping-administrator-dhcp] display hwping history administrator dhcp

关于显示信息的具体描述,请参见命令手册。

5. 完整配置

SwitchA上的配置

#

hwping-agent enable

hwping administrator dhcp

 test-type dhcp

 source-interface Vlan-interface 1

 count 10

 timeout 5

6. 配置注意事项

1.1.3  HTTP测试

1. 组网图

图1-3 HTTP测试组网图

2. 应用要求

在HWPing客户端和HTTP服务器之间进行HWPing HTTP测试,测试与指定的HTTP服务器之间是否可以建立连接以及从HTTP服务器获取一个文件所用的时间。

3. 适用产品、版本

表1-3 配置适用的产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-C-SI系列

S3100-T-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

S3100-TP-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

(除S3100-52TP-SI)

S3100-52TP-SI

Release 2106、Release 2107软件版本

S3100-52TP-SI

S3100-52P

Release 1602软件版本

S3100-52P

S2126-EI

Release 2102、Release 2106、Release 2107软件版本

S2126-EI

S2000-EA系列

Release 2107软件版本

全系列硬件版本

E352&E328

Release 1602软件版本

E352&E328

E152

Release 1602软件版本

E152

E126

Release 2102、Release 2107软件版本

E126

E126A

Release 2104  、Release 2107软件版本

E126A

 

4. 配置过程和解释

l              配置HTTP Server

HTTP服务器使用Windows 2003 Server,关于HTTP服务器的配置请参见Windows 2003 Server的相关配置指导书。

l              配置HWPing Client

# 开启HWping客户端。

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为HTTP。

[SwitchA] hwping administrator http

# 配置测试类型为HTTP。

[SwitchA-hwping-administrator-dhcp] test-type http

# 配置HTTP服务器的IP地址为10.2.2.2。

[SwitchA-hwping-administrator-http] destination-ip 10.2.2.2

# 配置一次测试中进行探测的次数为10。

[SwitchA-hwping-administrator-dhcp] count 10

# 配置探测的超时时间为30秒。

[SwitchA-hwping-administrator-dhcp] timeout 30

# 启动测试操作。

[SwitchA-hwping-administrator-dhcp] test-enable

# 查看测试结果。

[SwitchA-hwping-administrator-dhcp] display hwping results administrator dhcp

[SwitchA-hwping-administrator-dhcp] display hwping history administrator dhcp

关于显示信息的具体描述,请参见命令手册。

5. 完整配置

SwitchA上的配置

#

hwping-agent enable

hwping administrator http

 test-type http

 destination-ip 10.2.2.2

 count 10

 timeout 30

6. 配置注意事项

1.1.4  指定端口的TCP测试(Tcpprivate测试)

1. 组网图

图1-4 Tcpprivate测试组网图

2. 应用要求

在两台交换机之间使用HWPing TCP Private测试本端(SwitchA)和指定的目的端(SwitchB)之间建立TCP连接的时间,使用的端口号设置为8000。

3. 适用产品、版本

表1-4 配置适用的产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-C-SI系列

S3100-T-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

S3100-TP-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

(除S3100-52TP-SI)

S3100-52TP-SI

Release 2106、Release 2107软件版本

S3100-52TP-SI

S3100-52P

Release 1602软件版本

S3100-52P

S2126-EI

Release 2102、Release 2106、Release 2107软件版本

S2126-EI

S2000-EA系列

Release 2107软件版本

全系列硬件版本

E352&E328

Release 1602软件版本

E352&E328

E152

Release 1602软件版本

E152

E126

Release 2102、Release 2107软件版本

E126

E126A

Release 2104  、Release 2107软件版本

E126A

 

4. 配置过程和解释

l              配置HWPing Server(Switch B)

# 开启HWPing服务器,配置监听的IP地址和端口号。

<SwitchB> system-view

System View: return to User View with Ctrl+Z.

[SwitchB] hwping-server enable

[SwitchB] hwping-server tcpconnect 10.2.2.2 8000

l              配置HWPing Client(Switch A)

# 开启HWping客户端。

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为tcpprivate。

[SwitchA] hwping administrator tcpprivate

# 配置测试类型为tcpprivate。

[SwitchA-hwping-administrator-tcpprivate] test-type tcpprivate

# 配置HWPing服务器的IP地址为10.2.2.2。

[SwitchA-hwping-administrator-tcpprivate] destination-ip 10.2.2.2

# 配置HWPing服务器的目的端口。

[SwitchA-hwping-administrator-tcpprivate] destination-port 8000

# 配置一次测试中进行探测的次数为10。

[SwitchA-hwping-administrator-tcpprivate] count 10

# 配置探测的超时时间为5秒。

[SwitchA-hwping-administrator-tcpprivate] timeout 5

# 启动测试操作。

[SwitchA-hwping-administrator-tcpprivate] test-enable

# 查看测试结果。

[SwitchA-hwping-administrator-tcpprivate] display hwping results administrator tcpprivate

[SwitchA-hwping-administrator-tcpprivate] display hwping history administrator tcpprivate

关于显示信息的具体描述,请参见命令手册。

5. 完整配置

l              SwitchB上的配置

#

hwping-server enable

hwping-server tcpconnect 10.2.2.2 8000

l              SwitchA上的配置

#

hwping-agent enable

hwping administrator tcpprivate

 test-type tcpprivate

 destination-ip 10.2.2.2

 destination-port 8000

 count 10

 timeout 5

6. 配置注意事项

1.1.5  DNS测试

1. 组网图

图1-5 DNS测试组网图

2. 应用要求

在交换机和DNS服务器之间进行HWPing DNS测试,测试从客户端发送一个DNS请求域名解析报文到收到DNS服务器域名解析结果的时间。

3. 适用产品、版本

表1-5 配置适用的产品与软硬件版本关系

产品

软件版本

硬件版本

S5600系列

Release 1602软件版本

全系列硬件版本

S5100-SI/EI系列

Release2200、Release 2201软件版本

全系列硬件版本

S3600-SI/EI系列

Release 1602软件版本

全系列硬件版本

S3100-EI系列

Release 2104、Release 2107软件版本

全系列硬件版本

S3100-C-SI系列

S3100-T-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

S3100-TP-SI系列

Release 2102、Release 2107软件版本

全系列硬件版本

(除S3100-52TP-SI)

S3100-52TP-SI

Release 2106、Release 2107软件版本

S3100-52TP-SI

S3100-52P

Release 1602软件版本

S3100-52P

S2126-EI

Release 2102、Release 2106、Release 2107软件版本

S2126-EI

S2000-EA系列

Release 2107软件版本

全系列硬件版本

E352&E328

Release 1602软件版本

E352&E328

E152

Release 1602软件版本

E152

E126

Release 2102、Release 2107软件版本

E126

E126A

Release 2104、Release 2107软件版本

E126A

 

4. 配置过程和解释

l              配置DNS Server

DNS服务器使用Windows 2003 Server,关于DNS服务器的配置请参见Windows 2003 Server的相关配置指导书。

l              配置HWPing Client(Switch A)

# 开启HWping客户端。

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] hwping-agent enable

# 创建一个HWPing测试组。指定的管理员名字为administrator,测试操作标签为dns。

[SwitchA] hwping administrator dns

# 配置测试类型为dns。

[SwitchA-hwping-administrator-dns] test-type dns

# 配置DNS服务器的IP地址为10.2.2.2。

[SwitchA-hwping-administrator-dns] destination-ip 10.2.2.2

# 配置DNS测试要解析的域名为www.test.com。

[SwitchA-hwping-administrator-dns] dns resolve-target www.test.com

# 配置一次测试中进行探测的次数为10。

[SwitchA-hwping-administrator-dns] count 10

# 配置探测的超时时间为5秒。

[SwitchA-hwping-administrator-dns] timeout 5

# 启动测试操作。

[SwitchA-hwping-administrator-dns] test-enable

# 查看测试结果。

[SwitchA-hwping-administrator-dns] display hwping results administrator dns

[SwitchA-hwping-administrator-dns] display hwping history administrator dns

关于显示信息的具体描述,请参见命令手册。

5. 完整配置

SwitchA上的配置

#

hwping-agent enable

hwping administrator dns

 test-type dns

 destination-ip 10.2.2.2

 dns resolve-target www.test.com

 count 10

 timeout 5

6. 配置注意事项

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们