test l2tp-tunnel l2tp-group

Function

The test l2tp-tunnel l2tp-group command tests the connection of an L2TP tunnel with specified L2TP group and specified LNS address configured on the LAC.

This command is supported only on the NetEngine 8000 F1A.

Format

test l2tp-tunnel l2tp-group group-name ip-address ip-address session [ remote-backup-service remote-backup-service ] [ hold-time time-value ]

Parameters

Parameter Description Value
group-name

Specifies the L2TP group name.

It is a string of 1 to 32 characters.

ip-address ip-address

Specifies the IP address of the peer LNS for L2TP tunnel.

The value is in dotted decimal format.

session

Specifies the session to be tested.

If no session is specified, the system only tests tunnels. If.

session is specified, after a tunnel is set up, the system sets up a session over it.

-

remote-backup-service remote-backup-service

Specifies the remote backup service name.

If this parameter is not configured, the LAC tests whether the tunnel or session can be established on the master LAC. If this parameter is configured, the master LAC tests whether the tunnel or session can be established and whether the tunnel or session information can be backed up on the backup LAC.

The value is a string 1 to 32 characters.

hold-time time-value

Specifies the holdtime of a tunnel.

If time is not specified, the system establishes a tunnel and immediately tears it down. If time is set to a value ranging from 1 to 3000, the system establishes a tunnel and tears it down after the specified holdtime expires.

The value is an integer ranging from 1 to 3000, in seconds. By default, time is 5 seconds.

Views

All views

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2tp read

Usage Guidelines

Usage Scenario

After the test l2tp-tunnel l2tp-group command is run, the local end sends packets to the destination end that is specified by the parameter ip-address <ip-address> , and then waits for the response from the destination end. If receiving the Reply packet within the timeout period, the local end considers that the L2TP tunnel runs normally; otherwise, the local end considers that the L2TP tunnel is faulty.

If the hold-time parameter is not configured, the system only tests the connection of an L2TP tunnel in the scenario where tunnel authentication is disabled on both ends.

Precautions

In VS mode, this command is supported only on the admin VS.

The value of hold-time <time> should be smaller than the idle-cut time of the L2TP tunnel on the LNS. If the LNS is configured with RADIUS remote server authentication, hold-time time should be greater than the authentication response time, and greater than 5 seconds generally.

Example

# Test an L2TP tunnel with the L2TP group name of isp1-lac and the LNS IP address of 10.3.3.2, and tear down the tunnel 100s after the tunnel is established.
<HUAWEI> test l2tp-tunnel l2tp-group isp1-lac ip-address 10.3.3.2 session hold-time 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >