EasyManua.ls Logo

Huawei AR1200 Series - Page 290

Huawei AR1200 Series
392 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
[RouterA] aaa
[RouterA-aaa] local-user huawei password 123
[RouterA-aaa] local-user huawei service-type ppp
[RouterA-aaa] quit
# Configure an L2TP group and its attributes.
[RouterA] l2tp enable
[RouterA] l2tp-group 1
[RouterA-l2tp1] tunnel name LAC
[RouterA-l2tp1] start l2tp ip 12.1.1.1 fullusername huawei
# Enable tunnel authentication and set the tunnel authentication password.
[RouterA-l2tp1] tunnel authentication
[RouterA-l2tp1] tunnel password simple 123
[RouterA-l2tp1] quit
# Configure the user name and password, authentication mode, and IP address for the virtual
PPP user.
[RouterA] interface virtual-template 1
[RouterA-Virtual-Template1] ppp pap local-user huawei password simple 123
[RouterA-Virtual-Template1] ip address 13.1.1.2 255.255.255.0
[RouterA-Virtual-Template1] quit
# Configure a private route so that the packets sent to the headquarters are forwarded through
L2TP tunnels.
[RouterA] ip route-static 192.168.0.0 255.255.255.0 Virtual-Template1
# Enable RouterA to establish an L2TP tunnel.
[RouterA] interface virtual-template 1
[RouterA-virtual-template1] l2tp-auto-client enable
Step 2 Configure RouterB (the LNS side)
# Assign an IP address to Serial1/0/0 on RouterB.
<Huawei> system-view
[Huawei] sysname RouterB
[RouterB] interface serial 1/0/0
[RouterB-Serial1/0/0] link-protocol ppp
[RouterB-Serial1/0/0] ip address 12.1.1.1 255.255.255.0
[RouterB-Serial1/0/0] quit
# Create and configure a virtual template.
[RouterB] interface virtual-template 1
[RouterB-Virtual-Template1] ppp authentication-mode pap
[RouterB-Virtual-Template1] remote address pool 1
[RouterB-Virtual-Template1] ip address 13.1.1.1 255.255.255.0
[RouterB-Virtual-Template1] quit
# Enable L2TP and configure an L2TP group.
[RouterB] l2tp enable
[RouterB]l2tp-group 1
# Set the local and remote device names for the LNS.
[RouterB-l2tp1] tunnel name LNS
[RouterB-l2tp1]allow l2tp virtual-template 1 remote LAC
# Enable tunnel authentication and set the tunnel password.
[RouterB-l2tp1] tunnel authentication
[RouterB-l2tp1] tunnel password simple 123
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.
279

Table of Contents

Other manuals for Huawei AR1200 Series

Related product manuals