Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Supported Platforms

show services l2tp tunnel

Syntax

show services l2tp tunnel <brief | detail | extensive | statistics><interface sp-fpc/pic/port><local-gateway gateway-address><local-gateway-name gateway-name><local-tunnel-id tunnel-id><peer-gateway gateway-address><peer-gateway-name gateway-name><tunnel-group group-name>

Release Information

Command introduced before Junos OS Release 7.4.

Description

(M10i and M7i routers only) Display a list of active Layer 2 Tunneling Protocol (L2TP) tunnels for LNS.

(MX Series routers only) Display a list of active L2TP tunnels for LAC and LNS.

Options

none

Display standard information about all active L2TP tunnels.

brief | detail | extensive | statistics

(Default) Display the specified level of output. Use the statistics option to display L2TP tunnel statistics.

interface sp-fpc/pic/port

(Optional) Display L2TP tunnel information for only the specified adaptive services interface. This option is not available for L2TP on MX Series routers.

local-gateway gateway-address

(Optional) Display L2TP tunnel information for only the specified local gateway address.

local-gateway-name gateway-name

(Optional) Display L2TP tunnel information for only the specified local gateway name.

local-tunnel-id tunnel-id

(Optional) Display L2TP tunnel information for only the specified local tunnel identifier.

peer-gateway gateway-address

(Optional) Display L2TP tunnel information for only the specified peer gateway address.

peer-gateway-name gateway-name

(Optional) Display L2TP tunnel information for only the specified peer gateway name.

tunnel-group group-name

(Optional) Display L2TP tunnel information for only the specified tunnel group.

Required Privilege Level

view

List of Sample Output

show services l2tp tunnel (LAC)
show services l2tp tunnel detail (LAC)
show services l2tp tunnel detail (LAC on MX Series Routers)
show services l2tp tunnel detail (LNS on MX Series Routers)
show services l2tp tunnel extensive (LAC)
show services l2tp tunnel extensive (LNS on M Series Routers)
show services l2tp tunnel extensive (LNS on MX Series Routers)

Output Fields

Table 1 lists the output fields for the show services l2tp tunnel command. Output fields are listed in the approximate order in which they appear.

Table 1: show services l2tp tunnel Output Fields

Field Name

Field Description

Interface

(LNS only) Name of an adaptive services interface.

Tunnel group

(LNS only) Name of a tunnel group.

Local ID

On the LNS, number assigned by the LNS that identifies the local endpoint of the tunnel relative to the LNS: the LNS.

On the LAC, number assigned by the LAC that identifies the local endpoint of the tunnel relative to the LAC: the LAC.

Remote ID

On the LNS, number assigned by the LAC that identifies the remote endpoint of the tunnel relative to the LNS: the LAC.

On the LAC, number assigned by the LNS that identifies the remote endpoint of the tunnel relative to the LAC: the LNS.

Remote IP

IP address of the peer endpoint of the tunnel.

Sessions

Number of L2TP sessions established through the tunnel.

State

State of the L2TP tunnel:

  • cc_responder_accept_new—The tunnel has received and accepted the start control connection request (SCCRQ).
  • cc_responder_reject_new—The tunnel has received and rejected the SCCRQ.
  • cc_responder_idle—The tunnel has just been created.
  • cc_responder_wait_ctl_conn—The tunnel has sent the start control connection response (SCCRP) and is waiting for the start control connection connected (SCCCN) message.
  • clean-up—The tunnel is being cleaned up.
  • closed—The tunnel is being closed.
  • destroyed—The tunnel is being destroyed.
  • Established—The tunnel is operating. This is the only state supported for the LAC.
  • Terminate—The tunnel is terminating.
  • Unknown—The tunnel is not connected to the router.

Tunnel Name

(LAC only) Name of the created tunnel. This value includes the destination name followed by the value of the RADIUS Tunnel-Assignment-ID VSA [82].

Local IP

IP address of the local endpoint of the tunnel.

Local name

Name used for local tunnel endpoint during tunnel negotiation.

Remote name

Name used for remote tunnel endpoint during tunnel negotiation.

Effective Peer Resync Mechanism

(LAC only) Peer resynchronization mechanism (PRM) in effect for the tunnel:

  • Failover protocol
  • Silent failover—Recovery takes place in the failed endpoint only using the proprietary silent failover protocol.

Tunnel Logical System

Logical system in which the L2TP tunnel is brought up.

Tunnel Routing Instance

Routing instance in which the L2TP tunnel is brought up.

Max sessions

Maximum number of sessions that can be established on this tunnel.

Window size

Number of control messages that can be sent without receipt of an acknowledgment.

Hello interval

Interval between the transmission of hello messages, in seconds.

Create time

Date and time when the tunnel was created. While the LNS and LAC are connected, this value should correspond to the router's uptime. If connection to the LAC is severed, the State changes to Unknown and the Create time value resets.

Up time

Amount of time elapsed since the tunnel became active, in hours, minutes, and seconds.

Idle time

Amount of time elapsed since the tunnel became idle, in hours, minutes, and seconds.

Statistics since

Date and time when collection of the following statistics began:

  • Control Tx—Amount of control information transmitted, in packets and bytes.
  • Control Rx—Amount of control information received, in packets and bytes.
  • Data Tx—Amount of data transmitted, in packets and bytes.
  • Data Rx—Amount of data received, in packets and bytes.
  • Errors Tx—Number of errors transmitted, in packets.
  • Errors Rx—Number of errors received, in packets.

Sample Output

show services l2tp tunnel (LAC)

user@host> show services l2tp tunnel
  Local ID  Remote ID  Remote IP               Sessions  State
     17185          1  10.10.1.1:1701                 1  Established           

show services l2tp tunnel detail (LAC)

user@host> show services l2tp tunnel detail
  Tunnel local ID: 31889, Tunnel remote ID:     1
    Remote IP: 100.1.1.1:1701
    Sessions: 1, State: Established
    Tunnel Name: 1/tunnel-to-LNS-1
    Local IP: 100.1.1.2:1701
    Local name: ce-lac, Remote name: ce-lns
    Effective Peer Resync Mechanism: silent failover

show services l2tp tunnel detail (LAC on MX Series Routers)

user@host> show services l2tp tunnel detail
Tunnel local ID: 17301, Tunnel remote ID: 1
    Remote IP: 10.10.1.1:1701
    Sessions: 1, State: Established
    Tunnel Name: 2/tunnel-to-LNS-2
    Local IP: 100.1.1.2:1701
    Local name: ce-lac, Remote name: ce-lns
    Effective Peer Resync Mechanism: silent failover
    Tunnel Logical System: default, Tunnel Routing Instance: default

show services l2tp tunnel detail (LNS on MX Series Routers)

user@host> show services l2tp tunnel detail
Tunnel local ID: 17301, Tunnel remote ID: 1
    Remote IP: 12.1.1.15:1701
    Sessions: 1, State: Established
    Tunnel Name: 2/2
    Local IP: 12.1.1.5:1701
    Local name: ce-bras-mx240-e, Remote name: testlac2
    Effective Peer Resync Mechanism: silent failover
    Tunnel Logical System: default, Tunnel Routing Instance: vrf1

show services l2tp tunnel extensive (LAC)

user@host> show services l2tp tunnel extensive
  Tunnel local ID: 17185, Tunnel remote ID:     1
    Remote IP: 10.10.1.1:1701
    Sessions: 1, State: Established
    Tunnel Name: 2/tunnel-to-LNS-2
    Local IP: 100.1.1.2:1701
    Local name: ce-lac, Remote name: ce-lns
    Effective Peer Resync Mechanism: failover protocol
    Max sessions: 32000, Window size: 4, Hello interval: 60
    Create time: Tue Nov  9 15:23:29 2010, Up time: 00:00:26
    Idle time: 00:00:00

show services l2tp tunnel extensive (LNS on M Series Routers)

user@host> show services l2tp tunnel extensive
Interface: sp-1/2/0, Tunnel group: group1
  Tunnel local ID: 62746, Tunnel remote ID: 16930
    Remote IP: 10.128.1.2:1701
    Sessions: 1, State: Established
    Local IP: 10.128.1.1:1701
    Local name: router-1, Remote name: router-2
    Max sessions: 50, Window size: 32, Hello interval: 60
    Create time: Tue Mar 23 14:13:15 2004, Up time: 01:14:58
    Idle time: 00:00:07
    Statistics since: Tue Mar 23 14:13:13 2004
                        Packets        Bytes
      Control Tx             80         1152
      Control Rx              3          272
      Data Tx                 0            0
      Data Rx               450        28.0k
      Errors Tx               0
      Errors Rx               0

Interface: sp-1/2/0, Tunnel group: group_company_dns
  Tunnel local ID: 37266, Tunnel remote ID: 36217
    Remote IP: 10.128.11.2:1701
    Sessions: 1, State: Established
    Local IP: 10.128.11.1:1701
    Local name: router-1, Remote name: router-2
    Max sessions: unlimited, Window size: 32, Hello interval: 60
    Create time: Tue Mar 23 14:13:15 2004, Up time: 01:14:59
    Idle time: 01:14:55
    Statistics since: Tue Mar 23 14:13:13 2004
                        Packets        Bytes
      Control Tx             81         1164
      Control Rx              3          273
      Data Tx                 0            0
      Data Rx                 1           80
      Errors Tx               0
      Errors Rx               0

show services l2tp tunnel extensive (LNS on MX Series Routers)

user@host> show services l2tp tunnel extensive
Tunnel local ID: 40553, Tunnel remote ID: 1
    Remote IP: 192.168.1.3:1701
    Sessions: 1, State: Established
    Tunnel Name: 3/1838
    Local IP: 10.1.1.2:1701
    Local name: lns-mx960, Remote name: testlac
    Effective Peer Resync Mechanism: silent failover
    Tunnel Logical System: default, Tunnel Routing Instance: vrf1
    Max sessions: 60000, Window size: 4, Hello interval: 60
    Create time: Mon Apr 25 20:27:50 2011, Up time: 00:01:11
    Idle time: 00:00:00, ToS Reflect: Enabled
    Tunnel Group Name: tg1
    Statistics since: Mon Apr 25 20:27:50 2011
                        Packets        Bytes
      Control Tx              4          219
      Control Rx              4          221
      Data Tx                 0            0
      Data Rx                 6           64
      Errors Tx               0
      Errors Rx               

Published: 2013-01-30

Supported Platforms

Published: 2013-01-30