This article describes how to configure the L2TP router, and provides the configuration principle diagram and detailed configuration commands. I believe this article will help you.
Client:
Now create configuration...
Current configuration
!
Version 1.65:
Hostname R1
!
Interface Aux0
Async mode interactive
Encapsulation ppp
!
Interface Ethernet0
Speed auto
Duplex auto
No loopback
!
Interface Ethernet1
Speed auto
Duplex auto
No loopback
!
Interface Serial0
Encapsulation ppp
Ppp pap sent-username Lemon@richinfo.com password 0 *****
Ip address negotiate
!
Interface Serial1
Clock-select DTECLK1
Encapsulation ppp
Shutdown
!
Voice-port 0
!
Voice-port 1
!
End
LAC:
Now create configuration...
Current configuration
!
Version 1.65:
User Lemon@richinfo.com service-type ppp password 0 *****
Vpdn enable
Aaa-enable
Aaa authentication ppp default local
Aaa authentication login default local
Aaa accounting optional
Hostname R2
!
Interface Aux0
Async mode interactive
Encapsulation ppp
!
Interface Ethernet0
Speed auto
Duplex auto
No loopback
!
Interface Ethernet1
Speed auto
Duplex auto
No loopback
!
Interface Ethernet1
Speed auto
Duplex auto
No loopback
!
Interface Serial0
Clock-select DTECLK1
Encapsulation ppp
Ppp authentication pap
!
Interface Serial1
Encapsulation ppp
Ip address 202.103.1.21 255.255.255.252
!
Vpdn-group 1
Request dialin l2tp ip 202.103.1.22 fullusername *****
L2tp tunnel password 0 ****
!
End
LNS:
Now create configuration...
Current configuration
!
Version 1.65:
User Lemon@richinfo.com service-type ppp password 0 *****
Vpdn enable
Ip local pool 1 192.168.1.2 192.168.1.254
Aaa-enable
Aaa authentication ppp default local
Aaa authentication login default local
Aaa accounting optional
Hostname R3
!
Interface Aux0
Async mode interactive
Encapsulation ppp
!
Interface Ethernet0
Speed auto
Duplex auto
No loopback
!
Interface Serial0
No loopback
!
Interface Serial0
Encapsulation ppp
Shutdown
!
Interface Serial1
Clock-select DTECLK1
Encapsulation ppp
Ip address 202.103.1.22 255.255.255.252
!
Interface Virtual-Template1
Encapsulation ppp
Ppp authentication pap
Peer default ip address pool 1
Ip address 192.168.1.1 255.255.255.0
!
Vpdn-group 1
Accept dialin l2tp virtual-template 1 remote R2
L2tp tunnel password 0 ****
!
End