检测VPLS的连接性
配置VPLS网络后,可以使用PW Ping检测VPLS的连通性。
操作步骤
- 根据组网方式,执行如下命令检测VPLS网络的连通性:
- Kompella方式:ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * vsi vsi-name local-site-id remote-site-id [ bypass -si interface-type interface-number ]
- Martini方式:ping vpls [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * vsi vsi-name peer peer-address [ negotiate-vc-id vc-id ] [ control-word [ remote remote-address remote-pw-id [ sender sender-address ] ] ] [ bypass -si interface-type interface-number ]
命令执行结果输出包括:
对每一个ping vpls报文的响应情况,如果超时到仍没有收到响应报文,则输出“Request time out”,否则显示响应报文中数据字节数、报文序号、TTL和响应时间等。
最后的统计信息,包括发送报文数、接收报文数、未响应报文百分比和响应时间的最小、最大和平均值。
举例如下:
<HUAWEI> ping vpls vsi a2 peer 10.1.1.1 PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 : 100 data bytes, press CTRL_C to break Reply from 10.1.1.1: bytes=100 Sequence=1 time=60 ms Reply from 10.1.1.1: bytes=100 Sequence=2 time=50 ms Reply from 10.1.1.1: bytes=100 Sequence=3 time=60 ms Reply from 10.1.1.1: bytes=100 Sequence=4 time=60 ms Reply from 10.1.1.1: bytes=100 Sequence=5 time=60 ms --- FEC: FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 50/58/60 ms