Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


test services l2tp tunnel



(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.


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


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


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)

Release Information

Command introduced in Junos OS Release 11.4.