Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show services l2tp tunnel-switch session

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show services l2tp tunnel-switch session
<detail | extensive>
<statistics>

Description

Display information about L2TP switched tunnel sessions.

Options

none

Display standard information about all active L2TP switched tunnel sessions.

detail | extensive

(Optional) Display the specified level of output.

statistics

(Optional) Display the number of control packets and bytes transmitted and received for the session. You cannot include this option with either of the level options, detail or extensive.

Required Privilege Level

view

Output Fields

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

Table 1: show services l2tp tunnel-switch session Output Fields

Field Name

Field Description

Level of Output

Tunnel local ID

Identifier of the local endpoint of the tunnel, as assigned by the L2TP network server (LNS).

All levels

Local ID

Identifier of the local endpoint of the L2TP session, as assigned by the LNS.

none

Remote ID

Identifier of the remote endpoint of the L2TP session, as assigned by the L2TP access concentrator (LAC).

none

State

State of the L2TP session:

  • Established—Session is operating. This is the only state supported for the LAC.

  • closed—Session is being closed.

  • destroyed—Session is being destroyed.

  • clean-up—Session is being cleaned up.

  • lns-ic-accept-new—New session is being accepted.

  • lns-ic-idle—Session has been created and is idle.

  • lns-ic-reject-new—New session is being rejected.

  • lns-ic-wait-connect—Session is waiting for the peer's incoming call connected (ICCN) message.

All levels

Interface unit

Logical interface for this session.

All levels

Interface Name

(LNS only) Name of an adaptive services interface.

none

Session local ID

Identifier of the local endpoint of the L2TP session, as assigned by the LNS.

detailextensive

Session remote ID

Identifier of the remote endpoint of the L2TP session, as assigned by the L2TP access concentrator (LAC).

detailextensive

Tunnel switch profile name

Name of a tunnel switch profile.

detailextensive

Mode

(LNS) Mode of the interface representing the session: shared or exclusive.

(LAC) Mode of the interface representing the session: shared or dedicated. Only dedicated is currently supported for the LAC.

detailextensive

Local IP

IP address of local endpoint of the Point-to-Point Protocol (PPP) session.

detailextensive

Remote IP

IP address of remote endpoint of the PPP session.

detailextensive

Local name

For LNS, name of the LNS instance in which the session was created. For LAC, name of the LAC.

detailextensive

Remote name

For LNS, name of the LAC from which the session was created. For LAC, name of the LAC instance.

detailextensive

Bearer type

Type of bearer enabled:

  • 0—Might indicate that the call was not received over a physical link (for example, when the LAC and PPP are located in the same subsystem).

  • 1—Digital access requested.

  • 2—Analog access requested.

  • 4—Asynchronous Transfer Mode (ATM) bearer support.

extensive

Framing type

Type of framing enabled:

  • 1—Synchronous framing

  • 2—Asynchronous framing

extensive

LCP renegotiation

(LNS only) Whether Link Control Protocol (LCP) renegotiation is configured: On or Off.

extensive

Authentication

Type of authentication algorithm used: Challenge Handshake Authentication Protocol (CHAP) or Password Authentication Protocol (PAP).

extensive

Interface ID

(LNS only) Identifier used to look up the logical interface for this session.

extensive

Call serial number

Unique serial number assigned to the call.

extensive

Tx speed

Transmit speed of the session conveyed from the LAC to the LNS, in bits per second (bps).

extensive

Rx speed

Receive speed of the session conveyed from the LAC to the LNS, in bits per second (bps).

extensive

Create time

Day, date, and time when the call was created.

extensive

Up time

Length of time elapsed since the call became active, in hours, minutes, and seconds.

extensive

Idle time

Length of time elapsed since the call became idle, in hours, minutes, and seconds.

extensive

ToS Reflect

Status of IP ToS value reflection, Disabled or Enabled.

extensive

Statistics since

Date and time when collection of the following statistics began:

  • Data Tx—Amount of data transmitted, in packets and bytes.

  • Data Rx—Amount of data received, in packets and bytes.

extensive

Sample Output

show services l2tp tunnel-switch session

content_copy zoom_out_map
user@host> show services l2tp tunnel-switch session 
Tunnel local ID: 37602
  Local  Remote   State                Interface         Interface
  ID     ID                            unit              Name
  13545  1        Established          1073741842        si-2/1/0            

Tunnel local ID: 37060
  Local  Remote   State                Interface         Interface
  ID     ID                            unit              Name
  58296  1        Established          1073741843        si-2/1/0            

show services l2tp tunnel-switch session detail

content_copy zoom_out_map
user@host> show services l2tp tunnel-switch session detail
Tunnel local ID: 37602
  Session local ID: 13545, Session remote ID: 1, Interface unit: 1073741842
    State: Established, Interface: si-2/1/0
    Tunnel switch profile name: ce-lts-profile
    Mode: Dedicated
    Local IP: 203.0.113.51:1701, Remote IP: 192.0.2.3:1701
    Local name: ce-bras-mx240-f, Remote name: testlac

Tunnel local ID: 37060
  Session local ID: 58296, Session remote ID: 1, Interface unit: 1073741843
    State: Established, Interface: si-2/1/0
    Tunnel switch profile name: ce-lts-profile
    Mode: Dedicated
    Local IP: 203.0.113.31:1701, Remote IP: 198.51.100.10:1701
    Local name: lns, Remote name: lns

show services l2tp tunnel-switch session extensive

content_copy zoom_out_map
user@host> show services l2tp tunnel-switch session extensive
Tunnel local ID: 37602
  Session local ID: 13545, Session remote ID: 1
    Interface unit: 1073741842
    State: Established
    Interface: si-2/1/0
    Tunnel switch profile name: ce-lts-profile
    Mode: Dedicated
    Local IP: 203.0.113.51:1701, Remote IP: 192.0.2.3:1701
    Local name: ce-bras-mx240-f, Remote name: testlac
    Bearer type: 2, Framing type: 1
    LCP renegotiation: On, Authentication: None, Interface ID: si-2/1/0
    Call serial number: 0
    Tx speed: 56000, Rx speed: 0
    Create time: Fri Jan 18 03:01:11 2013, Up time: 00:06:50
    Idle time: N/A, ToS Reflect: Disabled
    Statistics since: Fri Jan 18 03:01:11 2013
                        Packets        Bytes
      Data Tx                85         1031
      Data Rx                 0            0

Tunnel local ID: 37060
  Session local ID: 58296, Session remote ID: 1
    Interface unit: 1073741843
    State: Established
    Interface: si-2/1/0
    Tunnel switch profile name: ce-lts-profile
    Mode: Dedicated
    Local IP: 203.0.113.31:1701, Remote IP: 198.51.100.10:1701
    Local name: lns, Remote name: lns
    Bearer type: 2, Framing type: 1
    LCP renegotiation: N/A, Authentication: None, Interface ID: N/A
    Call serial number: 0
    Tx speed: 56000, Rx speed: 0
    Create time: Fri Jan 18 03:01:14 2013, Up time: 00:06:48
    Idle time: N/A
    Statistics since: Fri Jan 18 03:01:14 2013
                        Packets        Bytes
      Data Tx                 0            0
      Data Rx                84         1014

Release Information

Command introduced in Junos OS Release 13.2.

footer-navigation