Configuring an LAC to automatically establish an L2TP tunnel

To configure an LAC to automatically establish an L2TP tunnel, perform the following tasks:

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.

  • Assign an IP address to the virtual PPP interface.ip address address mask

  • Enable IP address negotiation on the virtual PPP interface.ip address ppp-negotiate

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.

  • Distributed devices in standalone mode/centralized devices in IRF mode: service slot slot-number

  • Distributed devices in IRF mode:service chassis chassis-number slot slot-number

By default, no primary traffic processing slot is specified for an interface.

11. (Optional.) Specify a backup traffic processing slot for the interface.

  • Distributed devices in standalone mode/centralized devices in IRF mode: service standby slot slot-number

  • Distributed devices in IRF mode:service standby chassis chassis-number slot slot-number

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.