Supported Platforms
test services l2tp tunnel
Syntax
Release Information
Command introduced in Junos OS Release 11.4.
Description
(MX Series routers only) Test and verify Layer 2 Tunneling Protocol (L2TP) tunnel configurations from the L2TP access concentrator (LAC). The test determines whether the user can be authenticated and tunneled according to the L2TP configuration. The establishment of all tunnels associated with the user is tested. You can optionally specify a particular tunnel to test for the user.
Options
user user-name | — | Name of the user under test. You must use an existing configured username, although it can be created solely for testing a tunnel configuration. |
password user-password | — | (Optional) Authentication password for the specified user. If you omit this option, the test generates a dummy password—testpass—for the user. |
tunnel-name name | — | (Optional) Name of a tunnel to test. |
Required Privilege Level
view
List of Sample Output
test services l2tp tunnel (User authentication fails)test services l2tp tunnel (Multiple tunnels tested)
test services l2tp tunnel (Specific tunnel tested)
Output Fields
Table 1 lists the output fields for the test services l2tp tunnel command. Output fields are listed in the approximate order in which they appear.
Table 1: test services l2tp tunnel Output Fields
Field Name | Field Description |
---|---|
Tunnel-name | Name of the tunnel as configured in the local tunnel profile. |
Tunnel-peer | IP address of the tunnel’s remote peer (the L2TP network server [LNS]). |
Logical-System | Logical system in which the tunnel is created. |
Routing-Instance | Routing instance in which the tunnel is created. |
Status | Status of the tunnel. |
Sample Output
test services l2tp tunnel (User authentication fails)
user@host> test services l2tp tunnel user testuser@example.com
Subscriber: testuser@example.com, authentication failed
test services l2tp tunnel (Multiple tunnels tested)
user@host> test services l2tp tunnel user testuser@example.com
Subscriber: testuser@example.com, authentication success, l2tp tunneled Tunnel-name Tunnel-peer Logical-System Routing-Instance Status test1tunnel 192.168.2.3 default default Up test2tunnel 172.24.3.3 default default Peer unresponsive test3tunnel 172.24.5.1 default test Up
test services l2tp tunnel (Specific tunnel tested)
user@host> test services l2tp tunnel user testuser@example.com
tunnel-name test1tunnel
Subscriber: testuser@example.com, authentication success, l2tp tunneled Tunnel-name Tunnel-peer Logical-System Routing-Instance Status test1tunnel 192.168.2.3 default default Up