Configuring an LAC to automatically establish an L2TP tunnel
To configure an LAC to automatically establish an L2TP tunnel, perform the following tasks:
Create a virtual PPP interface and configure an IP address for the interface.
In virtual PPP interface view, use the ppp pap or ppp chap command to configure the side to be authenticated by PPP as follows:
Specify the PPP authentication method for the PPP user.
Configure the username and password of the PPP user.
The LNS then authenticates the PPP user. For more information, see "Configuring PPP and MP."
Trigger the LAC to automatically establish an L2TP tunnel.
To configure an LAC to automatically establish an L2TP tunnel:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a virtual PPP interface and enter its view. | interface virtual-ppp interface-number | By default, no virtual PPP interface is created. |
3. Configure the IP address of the virtual PPP interface. |
| By default, no IP address is configured. |
4. Configure the peer to be authenticated. | See "Configuring PPP and MP." | N/A |
5. Configure the LAC to automatically establish an L2TP tunnel with the LNS. | l2tp-auto-client l2tp-group group-number | By default, an LAC does not establish an L2TP tunnel. An L2TP tunnel automatically established in LAC-auto-initiated mode exists until you remove the tunnel by using the undo l2tp-auto-client or undo l2tp-group group-number command. |
6. (Optional.) Set the description for the interface. | description text | By default, the description of an interface is in the format of interface-name Interface, for example, Virtual-PPP254 Interface. |
7. Set the MTU size of the interface. | mtu size | The default setting is 1500 bytes. |
8. (Optional.) Set the keepalive interval. | timer-hold seconds | The default setting is 10 seconds. |
9. (Optional.) Set the keepalive retry limit. | timer-hold retry retries | The default setting is 5. |
10. (Optional.) Specify a primary traffic processing slot for the interface. |
| By default, no primary traffic processing slot is specified for an interface. |
11. (Optional.) Specify a backup traffic processing slot for the interface. |
| By default, no backup traffic processing slot is specified for an interface. |
12. (Optional.) Set the expected bandwidth for the interface. | bandwidth bandwidth-value | By default, the expected bandwidth (in kbps) is interface baudrate divided by 1000. |
13. (Optional.) Restore the default settings for the interface. | default | N/A |
14. (Optional.) Bring up the interface. | undo shutdown | By default, an interface is up. |