79
Step Command Remarks
2. Enable L2TP.
l2tp enable By default, L2TP is disabled.
3. Create an L2TP group, specify
its mode, and enter its view.
l2tp-group group-number mode
{ lac | lns }
By default, no L2TP group exists.
Specify the mode as lac on the LAC
side and as lns on the LNS side.
4. Specify the local tunnel name.
tunnel name name
Optional.
By default, the device name is
used.
Configuring an LAC
An LAC establishes tunnels with LNSs and forwards packets between LNSs and remote systems.
Configuring an LAC to initiate tunneling requests for a user
This task configures an LAC to initiate tunneling requests to an LNS for a user. When the PPP user
information matches the specified user, the LAC considers the PPP user as an L2TP user and initiates
tunneling requests to the LNS.
You can specify a user by configuring one of the following items:
• Fully qualified name—The LAC initiates tunneling requests to the LNS only if the username of a PPP
user matches the configured fully qualified name.
• Domain name—The LAC initiates tunneling requests to the LNS only if the ISP domain name of a
PPP user matches the configured domain name.
To configure an LAC to initiate tunneling requests for a user:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter L2TP group view in LAC
mode.
l2tp-group group-number [ mode
lac ]
N/A
3. Configure the LAC to initiate
tunneling requests for a user.
user { domain domain-name |
fullusername user-name }
By default, an LAC does not initiate
tunneling requests for any users.
Specifying LNS IP addresses
You can specify up to five LNS IP addresses. The LAC initiates an L2TP tunneling request to its specified
LNSs consecutively in their configuration order until it receives an acknowledgment from an LNS. That
LNS then becomes the tunnel peer.
To specify LNS IP addresses:
Ste
Command
Remarks
1. Enter system view.
system-view N/A