Verifying an MPLS Layer 2 VPN Configuration
Verify the connectivity of MPLS Layer 2 VPNs using the ping mpls command. This command helps to verify that a VPN has been enabled by testing the integrity of the VPN connection between the PE routers. It does not test the connection between a PE router and CE router.
To ping an interface configured for the Layer 2 VPN on the PE router, use the following command:ping mpls l2vpn interface interface-name
To ping a combination of the Layer 2 VPN routing instance name, the local site identifier, and the remote site identifier to test the integrity of the Layer 2 VPN connection (specified by identifiers) between the two PE routers, use the following command:ping mpls l2vpn instance l2vpn-instance-name local-site-id local-site-id-number remote-site-id remote-site-id-number