配置DNS测试示例
操作步骤
- 配置SwitchA的接口地址,且和server.com、DNS
Server路由可达
<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 [SwitchA] ospf [SwitchA-ospf-1] area 0 [SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [SwitchA-ospf-1-area-0.0.0.0] quit [SwitchA-ospf-1] quit
- 配置DNS类型的NQA测试例
[SwitchA] dns resolve [SwitchA] dns server 10.3.1.1 [SwitchA] nqa test-instance admin dns [SwitchA-nqa-admin-dns] test-type dns [SwitchA-nqa-admin-dns] dns-server ipv4 10.3.1.1 [SwitchA-nqa-admin-dns] destination-address url server.com
- 启动测试操作
[SwitchA-nqa-admin-dns] start now
- 验证测试结果
[SwitchA-nqa-admin-dns] display nqa results test-instance admin dns NQA entry(admin, dns) :testflag is inactive ,testtype is dns 1 . Test 1 result The test is finished Send operation times: 1 Receive response times: 1 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.3.1.1 Min/Max/Average Completion Time: 1/1/1 Sum/Square-Sum Completion Time: 1/1 Last Good Probe Time: 2012-07-20 16:23:49.1 Lost packet ratio: 0 %
配置文件
SwitchA的配置文件
# sysname SwitchA # dns resolve dns server 10.3.1.1 # 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 # ospf 1 area 0.0.0.0 network 10.1.1.0 0.0.0.255 # nqa test-instance admin dns test-type dns destination-address url server.com dns-server ipv4 10.3.1.1 # return