Got it

Huawei L2TP Configuration

Latest reply: Dec 29, 2018 08:59:39 1146 3 7 0 0

Huawei L2TP Configuration

1. PC-LAC-LNS

The PC accesses the LAC through the PSTN, and then the LAC initiates L2TP setup with the LNS.

[Router LAC]
Sysname LAC

#

L2tp enable / Enable l2tp/.

The separator of l2tp domain suffix-separator @ /domain is @/.

L2tp match-order domain-dnis

#

Dialer-rule 1 ip permit

#

Domain huawei.com / Create huawei.com domain /

The scheme none / authentication mode is as follows: No authentication is required. The LNS authenticates the user. If authentication is required, the local account needs to be configured.

Domain system

#

Enable the dialup function on the interface Analogmodem1/0 /AM interface.

Async mode protocol

Link-protocol ppp

Dialer enable-circular

Dialer-group 1

Dialer circular-group 0

#

Interface Dialer0

Link-protocol ppp

Ppp authentication-mode pap domain huawei.com /PPP The authentication domain is huawei.com/.

Ip address 1.1.1.1 255.255.255.0

Dialer enable-circular

Dialer-group 1

#

Interface Ethernet0/0

Ip address 202.101.100.2 255.255.255.252

#

L2tp-group 1

The tunnel password simple quidway /tunnel authentication password is quidway/.

Tunnel name lac-end

The start l2tp ip 202.101.100.1 domain huawei.com / initiates a request for establishing a tunnel based on the domain name of the user.

#

User-interface tty 17

Authentication-mode scheme

Modem/ is enabled on the modem both /AM interface.


Return


[Router LNS]

#

Sysname LNS

#

L2tp enable / Enable l2tp/.

The separator of l2tp domain suffix-separator @ /domain is @/.

L2tp match-order domain

#

Domain huawei.com / Create huawei.com domain /

Address allocated by the ip pool 1 192.168.0.2 192.168.0.20 / to the dial-up user /

Domain system

#

Local-user usera / Creating a Local Account for Authenticating a User /

Password simple usera

Service-type ppp

#

Interface Virtual-Template0

Ppp authentication-mode pap domain huawei.com /PPP The authentication domain is huawei.com/.

Ip address 192.168.0.1 255.255.255.0

Remote address pool 1 / Specify the address allocated by the ip pool 1 to the user. /

#

Interface Ethernet2/0

Ip address 202.101.100.1 255.255.255.252

#

L2tp-group 1

Mandatory-lcp /LCP Renegotiation /

The allow l2tp virtual-template 0 remote lac-end / accepts the L2TP request from the lac-end and binds the request to the VT0/.

The tunnel password simple quidway /tunnel authentication password is quidway/.

Tunnel name lns-end

#



[Note]

1) and lac can be routers or dial-up access servers.

2). The user enters the account and password usera@huawei.com/usera on the dial-up network.

The 2 PC uses L2TP as the lac to connect to the lns router.

#

Sysname LNS

#

L2tp enable / Enable l2tp/.

#

Domain system

Address allocated by the ip pool 1 192.168.0.2 192.168.0.100 / to the dial-up user /

#

Local-user usera / Create a local account for authenticating the user.

Password simple usera

Service-type ppp

#

Interface Virtual-Template0

Ppp authentication-mode pap /PPP The authentication mode is PAP, and the system default domain is used.

Ip address 192.168.0.1 255.255.255.0

Remote address pool 1 / Specify the IP address assigned by the ip pool 1 to the user. /

#

Interface Ethernet2/0

Ip address 202.101.100.1 255.255.255.252

#

L2tp-group 1

Mandatory-lcp /LCP Renegotiation /

The allow l2tp virtual-template 0 / receives L2TP requests from any LAC and binds them to the VT0/.

Undo tunnel authentication / Tunnel authentication is not performed.

#

Ip route-static 0.0.0.0 0.0.0.0 202.101.100.2 preference 60

Return

  • x
  • convention:

yiyi0519
Created Dec 29, 2018 06:25:23

In computer networking, Layer 2 Tunneling Protocol (L2TP) is a tunneling protocol used to support virtual private networks (VPNs) or as part of the delivery of services by ISPs. It does not provide any encryption or confidentiality by itself. Rather, it relies on an encryption protocol that it passes within the tunnel to provide privacy.[
View more
  • x
  • convention:

4am
Created Dec 29, 2018 07:56:31

L2TP is often used in remote access of enterprises. L2TP over IPsec
View more
  • x
  • convention:

chouhao
Created Dec 29, 2018 08:59:39

thanks for sharing, I learned a lot about Huawei L2TP Configuration from this good case.
wish you can share much about this product. so I can learn a lot :)
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.