test services l2tp tunnel
Syntax
test services l2tp tunnel user user-name
<password user-password>
<tunnel-name name>
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
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.
Field Name |
Field Description |
---|---|
|
Name of the tunnel as configured in the local tunnel profile. |
|
IP address of the tunnel’s remote peer (the L2TP network server [LNS]). |
|
Logical system in which the tunnel is created. |
|
Routing instance in which the tunnel is created. |
|
Status of the tunnel. |
Sample Output
- test services l2tp tunnel user (User authentication fails)
- test services l2tp tunnel user (Multiple tunnels tested)
- test services l2tp tunnel user tunnel-name (Specific tunnel tested)
test services l2tp tunnel user (User authentication fails)
user@host> test services l2tp tunnel user testuser@example.com Subscriber: testuser@example.com, authentication failed
test services l2tp tunnel user (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.0.2.3 default default Up test2tunnel 198.51.100.243 default default Peer unresponsive test3tunnel 198.51.100.251 default test Up
test services l2tp tunnel user tunnel-name (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.0.2.3 default default Up
Release Information
Command introduced in Junos OS Release 11.4.