NAS-Initiated模式L2TP隧道配置(H3C)


------------恢復內容開始------------
參考鏈接:https://www.h3c.com/cn/d_201512/903348_30005_0.htm
http://www.h3c.com/cn/d_201907/1210262_30005_0.htm

 

 

 

 

 

<lac>dis cur
#
version 7.1.075, Alpha 7571

sysname lac

interface Virtual-Template1
ppp authentication-mode chap
#
interface GigabitEthernet0/0
ip address 1.1.2.1 255.255.255.0

interface GigabitEthernet0/1
pppoe-server bind virtual-template 1

domain name system
authentication ppp none

local-user vpdnuser class network
password cipher $c$3$cAsM5hB4339MrsyBqD2QiSLRRMohqXFm
service-type ppp
authorization-attribute user-role network-operator
#
l2tp-group 1 mode lac
lns-ip 1.1.2.2
user fullusername vpdnuser
undo tunnel authentication
tunnel name LAC

l2tp enable

[lns]dis cur
#
version 7.1.075, Alpha 7571
#
sysname lns
#
ip pool aaa 192.168.0.10 192.168.0.20
ip pool aaa gateway 192.168.0.1
#

interface Virtual-Template1
ppp authentication-mode chap domain system
remote address pool aaa
#
interface NULL0
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 1.1.2.2 255.255.255.0

domain name system
authentication ppp local

local-user vpdnuser class network
password cipher $c$3$0xnVh0D4srYQnQW1/t6ZWd7NHErYgn9S
service-type ppp
authorization-attribute user-role network-operator
#
l2tp-group 1 mode lns
allow l2tp virtual-template 1 remote LAC
undo tunnel authentication
tunnel name LNS
#
l2tp enable

 

物理主機寬帶撥號:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[lns]dis l2tp session
LocalSID RemoteSID LocalTID State
40190 19945 19620 Established
[lns]dis l2tp tu
[lns]dis l2tp tunnel
LocalTID RemoteTID State Sessions RemoteAddress RemotePort RemoteName
19620 13016 Established 1 1.1.2.1 1701 LAC

 

------------恢復內容結束------------感謝恢復;剛剛橋接到自己物理網卡 電腦藍屏了 。。。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM