The allow l2tp virtual-template command sets the L2TP group to the LNS type, binds it to the virtual template, and specifies the name of the peer (tunnel name of the peer L2TP group).
The undo allow command deletes the configuration and restores the default setting.
By default, no virtual template is bound to an L2TP group.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
virtual-template-number |
Specifies the number of the VT bound to the Layer 2 Tunneling Protocol (L2TP) group. |
The value is an integer of ranging from 0 to 1023. |
remote lac-name |
Indicates the tunnel name of the remote L2TP Access Concentrator (LAC) of an L2TP Network Server (LNS). This parameter is optional if the command is run in the view of the default L2TP group default-lns. Otherwise, this parameter is mandatory. |
The value is a string of 1 to 253 case-sensitive characters, spaces not supported. |
ip-address address |
Specifies a source address based on which an L2TP tunnel is set up. After this parameter is configured, the LNS checks the source address carried in packets sent from the LAC when establishing an L2TP tunnel. The tunnel can be established only when the source address is the same as the configured one. |
The value is in dotted decimal notation. |
Usage Scenario
An LNS can use different virtual templates to receive tunnel establishment requests from different LACs. To specify a virtual template and tunnel name of an LAC, run the allow l2tp virtual-template command on an LNS.
Prerequisites
The virtual template has been configured using the interface virtual-template command.
Precautions
The value of lac-name must be the same as the tunnel name configured on the LAC.
The allow l2tp virtual-template command cannot be run if the default L2TP request group (default-lac) is used. The allow l2tp virtual-template and start l2tp commands are mutually exclusive. The remote lac-name parameter must be configured. Otherwise, the configuration fails. A remote tunnel name can be bound to only one L2TP group. Re-configure a remote tunnel name if the one specified by remote lac-name has been bound to another L2TP group.