268
Step Command Remarks
3. Accept the IMSI or SN
negotiation requests from
the LNS.
ppp lcp
{
imsi | sn
}
accept
Required.
By default, the client does not
accept IMSI or SN negotiation
requests.
4. Configure IMSI or SN
information.
ppp lcp
{
imsi | sn
}
string
info
Optional.
By default, IMSI or SN information
is automatically obtained.
5. Configure a delimiter for the
username sent to the LNS
during negotiation.
ppp user attach-format imsi-sn
split
splitchart
Optional.
By default, no delimiter is
configured.
Configuring L2TP connection parameters
These L2TP connection parameter configuration tasks apply to both LACs and LNSs and are
optional.
Configuring L2TP tunnel authentication
You can enable tunnel authentication to allow the LAC and LNS to authenticate each other. Either
the LAC or the LNS can initiate a tunnel authentication request. To implement tunnel authentication,
enable tunnel authentication on both the LAC and LNS, and configure the same non-null key on
them.
To ensure tunnel security, enable tunnel authentication.
To change the tunnel authentication key, do so after tearing down the tunnel. Otherwise, your change
does not take effect.
To configure L2TP tunnel authentication:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter L2TP group view.
l2tp-group
group-number N/A
3. Enable L2TP tunnel
authentication.
tunnel authentication
Optional.
Enabled by default.
4. Configure the tunnel
authentication key.
tunnel password
{
cipher
|
simple
}
password
The key is null by default.
Setting the hello interval
To check the connectivity of a tunnel, the LAC and LNS regularly send each other hello packets. On
receipt of a hello packet, the LAC or LNS returns a response packet. If the LAC or LNS receives no
hello response packet from the peer within a specific period of time, it retransmits the hello packet. If
it receives no response packet from the peer after transmitting the hello packet three times, it
considers the L2TP tunnel is down and tries to re-establish a tunnel with the peer.
To set the hello interval: