华为路由器上L2TP的配置

网络 路由交换
路由器是我们常用到的网络设备,我们在使用时对于路由器L2TP的配置要怎么操作呢?具体要进行哪些命令操作呢?下文给出了详细解答。

本文主要给大家讲述了路由器L2TP的配置流程,同时给出了大家配置原理图,以及详细的配置命令,相信看过此文会对你有所帮助。

 

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
 

【编辑推荐】

  1. 华为路由器与CISCO路由器在配置上的差别
  2. 华为路由器简单配置详解
  3. 理解华为路由器配置命令中清除列表规则
  4. 应用视点:看华为路由器接入的实际应用
  5. 应用视点:华为路由器网守配合技巧
责任编辑:chenqingxiang 来源: IT实验室
相关推荐

2011-01-17 11:05:28

华为认证

2014-11-17 15:47:51

2010-08-05 08:43:40

2009-11-20 15:20:06

Cisco路由器华为路由器

2009-12-30 15:29:16

2009-12-11 15:21:15

华为路由器CISCO路由器

2010-08-09 09:49:15

华为路由器配置

2009-02-20 12:33:56

SUSE控制服务器案例

2009-11-10 10:10:01

华为路由器

2009-12-02 10:34:04

华为路由器配置实例

2010-08-09 13:48:22

路由器配置命令

2010-08-20 11:55:30

华为路由器配置

2010-08-09 10:31:00

华为路由器路由配置命令

2010-08-09 10:35:53

华为路由器NAT配置

2010-07-28 15:43:11

路由器配置命令

2013-01-16 09:01:45

华为路由器配置

2009-12-01 16:01:21

华为路由器配置

2009-11-10 14:31:13

华为路由器配置

2010-08-12 10:17:05

华为路由器配置

2010-08-12 08:57:25

点赞
收藏

51CTO技术栈公众号