To trace Layer 2 VPN protocol traffic, you can specify options in the Layer 2 VPN traceoptions statement:
-
traceoptions {
- file filename <replace> <size size> <files number> <no-stamp>
<world-readable | no-world-readable>;
- flag flag <flag-modifier> <disable>;
- }
You can configure the traceoptions statement at the following hierarchy levels:
The following trace flags display the operations associated with Layer 2 VPNs:
To diagnose networking problems related to VPNs, it can be useful to disable normal time-to-live (TTL) decrementing. In JUNOS, you can do this with the no-propagate-ttl and no-decrement-ttl statements. However, when you are tracing VPN traffic, only the no-propagate-ttl statement is effective.
For the no-propagate-ttl statement to have an effect on VPN behavior, you need to clear the PE-router-to-PE-router BGP session, or disable and then enable the VPN routing instance.
For more information about the no-propagate-ttl and no-decrement-ttl statements, see the JUNOS MPLS Applications Configuration Guide.