配置NQA检测MPLS网络连通性示例
本示例通过LSP ping测试检测MPLS网络连通性。
操作步骤
- 配置LSP Ping测试用例
<DeviceA> system-view [~DeviceA] nqa test-instance admin lspping [*DeviceA-nqa-admin-lspping] test-type lspping [*DeviceA-nqa-admin-lspping] lsp-type ipv4 [*DeviceA-nqa-admin-lspping] destination-address ipv4 3.3.3.9 lsp-masklen 32
- 启动测试操作
[*DeviceA-nqa-admin-lspping] start now [*DeviceA-nqa-admin-lspping] commit
- 验证测试结果。
[~DeviceA-nqa-admin-lspping] display nqa results test-instance admin lspping NQA entry(admin, lspping) :testFlag is inactive ,testtype is lspping 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 Stats errors number:0 Destination ip address:3.3.3.9 Min/Max/Average Completion Time: 1/1/1 Sum/Square-Sum Completion Time: 3/3 Last Good Probe Time: 2007-1-30 15:32:56.1 Lost packet ratio:0%
- 配置每天上午10:00开始测试
[~DeviceA-nqa-admin-lspping] stop [*DeviceA-nqa-admin-lspping] start daily 10:00:00 to 10:30:00 [*DeviceA-nqa-admin-lspping] commit
配置文件
DeviceA的配置文件
# sysname DeviceA # mpls lsr-id 1.1.1.9 # mpls # mpls ldp # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 1.1.1.9 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 1.1.1.9 0.0.0.0 # nqa test-instance admin lspping test-type lspping destination-address ipv4 3.3.3.9 lsp-masklen 32 start daily 10:00:00 to 10:30:00 # return
DeviceB的配置文件
# sysname DeviceB # mpls lsr-id 2.2.2.9 # mpls # mpls ldp # interface GigabitEthernet0/1/0 undo shutdown ip address 10.1.1.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet0/2/0 undo shutdown ip address 10.2.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 2.2.2.9 255.255.255.255 # ospf 1 area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.2.1.0 0.0.0.255 # return
DeviceC的配置文件
# sysname DeviceC # mpls lsr-id 3.3.3.9 # mpls # mpls ldp # interface GigabitEthernet0/1/0 undo shutdown ip address 10.2.1.2 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 3.3.3.9 255.255.255.255 # ospf 1 area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.2.1.0 0.0.0.255 # return