The tunnel name command sets the local name of a tunnel.
The undo tunnel name command restores the default name.
| 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. |
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.
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.