H3C路由器的L2TPvpn簡(jiǎn)單配置
L2TP是一種工業(yè)標(biāo)準(zhǔn)的Internet隧道協(xié)議,功能大致和PPTP協(xié)議類似,比如同樣可以對(duì)網(wǎng)絡(luò)數(shù)據(jù)流進(jìn)行加密。那么H3C路由器L2TP怎么配置呢?下面跟yjbys小編一起來看看吧!
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 進(jìn)入默認(rèn)的域system
[liuxugang-isp-system] ip pool 1 192.168.1.2 192.168.1.255 給VPN用戶設(shè)置地址池
[liuxugang] quit
[liuxugang] l2tp enable 使能l2tp功能
[liuxugang] interface Virtual-Template 0 創(chuàng)建虛模版0
[liuxugang-Virtual-Template0] ip address 192.168.5.1 255.255.255.0 設(shè)定IP地址
[liuxugang-Virtual-Template0] ppp authentication-mode pap 使用pap驗(yàn)證方式
[liuxugang-Virtual-Template0] remote address pool 1 引用地址池
[liuxugang-Virtual-Template0] quit
[liuxugang] l2tp-group 1 創(chuàng)建l2tp組
[liuxugang-l2tp1] mandatory-lcp 強(qiáng)制LCP自協(xié)商
[liuxugang-l2tp1] allow l2tp virtual-template 0 在虛接口商啟用l2tp
[liuxugang-l2tp1] undo tunnel authentication 取消隧道驗(yàn)證。默認(rèn)啟用
[liuxugang-l2tp1] quit
save
l2tp enable ==》啟用l2tp
domain system
authentication ppp local ==》本地認(rèn)證
access-limit disable
state active
idle-cut disable
self-service-url disable
ip pool 1 10.10.6.10 10.10.6.100 ==》分配給撥號(hào)用戶的地址段
l2tp-group 1 ==》
undo tunnel authentication ==》不進(jìn)行tunnel認(rèn)證
allow l2tp virtual-template 0 ==》接受任何LAC的.l2tp請(qǐng)求,并綁定到VT0
tunnel password cipher $c$3$G1eL8v28QOPGIdqwR2XTBE/gCZSkyQ==
tunnel name LNS
#
interface Virtual-Template0
ppp authentication-mode chap domain system ==》認(rèn)證方式chap,使用system默認(rèn)域
remote address pool 1
ip address 10.10.6.1 255.255.255.0
local-user yunwei ==》配置用于本地認(rèn)證的用戶名和密碼
password cipher $c$3$LsR7NXmVKcnrFxhVVwg2bsTWh7F8GhdXVSPh/qp5
service-type ppp
【H3C路由器的L2TPvpn簡(jiǎn)單配置】相關(guān)文章:
1.h3c路由器配置