ping mpls l2vpn
Syntax
ping mpls l2vpn (instance instance-name local-site-id local-site-id-number remote-site-id remote-site-id-number | interface interface-name) <bottom-label-ttl> <count count> <destination address> <detail> <exp forwarding-class> <logical-system (all | logical-system-name)> reply-mode (application-level-control-channel | ip-udp | no-reply) <size bytes> <source source-address> <sweep>
Description
Check the operability of
MPLS Layer 2 virtual private network (VPN) connections. Type
Ctrl+c to interrupt a ping mpls l2vpn
command.
Options
bottom-label-ttl | (Optional) Display the time-to-live value for the bottom label in the label stack. |
||||||
count count | (Optional) Number of ping requests to send. If |
||||||
destination address | (Optional) Specify an address other than the default
( |
||||||
detail | (Optional) Display detailed information about the echo requests sent and received. |
||||||
exp forwarding-class | (Optional) Value of the forwarding class for the MPLS ping packets. |
||||||
instance instance-name local-site-id local-site-id-number remote-site-id remote-site-id-number | Ping a combination of the Layer 2 VPN routing instance name, the local site identifier, and the remote site identifier, testing the integrity of the Layer 2 VPN circuit (specified by the identifiers) between the ingress and egress provider edge (PE) routers or switches. |
||||||
interface interface-name | Ping an interface configured for the Layer 2 VPN on the egress PE router or switch. |
||||||
logical-system (all | logical-system-name) | (Optional) Perform this operation on all logical systems or on the specified logical system. |
||||||
reply-mode | (Optional) Reply mode for the ping request. This option has the following suboptions:
The |
||||||
size bytes | (Optional) Size of the label-switched path (LSP) ping
request packet ( |
||||||
source source-address | (Optional) IP address of the outgoing
interface. This address is sent in the IP source address field of
the ping request. If this option is not specified, the default address
is usually the loopback interface ( |
||||||
sweep | (Optional) Automatically determine the size of the maximum transmission unit (MTU). |
Additional Information
You must configure MPLS at the [edit protocols mpls]
hierarchy level on the egress PE router
or switch (the router or switch receiving the MPLS echo packets) to
ping a Layer 2 circuit.
In asymmetric MTU scenarios, the echo response might be dropped. For example, if the MTU from System A to System B is 1000 bytes, the MTU from System B to System A is 500 bytes, and the ping request packet size is 1000 bytes, the echo response is dropped because the PAD TLV is included in the echo response, making it too large.
Required Privilege Level
network
Output Fields
When you enter this command, you are provided
feedback on the status of your request. An exclamation point (!
) indicates that an echo reply was received. A period (.
) indicates that an echo reply was not received within the
timeout period. An x
indicates that an echo reply was received
with an error code these packets are not counted in the received packets
count. They are accounted for separately.
Sample Output
- ping mpls l2vpn instance
- ping mpls l2vpn instance detail
- ping mpls l2vpn interface <interface-name> reply-mode
ping mpls l2vpn instance
user@host> ping mpls l2vpn instance vpn1 remote-site-id 1 local-site-id 2 !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
ping mpls l2vpn instance detail
user@host> ping mpls l2vpn instance vpn1 remote-site-id 1 local-site-id 2 detail Request for seq 1, to interface 68, labels <800001, 100176> Reply for seq 1, return code: Egress-ok Request for seq 2, to interface 68, labels <800001, 100176> Reply for seq 2, return code: Egress-ok Request for seq 3, to interface 68, labels <800001, 100176> Reply for seq 3, return code: Egress-ok Request for seq 4, to interface 68, labels <800001, 100176> Reply for seq 4, return code: Egress-ok Request for seq 5, to interface 68, labels <800001, 100176> Reply for seq 5, return code: Egress-ok --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
ping mpls l2vpn interface <interface-name> reply-mode
user@host> ping mpls l2vpn interface lt-1/2/0.21 reply-mode ip-udp !!!!! --- lsping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss
Release Information
Command introduced before Junos OS Release 7.4.
The size
and sweep
options were introduced
in Junos OS Release 9.6.
The reply-mode
option and its suboptions are introduced
in Junos OS Release 10.4R1.