- ping mpls l2circuit (interface interface-name | virtual-circuit virtual-circuit-id neighbor prefix-name)
- <count count>
- <destination address>
-
<detail>
- <exp forwarding-class>
- <source source-address>
- <v1>
Command introduced before JUNOS Release 7.4.
Check the operability of the Multiprotocol Label Switching (MPLS) Layer 2 circuit connections. Type Ctrl+c to interrupt a ping mpls l2circuit command.
interface interface-name — Ping an interface configured for the Layer 2 circuit on the egress provider edge (PE) router.
virtual-circuit virtual-circuit-id neighbor prefix-name — Ping a combination of the virtual circuit identifier on the egress PE router and the IPv4 prefix, testing the integrity of the Layer 2 circuit between the ingress and egress PE routers.
count count — (Optional) Number of ping requests to send. If count is not specified, five ping requests are sent. The range of values is 1 through 1,000,000. The default value is 5.
destination address — (Optional) Specify an address other than the default (127.0.0.1/32) for the ping echo requests. The address can be anything within the 127/8 subnet.
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.
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 (lo.0).
v1 — (Optional) Use the type 9 Layer 2 circuit type, length, and value (TLV).
You must configure MPLS at the [edit protocols mpls] hierarchy level on the egress PE router (the router receiving the MPLS echo packets) to ping a Layer 2 circuit.
network
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.
user@host> ping mpls l2circuit interface so-1/0/0.1
Request for seq 1, to interface 69, labels <100000, 100208> Reply for seq 1, return code: Egress-ok, time: 0.439 ms
user@host> ping mpls l2circuit virtual-circuit
200 neighbor 10.255.245.122/32 detail
Request for seq 1, to interface 68, labels <100048, 100128> Reply for seq 1, return code: Egress-ok time: 0.539 ms