show services l2tp session
Syntax
show services l2tp session <brief | detail | extensive> <interface interface-name> <local-gateway gateway-address> <local-gateway-name gateway-name> <local-session-id session-id> <local-tunnel-id tunnel-id> <peer-gateway gateway-address> <peer-gateway-name gateway-name> <statistics> <tunnel-group group-name> <user username>
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, |
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 |
user username | (M Series routers only) (Optional) Display L2TP session information for only the specified username. |
Required Privilege Level
view
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.
Field Name |
Field Description |
Level of Output |
---|---|---|
|
(LNS only) Name of an adaptive services interface. |
All levels |
|
(LNS only) Name of a tunnel group. |
All levels |
|
Identifier of the local endpoint of the tunnel, as assigned by the L2TP network server (LNS). |
All levels |
|
Identifier of the local endpoint of the L2TP session, as assigned by the LNS. |
All levels |
|
Identifier of the remote endpoint of the L2TP session, as assigned by the L2TP access concentrator (LAC). |
All levels |
|
State of the L2TP session:
|
All levels |
|
(LNS only) Bundle identifier. Indicates
the session is part of a multilink bundle. Sessions that have a blank |
All levels |
|
(LNS) Mode of the interface representing
the session: (LAC) Mode of the interface representing the session: |
|
|
IP address of local endpoint of the Point-to-Point Protocol (PPP) session. |
|
|
IP address of remote endpoint of the PPP session. |
|
|
(LNS only) Name of the user logged in to the session. |
All levels |
|
(LNS only) IP address assigned to remote client. |
|
|
For LNS, name of the LNS instance in which the session was created. For LAC, name of the LAC. |
|
|
For LNS, name of the LAC from which the session was created. For LAC, name of the LAC instance. |
|
|
(LNS only) Maximum receive unit (MRU) setting of the local device, in bytes. |
|
|
(LNS only) MRU setting of the remote device, in bytes. |
|
|
Transmit speed of the session conveyed from the LAC to the LNS, in bits per second (bps) and the source method from which the speed is derived. Starting in Junos OS Release 14.1, either the initial
(
For Junos OS Release 17.2 and Release 17.3, only the current
( Starting in Junos OS Release 17.4R1, once again either the initial
( Starting in Junos OS Release 15.1, when the Tx connect speed method is set to none, the value of zero (0) is displayed. |
|
|
Receive speed of the session conveyed from the LAC to the LNS, in bits per second (bps) and the source method from which the speed is derived. Starting in Junos OS Release 14.1, either the initial
(
For Junos OS Release 17.2 and Release 17.3, only the current
( Starting in Junos OS Release 17.4R1, once again either the initial
( Starting in Junos OS Release 15.1, when the Tx connect speed method is set to none, the value of zero (0) is displayed. |
|
|
Type of bearer enabled:
|
|
|
Type of framing enabled:
|
|
|
(LNS only) Whether Link Control
Protocol (LCP) renegotiation is configured: |
|
|
Type of authentication algorithm used: Challenge Handshake Authentication Protocol (CHAP) or Password Authentication Protocol (PAP). |
|
|
(LNS only) Identifier used to look up the logical interface for this session. |
|
|
Logical interface for this session. |
All levels |
|
Unique serial number assigned to the call. |
|
|
Maximum policer bandwidth configured for this session. |
|
|
Maximum policer burst size configured for this session. |
|
|
Configured firewall filter name. |
|
|
Overhead allowance configured for this session, in bytes. |
|
|
Cell overhead activation ( |
|
|
Date and time when the call was created. |
|
|
Length of time elapsed since the call became active, in hours, minutes, and seconds. |
|
|
Length of time elapsed since the call became idle, in hours, minutes, and seconds. |
|
|
Date and time when collection of the following statistics began:
|
|
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 (LAC on MX Series Routers)
- 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)
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: 203.0.113.2:1701, Remote IP: 203.0.113.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: 203.0.113.2:1701, Remote IP: 203.0.113.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 (LAC on MX Series Routers)
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: 203.0.113.102:1701, Remote IP: 203.0.113.101:1701 Local name: ce-lac, Remote name: ce-lns Tx speed: 256000, source service-profile Rx speed: 128000, source ancp 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: 203.0.113.121:1701, Remote IP: 203.0.113.202:1701 Username: user@example.com, Assigned IP address: 203.0.113.51/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: 203.0.113.121:1701, Remote IP: 203.0.113.222:1701 Username: usr1@company.example.com, Assigned IP address: 203.0.113.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: 192.0.2.2:1701, Remote IP: 192.0.2.3:1701 Local name: lns-mx960, Remote name: testlac Tx speed: initial 64000, Update 256000 Rx speed: initial 64000, Update 256000 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
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.