配置单跳PW的PWE3 Ping测试示例
组网需求
如图6-51所示。CE-A、CE-B分别接入PE-A和PE-B。PE-A和PE-B用MPLS骨干网连接。在PE-A和PE-B之间使用LSP隧道建立动态PW。
使用单跳PW的PWE3 Ping功能测试PE-A与PE-B之间的PW连通性状态。
配置思路
采用如下思路进行配置:
在骨干网上运行IGP路由协议,使骨干网各Switch能互通。
在骨干网上配置MPLS基本能力,建立LSP隧道。且PW两端的PE之间要建立MPLS LDP远端对等体关系。
在PE上创建MPLS L2VC连接。
在PE-A上配置单跳PW的PWE3 Ping测试例。
操作步骤
- 配置单跳动态PW。
在MPLS骨干网上配置单跳动态PW。具体配置过程请参见《S9300, S9300X V200R019C10 配置指南-VPN》 PWE3配置。
- 配置单跳PW的PWE3 Ping测试例。
# 配置PE-A。
<Quidway> system-view [Quidway] sysname PE-A [PE-A] nqa test-instance test pwe3ping [PE-A-nqa-test-pwe3ping] test-type pwe3ping [PE-A-nqa-test-pwe3ping] local-pw-id 100 [PE-A-nqa-test-pwe3ping] local-pw-type vlan [PE-A-nqa-test-pwe3ping] label-type control-word
- 启动测试操作。
[PE-A-nqa-test-pwe3ping] start now
- 验证测试结果。
在PE上执行display nqa results命令,可以看到测试结果为成功。
[PE-A-nqa-test-pwe3ping] display nqa results NQA entry(test, pwe3ping) :testflag is inactive ,testtype is pwe3ping 1 . Test 1 result The test is finished SendProbe:3 ResponseProbe:3 Completion:success RTD OverThresholds number:0 OWD OverThresholds SD number:0 OWD OverThresholds DS number:0 Min/Max/Avg/Sum RTT:60/110/10/86 RTT Square Sum:0 NumOfRTT:0 Drop operation number:0 Operation sequence errors number:0 RTT Stats errors number:0 System busy operation number:0 Operation timeout number:0 Min Positive SD:0 Min Positive DS:0 Max Positive SD:0 Max Positive DS:0 Positive SD Number:0 Positive DS Number:0 Positive SD Sum:0 Positive DS Sum:0 Positive SD Square Sum:0 Positive DS Square Sum:0 Min Negative SD:0 Min Negative DS:0 Max Negative SD:0 Max Negative DS:0 Negative SD Number:0 Negative DS Number:0 Negative SD Sum:0 Negative DS Sum:0 Negative SD Square Sum:0 Negative DS Square Sum:0 Min Delay SD:0 Min Delay DS:0 Max Delay SD:0 Max Delay DS:0 Delay SD Square Sum:0 Delay DS Square Sum:0 Packet Loss SD:0 Packet Loss DS:0 Packet Loss Unknown:0 Average of Jitter:0 Average of Jitter SD:0 Average of Jitter DS:0 Jitter out value:0.0000000 Jitter in value:0.0000000 NumberOfOWD:0 Packet Loss Ratio: 0% OWD SD Sum:0 OWD DS Sum:0 ICPIF value: 0 MOS-CQ value: 0 Attempts number:1 Disconnect operation number:0 Connection fail number:0 Destination ip address:10.3.3.3 Last Good Probe Time: 2008-09-29 14:35:43.2
配置文件
CE-A的配置文件
# sysname CE-A # vlan batch 110 # interface Vlanif110 ip address 10.10.1.1 255.255.255.0 # interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 110 # return
PE-A的配置文件
# sysname PE-A # vlan batch 110 120 # mpls lsr-id 10.2.2.2 mpls # mpls l2vpn # mpls ldp # mpls ldp remote-peer 10.3.3.3 remote-ip 10.3.3.3 # interface Vlanif110 mpls l2vc 10.3.3.3 100 control-word # interface Vlanif120 ip address 10.1.1.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/0 port hybrid pvid vlan 110 port hybrid untagged vlan 110 # interface GigabitEthernet2/0/0 port hybrid pvid vlan 120 port hybrid untagged vlan 120 # interface LoopBack0 ip address 10.2.2.2 255.255.255.255 # nqa test-instance test pwe3ping test-type pwe3ping local-pw-id 100 local-pw-type vlan # ospf 1 area 0.0.0.0 network 10.2.2.2 0.0.0.0 network 10.1.1.0 0.0.0.255 # return
P的配置文件
# sysname P # vlan batch 120 130 # mpls lsr-id 10.4.4.4 mpls # mpls ldp # interface Vlanif120 ip address 10.1.1.2 255.255.255.0 mpls mpls ldp # interface Vlanif130 ip address 10.2.2.1 255.255.255.0 mpls mpls ldp # interface GigabitEthernet1/0/0 port hybrid pvid vlan 120 port hybrid untagged vlan 120 # interface GigabitEthernet2/0/0 port hybrid pvid vlan 130 port hybrid untagged vlan 130 # interface LoopBack0 ip address 10.4.4.4 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.4.4.4 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.2.2.0 0.0.0.255 # return
PE-B的配置文件
# sysname PE-B # vlan batch 130 140 # mpls lsr-id 10.3.3.3 mpls # mpls l2vpn # mpls ldp # mpls ldp remote-peer 10.2.2.2 remote-ip 10.2.2.2 # interface Vlanif130 ip address 10.2.2.2 255.255.255.0 mpls mpls ldp # interface Vlanif140 mpls l2vc 10.2.2.2 100 control-word # interface GigabitEthernet1/0/0 port hybrid pvid vlan 140 port hybrid untagged vlan 140 # interface GigabitEthernet2/0/0 port hybrid pvid vlan 130 port hybrid untagged vlan 130 # interface LoopBack0 ip address 10.3.3.3 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.3.3.3 0.0.0.0 network 10.2.2.0 0.0.0.255 # return
CE-B的配置文件
# sysname CE-B # vlan batch 140 # interface Vlanif140 ip address 10.10.1.2 255.255.255.0 # interface GigabitEthernet1/0/0 port link-type trunk port trunk allow-pass vlan 140 # return