1.查看設(shè)備版本
FW_1030]dis version
該設(shè)備運(yùn)行著H3C Comware軟件,版本為7.1.054,Ess 9308P05
Copyright (c) 2004-2015 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
2.配置L2TP
?l2tp enable ? ?//全局開(kāi)啟L2TP
l2tp-group 1 mode lns ?
?allow l2tp virtual-template 1
?undo tunnel authentication ? ? // 不啟用隧道認(rèn)證
?ip pool l2tp 172.16.1.2 172.16.1.20 ? //配置地址
Interface Virtual-Template1 ? ? ?創(chuàng)建并配置需接口
?description L2TP_***
?ppp authentication-mode chap?
?remote address pool l2tp ? ? ? ?引用地址池L2TP
?ip address 172.16.1.1 255.255.255.0
3.創(chuàng)建用戶(hù)認(rèn)證用戶(hù)
local-user h4c class network?
?password cipher $c$3$JEjRhTnmTDenPv93IyRc9zUslsxOuQ==
?service-type ppp
?authorization-Attribute user-role network-operator
4.將需接口添加到域
security-zone name Untrust
?import interface GigabitEthernet1/0/0
?import interface Virtual-Template1