Trace Layer 2 VPN Traffic and Operations
To trace Layer 2 VPN protocol traffic, you can specify options in the Layer 2 VPN
traceoptionsstatement at the[edit routing-instancesrouting-instance-nameprotocols l2vpn]hierarchy level:[edit routing-instancesrouting-instance-nameprotocols l2vpn]traceoptions {filefilename<replace> <sizesize><filesnumber> <nostamp>;flagflag<flag-modifier> <disable>;}The following trace flags display the operations associated with Layer 2 VPNs. Each can carry one or more of the following modifiers:
all—All Layer 2 VPN tracing optionsconnections—Layer 2 VPN connections (events and state changes)error—Error conditionsnlri—Layer 2 VPN advertisements received or sent using BGProute—Trace routing informationtopology—Layer 2 VPN topology changes due to reconfiguration or due to advertisements received from other PE routers using BGPDisable Normal TTL Decrementing for VPNs
To diagnose networking problems related to VPNs (Layer 2 or Layer 3), 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 Internet Software Configuration Guide: MPLS Applications.