Step 2 Run:
interface virtual-template vt-number
A virtual template interface is created and the virtual template interface view is displayed.
Step 3 Configure an IP address for the virtual interface in any of the following methods:
l Run:
ip address ip-address { mask | mask-length }
An IP address is configured for the interface.
l Run:
ip address ppp-negotiate
The dialer interface is configured to obtain an IP address from PPP negotiation.
l Run:
ip address unnumbered interface interface-type interface-number
The virtual template interface is configured to borrow an IP address from another interface.
Step 4 Run the following command as required.
l Run:
ppp pap local-user username password { cipher | simple } password
The user name and password in PAP authentication are configured.
l
1. Run:
ppp chap user username
The user name in CHAP authentication is configured.
2. Run:
ppp chap password { cipher | simple } password
The password in CHAP authentication is configured.
The user name and password configured on the local device must be the same as those configured
on the remote device. By default, the local device sends a request to the remote device with the
empty user name and password in PAP authentication.
Step 5 Run:
l2tp-auto-client enable
LAC auto-dial is enabled.
Step 6 Run:
quit
Return to the system view.
Step 7 Run:
ip route-static ip-address { mask | mask-length } virtual-template vt-number
A static route is configured.
Set the destination network segment of the static route to the network segment of the headquarters
and the outbound interface to the virtual PPP interface. After the configurations are complete,
packets from users are sent out from the LAC through the PPP interface and reach the LNS
through an L2TP tunnel.
----End
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN 4 L2TP Configuration
Issue 01 (2012-04-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
254