Example for Configuring a Trace Test Instance
Networking Requirements
As shown in Figure 4-8, a trace test needs to be performed to trace the IP address of VLANIF110 of SwitchC on SwitchA.
Configuration Roadmap
The configuration roadmap is as follows:
Configure SwitchA as an NQA client.
Create and start a trace test instance on SwitchA to obtain statistics about each hop from SwitchA to SwitchC.
Procedure
- Configure an IP address for each interface
and ensure reachable routes between switches, as shown in Figure 4-8.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] vlan 100
[SwitchA-vlan100] quit
[SwitchA] interface ethernet 0/0/1
[SwitchA-Ethernet0/0/1] port hybrid pvid vlan 100
[SwitchA-Ethernet0/0/1] port hybrid untagged vlan 100
[SwitchA-Ethernet0/0/1] quit
[SwitchA] interface Vlanif 100
[SwitchA-Vlanif100] ip address 10.1.1.1 24
[SwitchA-Vlanif100] quit
[SwitchA] ip route-static 10.2.1.0 255.255.255.0 10.1.1.2
For configurations of SwitchB and SwitchC, see the configuration files.
- Create an NQA trace test instance on SwitchA and set the destination
IP address to 10.2.1.2.
[SwitchA] nqa test-instance admin trace
[SwitchA-nqa-admin-trace] test-type trace
[SwitchA-nqa-admin-trace] destination-address ipv4 10.2.1.2
- Start the test instance.
[SwitchA-nqa-admin-trace] start now
- Check the configuration.
# Check NQA test results on SwitchA.
[SwitchA-nqa-admin-trace] display nqa results test-instance admin trace
NQA entry(admin, trace) :testflag is inactive ,testtype is trace 1 . Test 1 result The test is finished Completion:success Attempts number:1 Disconnect operation number:0 Operation timeout number:0 System busy operation number:0 Connection fail number:0 Operation sequence errors number:0 RTT Stats errors number:0 Drop operation number:0 Last good path Time:2012-07-17 11:21:27.2 1 . Hop 1 Send operation times: 3 Receive response times: 3 Min/Max/Average Completion Time: 1/1/1 Sum/Square-Sum Completion Time: 3/3 RTD OverThresholds number: 0 Last Good Probe Time: 2012-07-17 11:21:27.2 Destination ip address:10.1.1.2 Lost packet ratio: 0 % 2 . Hop 2 Send operation times: 3 Receive response times: 3 Min/Max/Average Completion Time: 15/30/23 Sum/Square-Sum Completion Time: 70/1750 RTD OverThresholds number: 0 Last Good Probe Time: 2012-07-17 11:22:13.2 Destination ip address:10.2.1.2 Lost packet ratio: 0 %
Configuration Files
Configuration file of SwitchA
# sysname SwitchA # vlan batch 100 # interface Vlanif100 ip address 10.1.1.1 255.255.255.0 # interface Ethernet0/0/1 port hybrid pvid vlan 100 port hybrid untagged vlan 100 # nqa test-instance admin trace test-type trace destination-address ipv4 10.2.1.2 # ip route-static 10.2.1.0 255.255.255.0 10.1.1.2 # return
Configuration file of SwitchB
# sysname SwitchB # vlan batch 100 110 # interface Vlanif100 ip address 10.1.1.2 255.255.255.0 # interface Vlanif110 ip address 10.2.1.1 255.255.255.0 # interface Ethernet0/0/1 port hybrid pvid vlan 100 port hybrid untagged vlan 100 # interface Ethernet0/0/2 port hybrid pvid vlan 110 port hybrid untagged vlan 110 # return
Configuration file of SwitchC
# sysname SwitchC # vlan batch 110 # interface Vlanif110 ip address 10.2.1.2 255.255.255.0 # interface Ethernet0/0/1 port hybrid pvid vlan 110 port hybrid untagged vlan 110 # ip route-static 10.1.1.0 255.255.255.0 10.2.1.1 # return