show services l2tp session
Syntax
Release Information
Command introduced before Junos OS Release 7.4.
Support for LAC on MX Series routers introduced in Junos OS Release 10.4.
Support for LNS on MX Series routers introduced in Junos OS Release 11.4.
Description
(M10i and M7i routers only) Display information about active L2TP sessions for LNS.
(MX Series routers only) Display information about active L2TP sessions for LAC and LNS.
Options
none | — | Display standard information about all active L2TP sessions. |
brief | detail | extensive | — | (Optional) Display the specified level of output. |
interface interface-name | — | (Optional) Display L2TP session information for only the specified adaptive services or inline services interface. The interface type depends on the line card as follows:
|
local-gateway gateway-address | — | (Optional) Display L2TP session information for only the specified local gateway address. |
local-gateway-name gateway-name | — | (Optional) Display L2TP session information for only the specified local gateway name. |
local-session-id session-id | — | (Optional) Display L2TP session information for only the specified local session identifier. |
local-tunnel-id tunnel-id | — | (Optional) Display L2TP session information for only the specified local tunnel identifier. |
peer-gateway gateway-address | — | (Optional) Display L2TP session information for only the specified peer gateway address. |
peer-gateway-name gateway-name | — | (Optional) Display L2TP session information for only the specified peer gateway name. |
statistics | — | (Optional) Display the number of control packets and bytes transmitted and received for the session. You cannot include this option with any of the level options, brief, detail, or extensive. |
tunnel-group group-name | — | (Optional) Display L2TP session information for only the specified tunnel group. To display information about L2TP CPU and memory usage, you can include the tunnel group name in the show services service-sets memory-usage group-name and show services service-sets cpu-usage group-name commands. This option is not available for L2TP LAC on MX Series routers. |
user username | — | (M Series routers only) (Optional) Display L2TP session information for only the specified username. |
Required Privilege Level
view
List of Sample Output
show services l2tp session (LNS on M Series Routers)show services l2tp session (LNS on MX Series Routers)
show services l2tp session (LAC)
show services l2tp session detail (LAC)
show services l2tp session extensive (LAC)
show services l2tp session extensive (LNS on M Series Routers)
show services l2tp session extensive (LNS on MX Series Routers)
show services l2tp session statistics (MX Series Routers)
Output Fields
Table 1 lists the output fields for the show services l2tp session command. Output fields are listed in the approximate order in which they appear.
Table 1: show services l2tp session Output Fields
Field Name | Field Description | Level of Output |
---|---|---|
Interface | (LNS only) Name of an adaptive services interface. | All levels |
Tunnel group | (LNS only) Name of a tunnel group. | All levels |
Tunnel local ID | Identifier of the local endpoint of the tunnel, as assigned by the L2TP network server (LNS). | All levels |
Session local ID | Identifier of the local endpoint of the L2TP session, as assigned by the LNS. | All levels |
Session remote ID | Identifier of the remote endpoint of the L2TP session, as assigned by the L2TP access concentrator (LAC). | All levels |
State | State of the L2TP session:
| All levels |
Bundle ID | (LNS only) Bundle identifier. Indicates the session is part of a multilink bundle. Sessions that have a blank Bundle field are not participating in the Multilink Protocol. Sessions in a multilink bundle might belong to different L2TP tunnels. For L2TP output organized by bundle ID, issue the show services l2tp multilink extensive command. | All levels |
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. | extensive |
Local IP | IP address of local endpoint of the Point-to-Point Protocol (PPP) session. | extensive |
Remote IP | IP address of remote endpoint of the PPP session. | extensive |
Username | (LNS only) Name of the user logged in to the session. | All levels |
Assigned IP address | (LNS only) IP address assigned to remote client. | extensive |
Local name | For LNS, name of the LNS instance in which the session was created. For LAC, name of the LAC. | extensive |
Remote name | For LNS, name of the LAC from which the session was created. For LAC, name of the LAC instance. | extensive |
Local MRU | (LNS only) Maximum receive unit (MRU) setting of the local device, in bytes. | extensive |
Remote MRU | (LNS only) MRU setting of the remote device, in bytes. | 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 |
Bearer type | Type of bearer enabled:
| extensive |
Framing type | Type of framing enabled:
| 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 |
Interface unit | Logical interface for this session. | All levels |
Call serial number | Unique serial number assigned to the call. | extensive |
Policer bandwidth | Maximum policer bandwidth configured for this session. | extensive |
Policer burst size | Maximum policer burst size configured for this session. | extensive |
Firewall filter | Configured firewall filter name. | extensive |
Session encapsulation overhead | Overhead allowance configured for this session, in bytes. | extensive |
Session cell overhead | Cell overhead activation (On or Off). | extensive |
Create time | 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 |
Statistics since | Date and time when collection of the following statistics began:
| extensive |
Sample Output
show services l2tp session (LNS on M Series Routers)
user@host> show services l2tp session
Interface: sp-1/2/0, Tunnel group: group1, Tunnel local ID: 8802 Local Remote Interface State Bundle Username ID ID unit 37966 5 2 Established
show services l2tp session (LNS on MX Series Routers)
user@host> show services l2tp session
Tunnel local ID: 40553 Local Remote State Interface Interface ID ID unit Name 17967 1 Established 1073749824 si-5/2/0
show services l2tp session (LAC)
user@host> show services l2tp session
Tunnel local ID: 31889 Local Remote State Interface Interface ID ID unit Name 31694 1 Established 311 pp0
show services l2tp session detail (LAC)
user@host> show services l2tp session detail
Tunnel local ID: 31889 Session local ID: 31694, Session remote ID: 1, Interface unit: 311 State: Established, Interface: pp0, Mode: Dedicated Local IP: 10.1.1.2:1701, Remote IP: 10.1.1.1:1701 Local name: ce-lac, Remote name: ce-lns
show services l2tp session extensive (LAC)
user@host> show services l2tp session extensive
Tunnel local ID: 31889 Session local ID: 31694, Session remote ID: 1 Interface unit: 311 State: Established, Mode: Dedicated Local IP: 10.10.1.2:1701, Remote IP: 10.10.1.1:1701 Local name: ce-lac, Remote name: ce-lns Tx speed: 0, Rx speed: 0 Bearer type: 1, Framing type: 1 LCP renegotiation: N/A, Authentication: None, Interface ID: N/A Interface unit: 311, Call serial number: 0 Policer bandwidth: 0, Policer burst size: 0 Policer exclude bandwidth: 0, Firewall filter: 0 Session encapsulation overhead: 0, Session cell overhead: 0 Create time: Tue Aug 24 14:38:23 2010, Up time: 01:06:25 Idle time: N/A
show services l2tp session extensive (LNS on M Series Routers)
user@host> show services l2tp session extensive
Interface: sp-1/2/0, Tunnel group: group1, Tunnel local ID: 62746 Session local ID: 56793, Session remote ID: 53304 State: Established, Bundle ID: 5, Mode: shared Local IP: 10.128.1.1:1701, Remote IP: 10.128.1.2:1701 Username: usr1@juniper_1.net, Assigned IP address: 10.50.2.1/32 Local MRU: 4000, Remote MRU: 1500, Tx speed: 64000, Rx speed: 64000 Bearer type: 2, Framing type: 1 LCP renegotiation: Off, Authentication: CHAP, Interface ID: unit_20 Interface unit: 20, Call serial number: 4137941434 Policer bandwidth: 64000, Policer burst size: 51200 Firewall filter: f1 Session encapsulation overhead: 16, Session cell overhead: On Create time: Tue Mar 23 14:13:15 2004, Up time: 01:16:41 Idle time: 00:00:00 Statistics since: Tue Mar 23 14:13:13 2004 Packets Bytes Control Tx 4 88 Control Rx 2 28 Data Tx 0 0 Data Rx 461 29.0k Errors Tx 0 Errors Rx 0 Interface: sp-1/2/0, Tunnel group: group_company_dns, Tunnel local ID: 37266 Session local ID: 39962, Session remote ID: 53303 State: Established, Bundle ID: 5, Mode: shared Local IP: 10.128.11.1:1701, Remote IP: 10.128.11.2:1701 Username: usr1@company.com, Assigned IP address: 10.46.2.3/24 Local name: router-1, Remote name: router-2 Local MRU: 4470, Remote MRU: 4470, Tx speed: 155000000, Rx speed: 155000000 Bearer type: 2, Framing type: 1 LCP renegotiation: Off, Authentication: CHAP, Interface ID: unit_31 Interface unit: 31, Call serial number: 4137941433 Policer bandwidth: 64000, Policer burst size: 51200 Firewall filter: f1 Create time: Tue Mar 23 14:13:17 2004, Up time: 01:16:39 Idle time: 01:16:36 Statistics since: Tue Mar 23 14:13:15 2004 Packets Bytes Control Tx 6 196 Control Rx 4 150 Data Tx 0 0 Data Rx 1 80 Errors Tx 0 Errors Rx 0
show services l2tp session extensive (LNS on MX Series Routers)
user@host> show services l2tp session extensive
Tunnel local ID: 40553 Session local ID: 17967, Session remote ID: 1 Interface unit: 1073749824 State: Established Interface: si-5/2/0 Mode: Dedicated Local IP: 11.1.1.2:1701, Remote IP: 11.1.1.3:1701 Local name: lns-mx960, Remote name: testlac Tx speed: 56000, Rx speed: 0 Bearer type: 2, Framing type: 1 LCP renegotiation: Off, Authentication: None Call serial number: 1 Create time: Mon Apr 25 20:27:50 2011, Up time: 00:01:48 Idle time: N/A 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 10 228 Errors Tx 0 Errors Rx 0
show services l2tp session statistics (MX Series Routers)
user@host>show services l2tp session statistics
local session-id 1
Tunnel local ID: 17185 Session local ID: 1, Session remote ID: 14444, Interface unit: 1073788352 State: Established Statistics since: Mon Aug 1 13:27:47 2011 Packets Bytes Data Tx 4 51 Data Rx 3 36