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

H3C S5830V2[S5820V2]系列以太网交换机 典型配置举例-Release22xx系列-6W100

目录

55-NQA典型配置举例

本章节下载 55-NQA典型配置举例  (128.86 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S5800/S5830V2/Configure/Typical_Configuration_Example/H3C_S5830V2[S5820V2]-Release22xx-6W100/201403/819621_30005_0.htm

55-NQA典型配置举例


1  NQA典型配置举例

1.1  简介

本章介绍了与NQA相关的典型配置举例。

1.2  ICMP-echo测试典型配置指导

1.2.1  适用产品和版本

表1 适用产品和版本

产品

软件版本

S5830V2&S5820V2系列以太网交换机

Release 2208P01,Release 2210

 

1.2.2  组网需求

当前网络如图1所示,现要求使用ICMP-echo测试功能测试Switch A发送的报文经过Switch B是否可以到达Switch C,以及报文的往返时间。

图1 ICMP-echo测试组网图

 

1.2.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

1.2.4  配置步骤

# 创建ICMP-echo类型的NQA测试组并配置测试操作的目的地址。

<SwitchA> system-view

[SwitchA] nqa entry admin test

[SwitchA-nqa-admin-test] type icmp-echo

[SwitchA-nqa-admin-test-icmp-echo] destination ip 10.3.3.3

# 配置NQA测试报文的下一跳IP地址。

[SwitchA-nqa-admin-test-icmp-echo] next-hop 10.1.1.2

# 配置测试组每次测试之间的时间间隔为5000毫秒(如果到达frequency指定的时间间隔时,上次测试尚未完成,则不启动新一轮测试)。

[SwitchA-nqa-admin-test-icmp-echo] frequency 5000

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

[SwitchA-nqa-admin-test-icmp-echo] probe count 10

# 配置一个测试组中能够保存的最大历史记录个数为10。

[SwitchA-nqa-admin-test-icmp-echo] history-record enable

[SwitchA-nqa-admin-test-icmp-echo] history-record number 10

# 启动ICMP-echo测试操作。

[SwitchA-nqa-admin-test-icmp-echo] quit

[SwitchA] nqa schedule admin test start-time now lifetime forever

# 测试执行一段时间后,停止ICMP-echo测试操作。

[SwitchA] undo nqa schedule admin test

1.2.5  验证配置

# 以上配置完成后,显示ICMP-echo测试中最后一次测试的结果。

[SwitchA] display nqa result admin test

  NQA entry(admin admin, tag test) test results:

    Destination IP address: 10.3.3.3

      Send operation times: 10             Receive response times: 10

      Min/Max/Average round trip time: 0/16/1

      Square-Sum of round trip time: 256

      Last succeeded probe time: 2013-09-25 14:08:29.7

    Extend results:

      Packet loss in test: 0% 

      Failures due to timeout: 0     

      Failures due to internal error: 0       

      Failures due to other errors: 0

# 显示ICMP-echo测试的历史记录。

[SwitchA] display nqa history admin test

  NQA entry (admin admin, tag test) history record(s):      

    Index      Response     Status           Time            

    280        2            Succeeded        2013-09-25 14:10:04.7       

    279        2            Succeeded        2013-09-25 14:10:04.7       

    278        2            Succeeded        2013-09-25 14:10:04.7       

    277        2            Succeeded        2013-09-25 14:10:04.7       

    276        2            Succeeded        2013-09-25 14:10:04.7       

    275        2            Succeeded        2013-09-25 14:10:04.7       

    274        2            Succeeded        2013-09-25 14:10:04.7       

    273        2            Succeeded        2013-09-25 14:10:04.7       

    272        2            Succeeded        2013-09-25 14:10:04.7       

    271        2            Succeeded        2013-09-25 14:10:04.7

1.2.6  配置文件

#

nqa entry admin test

 type icmp-echo

  destination ip 10.3.3.3

  frequency 5000

  history-record enable

  history-record number 10

  next-hop 10.1.1.2

  probe count 10

#

 nqa schedule admin test start-time now lifetime forever

#

1.3  UDP-echo测试典型配置指导

1.3.1  适用产品和版本

配置适用的产品与软件版本关系

产品

软件版本

S5830V2&S5820V2系列以太网交换机

Release 2208P01,Release 2210

 

1.3.2  组网需求

当前网络如图2所示,现要求使用UDP-echo测试功能,测试Switch A和Switch B的端口8000之间UDP协议报文的往返时间。

图2 UDP-echo测试组网图

 

1.3.3  配置注意事项

·     进行NQA测试之前,请确保各设备之间路由可达。

·     在进行UDP-echo类型测试前,必须配置SwitchB为NQA服务器。

·     测试组开始测试后就不能再进入该测试组视图和测试类型视图进行配置修改,测试结束后才可以进入该测试组视图和测试类型视图。

1.3.4  配置步骤

(1)     配置Switch B

# 使能NQA服务器,配置监听的IP地址为10.2.2.2,UDP端口号为8000。

<SwitchB> system-view

[SwitchB] nqa server enable

[SwitchB] nqa server udp-echo 10.2.2.2 8000

(2)     配置Switch A

# 创建UDP-echo类型的测试组。

<SwitchA> system-view

[SwitchA] nqa entry admin test

[SwitchA-nqa-admin-test] type udp-echo

# 配置测试操作的目的地址和目的端口号。

[SwitchA-nqa-admin-test-udp-echo] destination ip 10.2.2.2

[SwitchA-nqa-admin-test-udp-echo] destination port 8000

# 开启NQA测试组的历史记录保存功能。

[SwitchA-nqa-admin-test-udp-echo] history-record enable

# 启动测试操作。

[SwitchA-nqa-admin-test-udp-echo] quit

[SwitchA] nqa schedule admin test start-time now lifetime forever

# 测试执行一段时间后,停止UDP-echo测试操作。

[SwitchA] undo nqa schedule admin test

1.3.5  验证配置

# 以上配置完成后,显示UDP-echo测试中一次测试的结果。

[SwitchA] display nqa result admin test

  NQA entry (admin admin, tag test) test results:               

    Destination IP address: 10.2.2.2   

      Send operation times: 1              Receive response times: 1

      Min/Max/Average round trip time: 10/10/10                  

      Square-Sum of round trip time: 100   

      Last succeeded probe time: 2013-09-25 14:20:32.6           

    Extended results:

      Packet loss in test: 0%              

      Failures due to timeout: 0           

      Failures due to internal error: 0    

      Failures due to other errors: 0

# 显示UDP-echo测试的历史记录。

[SwitchA] display nqa history admin test

  NQA entry (admin admin, tag test) history record(s):           

    Index      Response     Status           Time                

    1          10           Succeeded        2013-09-25 14:20:32.6

1.3.6  配置文件

·     SwitchB

#

 nqa server enable

 nqa server udp-echo 10.2.2.2 8000

·     SwitchA

#

nqa entry admin test

 type udp-echo

  destination ip 10.2.2.2

  destination port 8000

  history-record enable

#

 nqa schedule admin test start-time now lifetime forever

#

 

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

新华三官网
联系我们