Trace Layer 2 VPN Traffic and Operations
To trace Layer 2 VPN protocol traffic, you can specify options in the Layer 2 VPN traceoptions statement:
traceoptions {filefilename<replace> <sizesize><filesnumber> <no-stamp>;flagflag<flag-modifier> <disable>;}You can configure the traceoptions statement at the following hierarchy levels:
[edit routing-instancesrouting-instance-nameprotocols l2vpn][edit logical-routerslogical-router-namerouting-instancesrouting-instance-nameprotocols l2vpn]The following trace flags display the operations associated with Layer 2 VPNs:
all—All Layer 2 VPN tracing options.connections—Layer 2 VPN connections (events and state changes).error—Error conditions.nlri—Layer 2 VPN advertisements received or sent using BGP.route—Trace routing information.topology—Layer 2 VPN topology changes caused by reconfiguration or advertisements received from other PE routers using BGP.Disable Normal TTL Decrementing for 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-ttlandno-decrement-ttlstatements. However, when tracing VPN traffic, only theno-propagate-ttlstatement is effective.For the
no-propagate-ttlstatement 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-ttlandno-decrement-ttlstatements, see the JUNOS MPLS Applications Configuration Guide.