Configuring an LNS to accept L2TP tunneling requests from an LAC

When receiving a tunneling request, an LNS performs the following operations:

To configure an LNS to accept L2TP tunneling requests from an LAC:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter L2TP group view in LNS mode.

l2tp-group group-number [ mode lns ]

N/A

3. Configure the LNS to accept tunneling requests from an LAC and specify the VT interface to be used for tunnel setup.

  • If the L2TP group number is 1:allow l2tp virtual-template virtual-template-number [ remote remote-name ]

  • If the L2TP group number is not 1:allow l2tp virtual-template virtual-template-number remote remote-name

By default, an LNS denies tunneling requests from any LAC.

If the L2TP group number is 1, the remote remote-name option is optional. If you do not specify this option, the LNS accepts tunneling requests from any LAC.