首页 科技问答 MSR36-40 配置L2TP,然后手机进行APN接入实现访问企业内网问题

MSR36-40 配置L2TP,然后手机进行APN接入实现访问企业内网问题

科技问答 351
1675822958,

问题描述:

MSR36-40 配置L2TP结和运营商做adius代理认证,然后手机进行APN接入实现访问企业内网问题

具体需求如下:

1、本LNS设备的公网地址如下。采用163公网接入,IP地址为:124.227.X.X,已经配置在G0/2.

2、本VPN的认证方式是由运营商代理认证。运营商给的L2TP参数如下:

VPDN 域名为:fcgsgaj.vpdn.gx vpdn隧道名:fcgsgaj.gx 隧道密码:fcgsgaj

3、VPDN AAA的IP地址为:115.168.X.X 密钥fcgsgaj

以上需求如何在MSR上实现,有没有相关案例?

下面是华为防火墙的一些相关配置:
#
 l2tp enable
 l2tp domain suffix-separator @
#
 dns resolve
#
 undo firewall session link-state check
#
#
 dns proxy enable
#
radius-server template lns1
 radius-server shared-key FCGsgdj123
 radius-server authentication 115.168.51.21 1812
 radius-server accounting 115.168.51.21 1813
 radius-server user-name domain-included
#
interface Virtual-Template1
 ppp authentication-mode pap
 ppp ipcp dns 202.103.224.68
 undo alias
 ip address x.x.x.x 255.255.255.0
 remote address pool 1
#
interface GigabitEthernet0/0/0
 ip address xxxx.xxxx
#
interface GigabitEthernet0/0/1
 ip address xxxx.xxxx
#
l2tp-group 1
 allow l2tp virtual-template 1
 tunnel password simple xxxx123
 tunnel name fcgsgdj.gx
#
aaa
 local-user fc2200 password simple FC2200
 local-user fc2200 service-type terminal telnet
 local-user fc2200 level 15
 local-user admin password cipher :6\RQ@:(:["6_V:C\2QL^Q!!
 local-user admin service-type web terminal telnet
 local-user admin level 15
 ip pool 1 172.168.0.2 172.168.0.100
 #
 authentication-scheme default
 authentication-scheme lns1
  authentication-mode  radius
 #
 authorization-scheme default
 #
 accounting-scheme default
 accounting-scheme lns1
  accounting-mode radius
 #
 domain default
 domain dot1x
 domain fcgsxxx.vpdn.gx
  authentication-scheme  lns1
  accounting-scheme lns1
  radius-server lns1
  ip pool 1 172.168.0.2  172.168.0.100
 #
附图是手机终端接入:

 

 



(0)

最佳答案

已采纳 Arrival Arrival 四段 粉丝:2人 关注:1人

看了一下华为的配置,这个应该在MSR3640上只需要配置基本的L2TP LNS配置,只是将认证方式修改为radius认证应该就可以了。

# 配置ISP域system对PPP用户采用radius认证。

[LNS]radius scheme xxx

[LNS-radius-xxx]primary authentication 1.1.1.1
[LNS-radius-xxx]primary accounting 1.1.1.1
[LNS-radius-xxx]key authentication simple 123456
[LNS-radius-xxx]key accounting simple 123456

[LNS] domain system

[LNS-isp-system] authentication ppp radius-scheme xxx

[LNS-isp-system] authorization ppp radius-scheme xxx

[LNS-isp-system] accounting ppp radius-scheme xxx

[LNS-isp-system] quit

# 开启L2TP功能。

[LNS] l2tp enable

#配置PPP地址池。

[LNS] ip pool aaa 192.168.0.10 192.168.0.20

[LNS] ip pool aaa gateway 192.168.0.1

# 创建接口Virtual-Template1,PPP认证方式为CHAP,并使用地址池aaa为Client端分配IP地址。

[LNS] interface virtual-template 1

 [LNS-virtual-template1] ppp authentication-mode chap domain system

[LNS-virtual-template1] remote address pool aaa

[LNS-virtual-template1] quit

# 创建LNS模式的L2TP组1,配置隧道本端名称为LNS,指定接收呼叫的虚拟模板接口为VT1。

[LNS] l2tp-group 1 mode lns

[LNS-l2tp1] tunnel name LNS

[LNS-l2tp1] allow l2tp virtual-template 1

# 关闭L2TP隧道验证功能。

[LNS-l2tp1] undo tunnel authentication




(0)

暂无评论

回复xxx [x] 2

移动终端拨l2tp的话一般是l2tp over ipsec ,apn就不太清楚了,等待大手解答...


(0)

暂无评论

回复xxx [x] 已采纳 飞行的爬虫 飞行的爬虫 一段 粉丝:0人 关注:0人

其实就是MSR做LAC,运营商侧的设备做LNS,LAC上进行用户接入认证。

Arrival楼上正解

(0)

暂无评论

回复xxx [x],MSR36-40 配置L2TP,然后手机进行APN接入实现访问企业内网问题