Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


show dynamic-tunnels database



Display dynamic tunnel database information.



Display dynamic tunnel database information for all destinations and routing tables.


(Optional) Display database entries for the specified IP address (with optional destination prefix length) only.

logical-system (all | logical-system-name)

(Optional) Perform this operation on all logical systems or on a particular logical system.

table routing-table-name

(Optional) Display database entries for the specified table only.

Required Privilege Level


Output Fields

Table 1 lists the output fields for the show dynamic-tunnels database command. Output fields are listed in the approximate order in which they appear.

Table 1: show dynamic-tunnels database Output Fields

Field Name

Field Description


Name of the routing table (for example, inet.0).


Destination IP address and subnet.

Tunnel to

Destination IP address and prefix of the tunnel.


State of the tunnel: Up, Up (expires in nn:nn:nnseconds), or Dn (down).

Reference count

Number of routes across the dynamic tunnel that are currently being resolved.

Next-hop type

Type of tunnel: GRE or UDP (BGP-Signal).

  • GRE, IPoIP, or UDP (BGP signal)

  • SR-TE—Segment routing traffic-engineered LSP.

  • GREv6,

  • UDPv6

  • IPIPv6.

Source address

Source IP address of the tunnel.


IP address of the destination interface.

VPN Label

The label provided by the peer device to identify the VPN through which the packet needs to go. This label is used to identify the VRF for route lookup.

Ingress Route

The IGP route along with the corresponding metric that has been selected for forwarding the tunnel-encapsulated packet.

Localized PFE

Packet Forwarding Engine interface which is the anchor Packet Forwarding Engine for the localized next-hop-based dynamic tunnels.

When the anchor Packet Forwarding Engine of the tunnel goes down, it is represented by a # near the Packet Forwarding Engine name.

LSP template name

Name of the segment routing traffic-engineered template configured for dynamic creation of segment routing LSPs.


State of the destination interface: Up, Dn, or Dn (no tunnel pic).


Status of the dynamic segment routing LSP.

Tunnel Encapsulation

State of the encapulated packet.

Traffic Statistics Number of packets transmitted.

Sample Output

show dynamic-tunnels database (Tunnel Is Up)

show dynamic-tunnels database (No Tunnel PIC)

show dynamic-tunnels database (Tunnel Is Expiring)

show dynamic-tunnels database (Destination Specified)

show dynamic-tunnels database (Localization)

show dynamic-tunnels database (MPLS-over-UDP Dynamic Tunnels on PTX Series Routers and QFX Series Switches)

show dynamic-tunnels database (Segment Routing LSPs)

show dynamic-tunnels database (Dynamic Tunnels for IPv6 underlay on PTX Series Routers)

show dynamic-tunnels database summary

show route table inet6.3 extensive

show dynamic-tunnels database <destination> terse tunnel-type ?

show dynamic-tunnels database statistics tunnel-type ?

Release Information

Command introduced before Junos OS Release 7.4.