show services l2tp tunnel
Syntax
show services l2tp tunnel <brief | detail | extensive> <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> <statistics> <tunnel-group group-name>
Description
(M10i and M7i routers only) Display information about active Layer 2 Tunneling Protocol (L2TP) tunnels for LNS.
(MX Series routers only) Display information about L2TP tunnels for LAC and LNS; the tunnels may or may not have active sessions.
Options
none | Display standard information about all active L2TP tunnels. |
brief | detail | extensive | (Default) Display the specified level of output. |
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. |
statistics | (Optional) Display the number of control packets and bytes transmitted and received for the tunnel. The statistics for a tunnel are retained until the tunnel is disconnected, rather than until the last session in the tunnel is cleared. Retaining the statistics enables them to increment in the event a new session subsequently uses the tunnel. You cannot include this option with any of the level options, |
tunnel-group group-name | (Optional) Display L2TP tunnel information for only the specified tunnel group. |
Required Privilege Level
view
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.
Field Name |
Field Description |
---|---|
|
(LNS only) Name of an adaptive services interface. |
|
(LNS only) Name of a tunnel group. |
|
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. |
|
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. |
|
IP address of the peer endpoint of the tunnel. |
|
Number of L2TP sessions established through the tunnel. |
|
State of the L2TP tunnel:
|
|
(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]. |
|
IP address of the local endpoint of the tunnel. |
|
Name used for local tunnel endpoint during tunnel negotiation. |
|
Name used for remote tunnel endpoint during tunnel negotiation. |
|
(LAC only) Peer resynchronization mechanism (PRM) in effect for the tunnel:
|
|
NAS port method (type), which indicates whether the LAC sends Cisco NAS Port Info AVP (100) in ICRQs to the LNS:
|
|
Logical system in which the L2TP tunnel is brought up. |
|
Routing instance in which the L2TP tunnel is brought up. |
|
Maximum number of sessions that can be established on this tunnel. The displayed limit for configured sessions is set to the lowest of the following configured session values for either LAC or LNS:
For LNS only, the following configuration is also considered:
|
|
Number of control messages that can be sent without receipt of an acknowledgment. |
|
Interval between the transmission of hello messages, in seconds. |
|
Date and time when the tunnel was created. While the LNS and LAC are connected, this value should correspond to the when the call was created. If connection to the LAC is severed, the State changes to |
|
Amount of time elapsed since the tunnel became active, in hours, minutes, and seconds. |
|
Amount of time elapsed since the tunnel became idle, in hours, minutes, and seconds. |
|
Date and time when collection of the following statistics began:
|
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)
- show services l2tp tunnel statistics (MX Series Routers)
show services l2tp tunnel (LAC)
user@host> show services l2tp tunnel Local ID Remote ID Remote IP Sessions State 17185 1 203.0.113.101: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: 203.0.113.101:1701 Sessions: 1, State: Established Tunnel Name: 1/tunnel-to-LNS-1 Local IP: 192.0.2.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: 203.0.113.101:1701 Sessions: 1, State: Established Tunnel Name: 2/tunnel-to-LNS-2 Local IP: 192.0.2.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: 198.51.100.15:1701 Sessions: 1, State: Established Tunnel Name: 2/2 Local IP: 198.51.100.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: 203.0.113.101:1701 Sessions: 1, State: Established Tunnel Name: 2/tunnel-to-LNS-2 Local IP: 192.0.2.22: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: 203.0.113.202:1701 Sessions: 1, State: Established Local IP: 203.0.113.121: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: 203.0.113.222:1701 Sessions: 1, State: Established Local IP: 203.0.113.111: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.0.2.3:1701 Sessions: 1, State: Established Tunnel Name: 3/1838 Local IP: 203.0.113.2:1701 Local name: lns-mx960, Remote name: testlac Effective Peer Resync Mechanism: silent failover Nas Port Method: none 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 0
show services l2tp tunnel statistics (MX Series Routers)
user@host>show services l2tp tunnel statistics Tunnel local ID: 17185, Tunnel remote ID: 1 Sessions: 31.8k, State: Established Statistics since: Mon Aug 1 13:21:38 2011 Packets Bytes Control Tx 90.3k 9.0M Control Rx 32.0k 1296.9k Data Tx 127.3k 1591.6k Data Rx 100.8k 1273.4k Errors Tx 0 Errors Rx 0
Release Information
Command introduced before Junos OS Release 7.4.