The ping vc vpn-instance command detects the connectivity of the LSP between PEs in the BGP networking.
ping vc vpn-instance vpn-instance-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 | -g ] * { label-alert [ no-control-word ] | control-word } [ bypass -si { interface-name | interface-type interface-number } ]
Parameter | Description | Value |
---|---|---|
local-ce-id |
Specifies the ID of the local CE. |
The value is a decimal integer ranging from 0 to 65534. |
remote-ce-id |
Specifies the ID of the remote CE. |
The value is a decimal integer ranging from 0 to 65534 |
-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 9600. 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 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 value is a decimal integer ranging from 1 to 4. By default, the value is 2.
|
-v |
Displays detailed information. |
- |
-g |
Performs the test using MPLS fragments. |
- |
label-alert |
Indicates that in the case of a multi-segment 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-segment 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. |
- |
bypass |
Forwards packets through a specified public bypass LSP of a PW. The packets from the initiator and response end are forwarded through this LSP. If bypass LSP detection on the specified inbound interface is configured in CLI mode, the packets from the initiator are forwarded through a public bypass LSP. If the response end supports bypass LSP detection and LSP-based response is configured, the packets are forwarded through a public bypass LSP. |
- |
-si interface-name |
Specifies the name of a simulated inbound interface. Configure an inbound interface for MPLS Echo Request packets, so that you can simulate packet sending on the remote device and check whether the forwarding path of packets entering from the inbound interface is faulty. |
- |
interface-type |
Specifies the type of a simulated inbound interface. Configure an inbound interface for MPLS Echo Request packets, so that you can simulate packet sending on the remote device and check whether the forwarding path of packets entering from the inbound interface is faulty. |
- |
interface-number |
Specifies the number of a simulated inbound interface. Configure an inbound interface for MPLS Echo Request packets, so that you can simulate packet sending on the remote device and check whether the forwarding path of packets entering from the inbound interface is faulty. |
- |
vpn-instance vpn-instance-name |
Specifies the VPN name. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
<HUAWEI> ping vc vpn-instance vpn1 1 2 -v label-alert
PW PING : FEC 128 PSEUDOWIRE (NEW). Type = vlan, ID = 100 : 100 data bytes, press CTRL_C to break
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 |
---|---|
FEC | FEC TLV type (L2 VPN ENDPOINT indicates the BGP PW that is negotiated by BGP). |
Reply from | IP address 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). |
Sender VEID | ID of the local CE. |
Remote VEID | ID of the remote CE. |
bytes | Length of the echo reply packet. |
Sequence | Sequence number of the echo reply packet. |