tunnel name

Function

The tunnel name command specifies the local name of a tunnel.

The undo tunnel name command restores the default tunnel name.

By default, the local name of a tunnel is the device name.

This command is supported only on the NetEngine 8000 F1A.

Format

tunnel name tunnel-name [ lns-ip lns-ip ]

undo tunnel name [ lns-ip lns-ip ]

Parameters

Parameter Description Value
tunnel-name

Specifies the name of the local end of a tunnel.

The name is a character string of 1 to 253 characters.

lns-ip lns-ip

Specifies the IP address of an LNS.

The value is in dotted decimal format.

Views

L2TP group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2tp write

Usage Guidelines

Usage Scenario

On creating an L2TP group, the local name of a tunnel is initiated to the device name.

The tunnel name command specifies other names as the local name.

To configure a tunnel name based on a specified LNS IP address, specify the lns-ip parameter.

The tunnel name is used when the LAC and LNS negotiate tunnel parameters. Different tunnel authentication modes have different requirements for the tunnel name.

  • In local tunnel authentication mode, the LAC and LNS do not require the tunnel name. Only the tunnel password is used. The LNS selects an L2TP group to respond to the connection request of the LAC according to the tunnel name. Ensure that the tunnel name configured on the LAC is the same as the peer tunnel name configured on the LNS. You do not need to configure the local tunnel name on the LNS.
  • In AAA authentication mode, the LAC and LNS consider the L2TP tunnel as a user, so the tunnel name must be in the format of username.

Precautions

During configuration of a tunnel name based on the LNS address, the IP address must be specified using the start l2tp ip command. Otherwise, the function does not take effect.

Example

# Set the local name of a tunnel as itsme.
<HUAWEI> system-view
[~HUAWEI] l2tp-group 1
[*HUAWEI-l2tp-1] tunnel name itsme
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >