Configuring L2TP VPN on Huawei Devices
This guide provides a step‑by‑step configuration for setting up an L2TP VPN on Huawei equipment, covering ACL rules, IP pools, user authentication, interface settings, virtual templates, PPP parameters, static routing, and related commands.
Use L2TP VPN, configuration as follows:
#<br/>
l2tp enable<br/>
#<br/>
acl number 2001<br/>
rule 5 permit source 192.168.1.0 0.0.0.255<br/>
#<br/>
ip pool lns<br/>
gateway-list 192.168.1.1<br/>
network 192.168.1.0 mask 255.255.255.0<br/>
#<br/>
aaa<br/>
local-user huawei password cipher abc@123<br/>
local-user huawei server-type ppp<br/>
#<br/>
interface GigabitEthernet1/0/0<br/>
ip address 202.1.1.1 255.255.255.0<br/>
nat outbound 2001<br/>
#<br/>
interface Virtual-Template1<br/>Set PPP authentication mode to PAP. ppp authentication-mode pap<br/> Additional L2TP and routing configuration:
remote address pool lns<br/>
ppp ipcp dns 10.10.10.10<br/>
ip address 192.168.1.1 255.255.255.0<br/>
#<br/>
l2tp-group 1<br/>
undo tunnel authentication<br/>
allow l2tp virtual-template 1<br/>
#<br/>
ip route-static 0.0.0.0 0.0.0.0 202.1.1.2<br/>
#<br/>
return<br/>Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Practical DevOps Architecture
Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
