< Home

tunnel name

Function

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

The undo tunnel name command restores the default name.

Format

tunnel name tunnel-name

undo tunnel name

Parameters

Parameter Description Value
tunnel-name

Specifies the name of the local end of a tunnel.

The value is a string of 1 to 30 case-insensitive characters.

Views

L2TP group view

Default Level

2: Configuration level

Usage Guidelines

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

When you create an L2TP group, the local tunnel name is initialized as the device name.

You can run the tunnel name command to configure another name as the local tunnel name.

The tunnel name is used when the LAC and LNS negotiate a tunnel. Tunnel authentication modes have different requirements on tunnel names.
  • In local authentication mode, the LAC and LNS do not require any tunnel name. Only the tunnel password is used. The LNS selects an L2TP group to respond to a connection request from the LAC according to the tunnel name. Ensure that the tunnel name specified on the LAC is the same as the remote tunnel name specified 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 an L2TP tunnel as a user, and the tunnel name must be in the username@domain format. During setup of a tunnel, the LAC or LNS sends the obtained user name and password to the AAA server for authentication. The user name and password must be specified on the AAA server.

Example

# Set the local tunnel name to itsme.

<sysname> system-view
[sysname] l2tp-group 1
[sysname-l2tp-1] tunnel name itsme
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >