Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

test services l2tp tunnel

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
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.

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 (User authentication fails)

content_copy zoom_out_map
user@host> test services l2tp tunnel user testuser@example.com
Subscriber: testuser@example.com, authentication failed

test services l2tp tunnel user (Multiple tunnels tested)

content_copy zoom_out_map
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)

content_copy zoom_out_map
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.

footer-navigation