沐鸣娱乐5G/4G工业路由器与思科搭建L2TP VPN方案
L2TP(Layer 2 Tunneling Protocol) VPN是一种用于承载PPP报文的隧道技术,该技术主要应用在远程办公场景中为出差员工远程访问企业内网资源提供接入服务。
L2TP(Layer Two Tunneling Protocol,第二层(ceng)隧道协(xie)议(yi))是虚拟(ni)专用(yong)拨号(hao)网络(luo)(VPDN)技术的(de)一种。L2TP可以让拨号(hao)用(yong)户从L2TP客(ke)户端或者L2TP访问集中器端(LAC)发(fa)起VPN连(lian)接,通过点对点协(xie)议(yi)(PPP)连(lian)接到L2TP 网络(luo)服务器(LNS)。连(lian)接成功后(hou),LNS会向合法(fa)用(yong)户分配IP地址,并允许其访问私网。
设备在L2TP协议隧(sui)道组网(wang)中充(chong)当(dang)LNS的(de)角色,它接(jie)受来自L2TP客户(hu)端或LAC的(de)连接(jie),进行用户(hu)认证与授权,为合法(fa)用户(hu)分配IP地(di)址、DNS服务(wu)器地(di)址和WINS服务(wu)器地(di)址。
L2TP协(xie)议不对隧道传输(shu)中的(de)(de)数(shu)据(ju)(ju)进行(xing)加密,因此在传输(shu)过(guo)程(cheng)中无法保(bao)证数(shu)据(ju)(ju)的(de)(de)安全。用户可以将L2TP协(xie)议和IPSec协(xie)议结合使用,利用IPSec协(xie)议对数(shu)据(ju)(ju)进行(xing)加密的(de)(de)优势,保(bao)证L2TP隧道传输(shu)中的(de)(de)数(shu)据(ju)(ju)安全。
如何使用沐鸣娱乐5G工业路由器与思科搭建L2TP VPN?请看解决方案。
沐鸣娱乐5G/4G工业路由器:VPN-----L2TP设置界面,对应思科L2TP配置内容如下图所示:
(思科指令详细配置见最后一页)
沐鸣娱乐5G/4G工业路由器“运行状态”界面中查看L2TP连接状态
在思科界面带源(yuan)ping 沐鸣娱(yu)乐路由器的192.168.1.1子(zi)网
在沐鸣娱乐5G/4G工业路由器带源ping思科的200.200.200.1子网
思(si)科L2TP配置:
vpdn enable
!
vpdn-group 1
! Default L2TP VPDN group
accept-dialin
protocol l2tp
virtual-template 1
no l2tp tunnel authentication
!
memory-size iomem 0
username xmalt password 0 xmalt001
!
interface Loopback0
ip address 10.10.10.10 255.255.255.0
!
interface Loopback1
ip address 200.200.200.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.27.80 255.255.255.0
duplex half
!
interface Virtual-Template1
ip unnumbered Loopback0
peer default ip address pool l2tp-pool
ppp authentication ms-chap pap ms-chap-v2
ip local pool l2tp-pool 10.10.10.10 10.10.10.50
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.27.1