Configuring basic L2TP capabilities
An L2TP group is intended to represent a group of parameters and corresponds to one VPN user or one group of VPN users. This enables not only flexible L2TP configuration on devices, but also one-to-one and one-to-many networking applications for LACs and LNSs. An L2TP group only has local significance. However, you must make sure that the relevant settings of the L2TP groups on the LAC and LNS match. For example, the local tunnel name configured on the LAC must match the remote tunnel name configured on the LNS.
L2TP must be enabled for L2TP configuration to take effect. Tunnel names are used during tunnel negotiation between an LAC and an LNS.
To configure basic L2TP capability:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable L2TP. | l2tp enable | Disabled by default. |
3. Create an L2TP group and enter its view. | l2tp-group group-number | By default, no L2TP group exists. |
4. Specify the local name of the tunnel. | tunnel name name | Optional. The system name of the device is used by default. |