The ping vc vpn-instance command detects the status of a PW and locates the faulty node when a PW goes Down.
ping vc vpn-instance vpn-name local-ce-id remote-ce-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * { label-alert [ no-control-word ] | control-word }
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-name | Specifies the VPN name. | The value is an existing VPN instance name. |
local-ce-id | Specifies the ID of the local CE. | The value is a decimal integer ranging from 0 to 249. |
remote-ce-id | Specifies the ID of the local CE. | The value is a decimal integer ranging from 0 to 249. |
-c echo-number | Specifies the number of the sent Echo Request packets. | The value is a decimal integer that ranges from 1 to 4294967295. The default value is 5. |
-m time-value | Indicates the interval for sending Echo Request packets. | The value is a decimal integer that ranges from 1 to 10000, in milliseconds. By default, the value is 2000. |
-s data-bytes | Specifies the number of bytes of an Echo Request packet. | The value is a decimal integer ranging from 65 to 8100. By default, the value is 100. |
-t timeout-value | Specifies the timeout period for sending Echo Request packets. | The value is a decimal integer ranging from 0 to 65535. By default, the value is 2000. |
-exp exp-value | Specifies the EXP value in an outer label in an Echo Request packet. | The value is an integer ranging from 0 to 7. |
-r reply-mode | Specifies the mode of sending Echo Reply packets. The
meaning of each value is as follows:
|
The value is a decimal integer ranging from 1 to 4. By default, the value is 2. |
-v | Displays detailed information. | - |
label-alert | Indicates that in the case of a multi-hop PW, ping packets are forcibly sent on the transit node. In Label Alert mode, you can ping all transit nodes of a PW. | - |
no-control-word | Disables the control word mode. | - |
control-word | Indicates that in the case of a multi-hop PW, ping packets are forwarded without being resolved. In the control word mode, you can ping only the egress of the PW. The ping in control word mode can be performed only after the control word of a PW is enabled. | - |
If the control-word is enabled for a PW, it is recommended that you specify the control-word parameter to detect the connectivity of the PW. This ensures that ping packets are transmitted in the same manner as data packets on the PW.
# Run the ping vc vpn-instance command in label-alert mode on the PE to detect the connectivity of the Kompella PW.
<HUAWEI> ping vc vpn-instance vpn1 1 2 -v label-alert
Reply from 4.4.4.4: bytes=100 Sequence=1 time = 110 ms Return Code 3, Subcode 1
Reply from 4.4.4.4: bytes=100 Sequence=2 time = 90 ms Return Code 3, Subcode 1
Reply from 4.4.4.4: bytes=100 Sequence=3 time = 60 ms Return Code 3, Subcode 1
Reply from 4.4.4.4: bytes=100 Sequence=4 time = 60 ms Return Code 3, Subcode 1
Reply from 4.4.4.4: bytes=100 Sequence=5 time = 90 ms Return Code 3, Subcode 1
--- FEC: L2 VPN ENDPOINT. Sender VEID = 1, Remote VEID = 2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 60/82/110 ms
Item |
Description |
---|---|
Reply from |
IP address of the Echo Reply packet |
bytes |
Length of the Echo Reply packet |
sequence |
Sequence number of the Echo Reply packet |
return code |
Return code of the Echo Reply packet:
|
Subcode |
Subcode of the Echo Reply packet (indicating the depth of the label stack in the packet) |
FEC |
FEC TLV type (L2 VPN ENDPOINT indicates the Kompella PW that is negotiated by BGP) |
Sender VEID |
ID of the local CE |
Remote VEID |
ID of the remote CE |