• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

f100 v7 搭建l2tp over ipsec vpn问题请教

2022-02-27提问
  • 1关注
  • 1收藏,1033浏览
粉丝:0人 关注:2人

问题描述:

在使用iNode连接时 提示Ike协商失败。请高手帮吗看一下问题出在哪里。

组网及组网描述:

dis cu
#
 version 7.1.064, Ess 9508
#
 sysname H3C
#
context Admin id 1
#
ip vpn-instance management
 route-distinguisher 1000000000:1
 vpn-target 1000000000:1 import-extcommunity
 vpn-target 1000000000:1 export-extcommunity
#
 irf mac-address persistent timer
 irf auto-update enable
 undo irf link-delay
 irf member 1 priority 1
#
 ip pool 10 172.16.1.10 172.16.1.50
#
 password-recovery enable
#
vlan 1
#
interface Virtual-Template1
 ppp authentication-mode chap pap
 remote address pool 10
 ip address 172.16.1.1 255.255.255.0
#
interface NULL0
#
interface GigabitEthernet1/0/0
 port link-mode route
 ip binding vpn-instance management
 ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet1/0/1
 port link-mode route
#
interface GigabitEthernet1/0/2
 port link-mode route
 ip binding vpn-instance management
 ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet1/0/3
 port link-mode route
 description 联通
 bandwidth 102400
 ip address 59.227.141.2 255.255.255.248
 ipsec apply policy l2tp
#
interface GigabitEthernet1/0/4
 port link-mode route
 description 专网
 ip address 10.83.66.93 255.255.255.224
#
interface GigabitEthernet1/0/5
 port link-mode route
#
interface GigabitEthernet1/0/6
 port link-mode route
#
interface GigabitEthernet1/0/7
 port link-mode route
#
interface GigabitEthernet1/0/8
 port link-mode route
#
interface GigabitEthernet1/0/9
 port link-mode route
#             
object-policy ip Any-Any
 rule 0 pass
#
security-zone name Local
#
security-zone name Trust
 import interface GigabitEthernet1/0/4
#
security-zone name DMZ
#
security-zone name Untrust
 import interface GigabitEthernet1/0/3
#
security-zone name Management
 import interface GigabitEthernet1/0/0
 import interface GigabitEthernet1/0/2
#
zone-pair security source Any destination Any
 object-policy apply ip Any-Any
#
 scheduler logfile size 16
#
line class aux
 user-role network-operator
#
line class console
 user-role network-admin
#
line class vty
 user-role network-operator
#
line aux 0
 user-role network-admin
#
line con 0
 authentication-mode scheme
 user-role network-admin
#
line vty 0 63
 authentication-mode scheme
 user-role network-admin
#
 ip route-static 0.0.0.0 0 GigabitEthernet1/0/3 59.227.141.1
 ip route-static 10.0.0.0 8 GigabitEthernet1/0/4 10.83.66.94 preference 55
#
 ssh server enable
#
domain system
#
 aaa session-limit ftp 16
 aaa session-limit telnet 16
 aaa session-limit ssh 16
 domain default enable system
#
role name level-0
 description Predefined level-0 role
#
role name level-1
 description Predefined level-1 role
#
role name level-2
 description Predefined level-2 role
#
role name level-3
 description Predefined level-3 role
#
role name level-4
 description Predefined level-4 role
#             
role name level-5
 description Predefined level-5 role
#
role name level-6
 description Predefined level-6 role
#
role name level-7
 description Predefined level-7 role
#
role name level-8
 description Predefined level-8 role
#
role name level-9
 description Predefined level-9 role
#
role name level-10
 description Predefined level-10 role
#
role name level-11
 description Predefined level-11 role
#
role name level-12
 description Predefined level-12 role
#
role name level-13
 description Predefined level-13 role
#
role name level-14
 description Predefined level-14 role
#
user-group system
#
local-user admin class manage
 password hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ==
 service-type ssh terminal https
 authorization-attribute user-role level-3
 authorization-attribute user-role network-admin
 authorization-attribute user-role network-operator
#
local-user mcybjroot class network
 password cipher $c$3$gc5Uz+Cxhn11nJP4BzS6XNZi/X6d2PMpIqhITTs=
 service-type ppp
 authorization-attribute user-role network-operator
#
ipsec transform-set 1
 esp encryption-algorithm des-cbc
 esp authentication-algorithm sha1
#
ipsec policy-template l2tp 10
 transform-set 1
 ike-profile 1
 reverse-route dynamic
#
ipsec policy l2tp 10 isakmp template l2tp
#
l2tp-group 1 mode lns
 allow l2tp virtual-template 1
 undo tunnel authentication
#
 l2tp enable
#
ike profile 1
 keychain 10
 local-identity fqdn fw
 match remote identity address 0.0.0.0 0.0.0.0
 match remote identity fqdn client1
 match local address GigabitEthernet1/0/3
 proposal 1
#             
ike proposal 1
 encryption-algorithm 3des-cbc
 authentication-algorithm md5
#
ike keychain 10
 match local address GigabitEthernet1/0/3
 pre-shared-key address 0.0.0.0 0.0.0.0 key cipher $c$3$BQpo4eC3T8XiA7kuF9582OhqpLbKidD52A==
#
 ip https enable
#
return


3 个回答
已采纳
粉丝:29人 关注:9人

inode里的ike设置有问题,两个fqdn写反了。本端(inode终端)是client1,对端(防火墙)才是fw。

然后在ike proposal 1里指定一下dh group2。



现在把90的地址配到电脑上,然后93(fw的内接口)作为网关,依然不行。只是直连的网络啊。求教了!

zhiliao_AxAuKw 发表时间:2022-02-27 更多>>

感谢,可,以连接上了,但是访问不了内网资源,ping不同内网IP。

zhiliao_AxAuKw 发表时间:2022-02-27

加个网关试试,ip pool 10 gateway 172.16.1.1。

奇怪的流量 发表时间:2022-02-27

不行,还有哪儿有问题呢,请赐教。

zhiliao_AxAuKw 发表时间:2022-02-27

Virtual-Template加一下安全域,比如加到Untrust里。

奇怪的流量 发表时间:2022-02-27

[H3C]dis cu # version 7.1.064, Ess 9508 # sysname H3C # context Admin id 1 # ip vpn-instance management route-distinguisher 1000000000:1 vpn-target 1000000000:1 import-extcommunity vpn-target 1000000000:1 export-extcommunity # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # ip pool 10 172.16.1.10 172.16.1.50 # password-recovery enable # vlan 1 # interface Virtual-Template1 ppp authentication-mode chap pap remote address pool 10 ip address 172.16.1.1 255.255.255.0 # interface NULL0 # interface GigabitEthernet1/0/0 port link-mode route ip binding vpn-instance management ip address 192.168.0.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode route # interface GigabitEthernet1/0/2 port link-mode route ip binding vpn-instance management ip address 192.168.1.1 255.255.255.0 # interface GigabitEthernet1/0/3 port link-mode route description 联通 bandwidth 102400 ip address 59.227.141.2 255.255.255.248 ipsec apply policy l2tp # interface GigabitEthernet1/0/4 port link-mode route description 专网 ip address 10.83.66.93 255.255.255.224 # interface GigabitEthernet1/0/5 port link-mode route # interface GigabitEthernet1/0/6 port link-mode route # interface GigabitEthernet1/0/7 port link-mode route # interface GigabitEthernet1/0/8 port link-mode route # interface GigabitEthernet1/0/9 port link-mode route # object-policy ip Any-Any rule 0 pass # security-zone name Local # security-zone name Trust import interface GigabitEthernet1/0/4 # security-zone name DMZ # security-zone name Untrust import interface GigabitEthernet1/0/3 # security-zone name Management import interface GigabitEthernet1/0/0 import interface GigabitEthernet1/0/2 # zone-pair security source Any destination Any object-policy apply ip Any-Any # scheduler logfile size 16 # line class aux user-role network-operator # line class console user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line con 0 authentication-mode scheme user-role network-admin # line vty 0 63 authentication-mode scheme user-role network-admin # ip route-static 0.0.0.0 0 GigabitEthernet1/0/3 59.227.141.1 # ssh server enable # domain system # aaa session-limit ftp 16 aaa session-limit telnet 16 aaa session-limit ssh 16 domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ== service-type ssh terminal https authorization-attribute user-role level-3 authorization-attribute user-role network-admin authorization-attribute user-role network-operator # local-user mcybjroot class network password cipher $c$3$gc5Uz+Cxhn11nJP4BzS6XNZi/X6d2PMpIqhITTs= service-type ppp authorization-attribute user-role network-operator # ipsec transform-set 1 esp encryption-algorithm des-cbc esp authentication-algorithm sha1 # ipsec policy-template l2tp 10 transform-set 1 ike-profile 1 reverse-route dynamic # ipsec policy l2tp 10 isakmp template l2tp # l2tp-group 1 mode lns allow l2tp virtual-template 1 undo tunnel authentication # l2tp enable # ike profile 1 keychain 10 local-identity fqdn fw match remote identity address 0.0.0.0 0.0.0.0 match remote identity fqdn client1 match local address GigabitEthernet1/0/3 proposal 1 # ike proposal 1 encryption-algorithm 3des-cbc dh group2 authentication-algorithm md5 # ike keychain 10 match local address GigabitEthernet1/0/3 pre-shared-key address 0.0.0.0 0.0.0.0 key cipher $c$3$BQpo4eC3T8XiA7kuF9582OhqpLbKidD52A== # ip https enable # return [H3C]dis l2tp tunnel LocalTID RemoteTID State Sessions RemoteAddress RemotePort RemoteName 60595 1 Established 1 192.168.0.100 56575 vpn

zhiliao_AxAuKw 发表时间:2022-02-27

你VT口还是没加安全域啊。

奇怪的流量 发表时间:2022-02-27

pc端不需要添加路由吧?

zhiliao_AxAuKw 发表时间:2022-02-27

pc不加路由默认所有流量都通过vpn转发。你要只想一部分流量走vpn可以加路由。那个interface Virtual-Template1先加到Untrust里去。

奇怪的流量 发表时间:2022-02-27

从pc到fw内侧的地址10.83.66.93可以平通,但到内网的其他(如10.83.66.90)不通

zhiliao_AxAuKw 发表时间:2022-02-27

vt1加过了

zhiliao_AxAuKw 发表时间:2022-02-27

dis cu # version 7.1.064, Ess 9508 # sysname H3C # context Admin id 1 # ip vpn-instance management route-distinguisher 1000000000:1 vpn-target 1000000000:1 import-extcommunity vpn-target 1000000000:1 export-extcommunity # irf mac-address persistent timer irf auto-update enable undo irf link-delay irf member 1 priority 1 # ip pool 10 172.16.1.10 172.16.1.50 ip pool 10 gateway 172.16.1.1 # password-recovery enable # vlan 1 # interface Virtual-Template1 ppp authentication-mode chap pap remote address pool 10 ip address 172.16.1.1 255.255.255.0 # interface NULL0 # interface GigabitEthernet1/0/0 port link-mode route ip binding vpn-instance management ip address 192.168.0.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode route # interface GigabitEthernet1/0/2 port link-mode route ip binding vpn-instance management ip address 192.168.1.1 255.255.255.0 # interface GigabitEthernet1/0/3 port link-mode route description 联通 bandwidth 102400 ip address 59.227.141.2 255.255.255.248 ipsec apply policy l2tp # interface GigabitEthernet1/0/4 port link-mode route description 专网 ip address 10.83.66.93 255.255.255.224 # interface GigabitEthernet1/0/5 port link-mode route # interface GigabitEthernet1/0/6 port link-mode route # interface GigabitEthernet1/0/7 port link-mode route # interface GigabitEthernet1/0/8 port link-mode route # interface GigabitEthernet1/0/9 port link-mode route # object-policy ip Any-Any rule 0 pass # security-zone name Local # security-zone name Trust import interface GigabitEthernet1/0/4 # security-zone name DMZ # security-zone name Untrust import interface GigabitEthernet1/0/3 import interface Virtual-Template1 # security-zone name Management import interface GigabitEthernet1/0/0 import interface GigabitEthernet1/0/2 # zone-pair security source Any destination Any object-policy apply ip Any-Any # scheduler logfile size 16 # line class aux user-role network-operator # line class console user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line con 0 authentication-mode scheme user-role network-admin # line vty 0 63 authentication-mode scheme user-role network-admin # ip route-static 0.0.0.0 0 GigabitEthernet1/0/3 59.227.141.1 # ssh server enable # domain system # aaa session-limit ftp 16 aaa session-limit telnet 16 aaa session-limit ssh 16 domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$UbIhNnPevyKUwfpm$LqR3+yg1IjNct39MkOR0H0iQXLkYB3jMqM4vbAeoXOhbabIIFnjJPEGR00YiYA1Sz4LiY3FmEdru2fOLMb1shQ== service-type ssh terminal https authorization-attribute user-role level-3 authorization-attribute user-role network-admin authorization-attribute user-role network-operator # local-user mcybjroot class network password cipher $c$3$gc5Uz+Cxhn11nJP4BzS6XNZi/X6d2PMpIqhITTs= service-type ppp authorization-attribute user-role network-operator # ipsec transform-set 1 esp encryption-algorithm des-cbc esp authentication-algorithm sha1 # ipsec policy-template l2tp 10 transform-set 1 ike-profile 1 reverse-route dynamic # ipsec policy l2tp 10 isakmp template l2tp # l2tp-group 1 mode lns allow l2tp virtual-template 1 undo tunnel authentication # l2tp enable # ike profile 1 keychain 10 local-identity fqdn fw match remote identity address 0.0.0.0 0.0.0.0 match remote identity fqdn client1 match local address GigabitEthernet1/0/3 proposal 1 # ike proposal 1 encryption-algorithm 3des-cbc dh group2 authentication-algorithm md5 # ike keychain 10 match local address GigabitEthernet1/0/3 pre-shared-key address 0.0.0.0 0.0.0.0 key cipher $c$3$BQpo4eC3T8XiA7kuF9582OhqpLbKidD52A== # ip https enable # return

zhiliao_AxAuKw 发表时间:2022-02-27

security-zone name Untrust import interface GigabitEthernet1/0/3 import interface Virtual-Template1

zhiliao_AxAuKw 发表时间:2022-02-27

从防火墙上能ping通10.83.66.90吗?带源ping(用VT的地址做源)呢?

奇怪的流量 发表时间:2022-02-27

fw可以ping通10.83.66.90

zhiliao_AxAuKw 发表时间:2022-02-27

带源还没试

zhiliao_AxAuKw 发表时间:2022-02-27

带源ping也可以?ping -a 172.16.1.1 10.83.66.90。客户端是哪个版本的?

奇怪的流量 发表时间:2022-02-27

带源的ping试了一下,只有fw端10.83.66.93通,90不通,客户端是win7 64。从fw上发起带源ping和pc上发起的一样。

zhiliao_AxAuKw 发表时间:2022-02-27

试试带fw上的其他ip做为源是不是也ping不通,那我有点怀疑10.83.66.90的网关或者默认路由是不是不太对,所以二层能通三层不行。

奇怪的流量 发表时间:2022-02-27

请再分析一下,感谢!

zhiliao_AxAuKw 发表时间:2022-02-27

请再帮助分析一下,感谢!

zhiliao_AxAuKw 发表时间:2022-02-27

您分析的对,使用fw对外端口的IP也ping不通。不过是直连网络啊!

zhiliao_AxAuKw 发表时间:2022-02-27

直接ping的通,带源ping不通10.83.66.90 ,求教了,问题究竟出在哪里?fw内口直接两层连的统一网段。

zhiliao_AxAuKw 发表时间:2022-02-27

现在把90的地址配到电脑上,然后93(fw的内接口)作为网关,依然不行。只是直连的网络啊。求教了!

zhiliao_AxAuKw 发表时间:2022-02-27
粉丝:0人 关注:0人

建议参考案例:

https://www.h3c.com/cn/d_202107/1422128_30005_0.htm#_Toc75945482


zhiliao_AxAuKw 知了小白
粉丝:0人 关注:2人

只有lns,后面附件有inode的几张截图,请高手指教

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明