配置ICMP测试示例
配置思路
采用如下思路进行配置:
- 使用NQA ICMP测试功能,测试报文在本端(SwitchA)和指定的目的端(SwitchB)之间是否可达。
- 使用NQA ICMP测试功能,测试报文在本端(SwitchA)和指定的目的端(SwitchB)之间的往返时间。
操作步骤
- 配置SwitchA的IP地址
<Quidway> system-view [Quidway] sysname SwitchA [SwitchA] vlan 100 [SwitchA-vlan100] quit [SwitchA] interface gigabitethernet 1/0/1 [SwitchA-GigabitEthernet1/0/1] port hybrid pvid vlan 100 [SwitchA-GigabitEthernet1/0/1] port hybrid untagged vlan 100 [SwitchA-GigabitEthernet1/0/1] quit [SwitchA] interface vlanif 100 [SwitchA-Vlanif100] ip address 10.1.1.1 24 [SwitchA-Vlanif100] quit
- 配置SwitchB的IP地址
<Quidway> system-view [Quidway] sysname SwitchB [SwitchB] vlan 100 [SwitchB-vlan100] quit [SwitchB] interface gigabitethernet 1/0/1 [SwitchB-GigabitEthernet1/0/1] port hybrid pvid vlan 100 [SwitchB-GigabitEthernet1/0/1] port hybrid untagged vlan 100 [SwitchB-GigabitEthernet1/0/1] quit [SwitchB] interface vlanif 100 [SwitchB-Vlanif100] ip address 10.1.1.2 24 [SwitchB-Vlanif100] quit
- 使能NQA客户端,配置ICMP类型的NQA测试例
[SwitchA] nqa test-instance admin icmp [SwitchA-nqa-admin-icmp] test-type icmp [SwitchA-nqa-admin-icmp] destination-address ipv4 10.1.1.2
- 启动测试
[SwitchA-nqa-admin-icmp] start now
- 验证测试结果
[SwitchA-nqa-admin-icmp] display nqa results test-instance admin icmp NQA entry(admin, icmp) :testflag is inactive ,testtype is icmp 1 . Test 1 result The test is finished Send operation times: 3 Receive response times: 3 Completion:success RTD OverThresholds number: 0 Attempts number:1 Drop operation number:0 Disconnect operation number:0 Operation timeout number:0 System busy operation number:0 Connection fail number:0 Operation sequence errors number:0 RTT Status errors number:0 Destination ip address:10.1.1.2 Min/Max/Average Completion Time: 3/125/44 Sum/Square-Sum Completion Time: 132/15650 Last Good Probe Time: 2014-11-28 13:55:52.5 Lost packet ratio: 0 %
配置文件
SwitchA的配置文件
# sysname SwitchA # vlan batch 100 # interface Vlanif100 ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet1/0/1 port hybrid pvid vlan 100 port hybrid untagged vlan 100 # nqa test-instance admin icmp test-type icmp destination-address ipv4 10.1.1.2 # return
SwitchB的配置文件
# sysname SwitchB # vlan batch 100 # interface Vlanif100 ip address 10.1.1.2 255.255.255.0 # interface GigabitEthernet1/0/1 port hybrid pvid vlan 100 port hybrid untagged vlan 100 # return