H3C路由器的L2TPvpn简单配置

L2TP是一种工业标准的Internet隧道协议,功能大致和PPTP协议类似,比如同样可以对网络数据流进行加密。那么H3C路由器L2TP怎么配置呢?下面跟yjbys小编一起来看看吧!

H3C路由器的L2TPvpn简单配置

system-view

[liuxugang] local-user h3c

[liuxugang-luser-h3c] password simple h3c

[liuxugang-luser-h3c] service-type ppp

[liuxugang-luser-h3c] quit

[liuxugang] domain system 进入默认的域system

[liuxugang-isp-system] ip pool 1 给VPN用户设置地址池

[liuxugang] quit

[liuxugang] l2tp enable 使能l2tp功能

[liuxugang] interface Virtual-Template 0 创建虚模版0

[liuxugang-Virtual-Template0] ip address 设定IP地址

[liuxugang-Virtual-Template0] ppp authentication-mode pap 使用pap验证方式

[liuxugang-Virtual-Template0] remote address pool 1 引用地址池

[liuxugang-Virtual-Template0] quit

[liuxugang] l2tp-group 1 创建l2tp组

[liuxugang-l2tp1] mandatory-lcp 强制LCP自协商

[liuxugang-l2tp1] allow l2tp virtual-template 0 在虚接口商启用l2tp

[liuxugang-l2tp1] undo tunnel authentication 取消隧道验证。默认启用

[liuxugang-l2tp1] quit

save

  l2tp enable ==》启用l2tp

domain system

authentication ppp local ==》本地认证

access-limit disable

state active

idle-cut disable

self-service-url disable

ip pool 1 ==》分配给拨号用户的地址段

l2tp-group 1 ==》

undo tunnel authentication ==》不进行tunnel认证

allow l2tp virtual-template 0 ==》接受任何LAC的.l2tp请求,并绑定到VT0

tunnel password cipher $c$3$G1eL8v28QOPGIdqwR2XTBE/gCZSkyQ==

tunnel name LNS

#

interface Virtual-Template0

ppp authentication-mode chap domain system ==》认证方式chap,使用system默认域

remote address pool 1

ip address

local-user yunwei ==》配置用于本地认证的用户名和密码

password cipher $c$3$LsR7NXmVKcnrFxhVVwg2bsTWh7F8GhdXVSPh/qp5

service-type ppp