A ping operation can be performed to check EVPN VPWS network connectivity.
Before using the ping evpn vpws command to check EVPN VPWS network connectivity, ensure that the EVPN VPWS network has been correctly configured.
After EVPN VPWS configurations are complete, perform the following operation in any view of the client.
Run the ping evpn vpws local-ce-id remote-ce-id [ vpn-instance evpn-name ] [ control-word ] [ -a source-ip | -c count | -exp exp-value | -m interval | -s packet-size | -t time-out | -r reply-mode | -tc tc ] * command to check the EVPN VPWS status and locate the fault.
In cross-domain scenarios, the control-word keyword must be specified, and the -r 4 mode is recommended.
Run the ping evpn vpws local-ce-id remote-ce-id [ vpn-instance evpn-name ] [ end-op endOp ] [ -a source-ip | -c count | -exp exp-value | -m interval | -s packet-size | -t time-out | -r reply-mode | -tc tc | -service-class classValue ] * command to check the EVPN VPWS status and locate the fault.
If the local service ID is not globally unique, the vpn-instance evpn-name parameter must be specified.
The following shows an example:
# Perform a ping operation on the EVPN VPWS network.
<HUAWEI> ping evpn vpws 1 2 -c 2
EVPN VPWS PING FEC: Local Evpn Vpws Id = 1, Remote Evpn Vpws Id = 2 : 100 data bytes, press CTRL_C to break
Reply from 10.1.1.1: bytes=100 Sequence=1 time=11 ms
Reply from 10.1.1.1: bytes=100 Sequence=2 time=15 ms
--- FEC: Local CeId = 1, Remote CeId = 2 ping statistics ---
2 packet(s) transmitted
2 packet(s) received
0.00% packet loss
round-trip min/avg/max = 11/13/15 ms