R0106-HP MSR Router Series Layer 2 - WAN Command Reference(V7)
84
l2tp enable
Use l2tp enable to enable the L2TP function.
Use undo l2tp enable to disable the L2TP function.
Syntax
l2tp enable
undo l2tp enable
Default
The L2TP function is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
L2TP must be enabled for relevant L2TP configurations to take effect.
Examples
# Enable the L2TP function.
<Sysname> system-view
[Sysname] l2tp enable
l2tp-auto-client
Use l2tp-auto-client to trigger an LAC to automatically establish an L2TP tunnel.
Use undo l2tp-auto-client to remove the automatically established L2TP tunnel.
Syntax
l2tp-auto-client l2tp-group group-number
undo l2tp-auto-client
Default
An LAC does not automatically establish an L2TP tunnel.
Views
Virtual PPP interface view
Predefined user roles
network-admin
Parameters
l2tp-group group-number: Specifies an L2TP group whose tunnel parameters are used by the LAC to
establish the tunnel. The value range for the group-number argument is 1 to 65535.
Usage guidelines
The L2TP group specified must be an existing one in LAC mode.