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

某局点SecPath F5000-M(V7) SSH备接口地址失败故障排查经验案例

2021-09-30 发表
  • 0关注
  • 0收藏 1342浏览
粉丝:4人 关注:0人

组网及说明

现场两台防火墙做了IRF,两个运营商出口配置了主备路由,想要实现无论通过主接口地址还是备接口地址,都可以实现SSH到设备上进行管理。大致拓扑如下:


本次涉及设备的型号以及版本:SecPath F5000-M(V7)   Version 7.1.064, Release 9616P39

问题描述

XG1/1/0是主链路,G1/0/3是备用链路,两条默认路由是优先级不同的主备关系,测试Ping G1/0/3的接口IP可以通,但是通过备接口地址无法使用SSH以及HTTPS的方式登录到设备上。

过程分析

1、查看会话表,看是否收到了公网终端发来的对应的SSH或者是HTTPS报文。由于公网地址涉及客户隐私,所以这边采用1.1.1.1代替G1/0/3地址,2.2.2.2代替XG1/1/0地址,3.3.3.3代替公网终端地址。现场将HTTPS端口通过ip https port 58443配置成58443端口,通过备接口地址访问HTTPS端口时收集了会话信息,替换地址后的会话表如下:

<CHQY-F5000M-1&2>dis session table ipv4 source-ip 3.3.3.3 destination-port 58443 verbose

Slot 1:

Initiator:

  Source      IP/port: 3.3.3.3/4305

  Destination IP/port: 1.1.1.1/58443

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: GigabitEthernet1/0/3

  Source security zone: DC_MSE

Responder:

  Source      IP/port: 1.1.1.1/58443

  Destination IP/port: 3.3.3.3/4305

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: InLoopBack0

  Source security zone: Local

State: TCP_SYN_RECV

Application: GENERAL_TCP

Rule ID: 2

Rule name: rz_wg

Start time: 2021-09-28 14:09:35  TTL: 17s

Initiator->Responder:            4 packets        208 bytes

Responder->Initiator:            8 packets        416 bytes

 

Initiator:

  Source      IP/port: 3.3.3.3/4306

  Destination IP/port: 1.1.1.1/58443

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: GigabitEthernet1/0/3

  Source security zone: DC_MSE

Responder:

  Source      IP/port: 1.1.1.1/58443

  Destination IP/port: 3.3.3.3/4306

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: InLoopBack0

  Source security zone: Local

State: TCP_SYN_RECV

Application: GENERAL_TCP

Rule ID: 2

Rule name: rz_wg

Start time: 2021-09-28 14:09:50  TTL: 25s

Initiator->Responder:            1 packets         52 bytes

Responder->Initiator:            4 packets        208 bytes

Total sessions found: 2

 

Slot 2:

Initiator:

  Source      IP/port: 3.3.3.3/4305

  Destination IP/port: 1.1.1.1/58443

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: GigabitEthernet1/0/3

  Source security zone: huiyi

Responder:

  Source      IP/port: 1.1.1.1/58443

  Destination IP/port: 3.3.3.3/4305

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: InLoopBack0

  Source security zone: Local

State: TCP_ESTABLISHED

Application: GENERAL_TCP

Rule ID: 2

Rule name: rz_wg

Start time: 2021-09-28 14:09:35  TTL: 3587s

Initiator->Responder:            0 packets          0 bytes

Responder->Initiator:            7 packets        364 bytes

 

Initiator:

  Source      IP/port: 3.3.3.3/4306

  Destination IP/port: 1.1.1.1/58443

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: GigabitEthernet1/0/3

  Source security zone: huiyi

Responder:

  Source      IP/port: 1.1.1.1/58443

  Destination IP/port: 3.3.3.3/4306

  DS-Lite tunnel peer: -

  VPN instance/VLAN ID/Inline ID: -/-/-

  Protocol: TCP(6)

  Inbound interface: InLoopBack0

  Source security zone: Local

State: TCP_ESTABLISHED

Application: GENERAL_TCP

Rule ID: 2

Rule name: rz_wg

Start time: 2021-09-28 14:09:50  TTL: 3594s

Initiator->Responder:            0 packets          0 bytes

Responder->Initiator:            3 packets        156 bytes

Total sessions found: 2

可以看到主备框上都有会话,说明报文已经发送到设备上了,且来回方向都是有报文的。


2、于是让现场分别收集ICMPHTTPS访问时的DEBUG信息作比较分析。ICMPDEBUG信息如下:

<CHQY-F5000M-1&2>debugging ip packet acl 3105

This command is CPU intensive and might affect ongoing services. Are you sure you want to continue? [Y/N]:y

<CHQY-F5000M-1&2>t d

The current terminal is enabled to display debugging logs.

<CHQY-F5000M-1&2>t m

The current terminal is enabled to display logs.

<CHQY-F5000M-1&2>*Sep 28 14:07:10:019 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Receiving, interface = GigabitEthernet1/0/3

version = 4, headlen = 20, tos = 72

pktlen = 60, pktid = 33482, offset = 0, ttl = 116, protocol = 1

checksum = 22521, s = 223.104.65.143, d = 119.131.211.58

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Receiving IP packet from interface GigabitEthernet1/0/3.

Payload: ICMP

  type = 8, code = 0, checksum = 0xd698.

 

*Sep 28 14:07:10:019 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Delivering, interface = GigabitEthernet1/0/3

version = 4, headlen = 20, tos = 72

pktlen = 60, pktid = 33482, offset = 0, ttl = 116, protocol = 1

checksum = 22521, s = 223.104.65.143, d = 119.131.211.58

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Forwarding IP packet to upper layer.

Payload: ICMP

  type = 8, code = 0, checksum = 0xd698.

 

*Sep 28 14:07:10:019 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Sending, interface = GigabitEthernet1/0/3

version = 4, headlen = 20, tos = 72

pktlen = 60, pktid = 62579, offset = 0, ttl = 255, protocol = 1

checksum = 23375, s = 119.131.211.58, d = 223.104.65.143

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Sending IP packet from local at interface GigabitEthernet1/0/3.

Payload: ICMP

  type = 0, code = 0, checksum = 0xde98.

 

访问HTTPS端口时的DEBUG信息如下:

<CHQY-F5000M-1&2>debugging ip packet acl 3100

This command is CPU intensive and might affect ongoing services. Are you sure you want to continue? [Y/N]:y

<CHQY-F5000M-1&2>t d

The current terminal is enabled to display debugging logs.

<CHQY-F5000M-1&2>t m

The current terminal is enabled to display logs.

<CHQY-F5000M-1&2>*Sep 28 14:08:31:539 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Receiving, interface = GigabitEthernet1/0/3

version = 4, headlen = 20, tos = 72

pktlen = 52, pktid = 33498, offset = 0, ttl = 116, protocol = 6

checksum = 22508, s = 223.104.65.143, d = 119.131.211.58

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Receiving IP packet from interface GigabitEthernet1/0/3.

Payload: TCP

  source port = 4303, destination port = 58443

  sequence num = 0x54446f9c, acknowledgement num = 0x00000000, flags = 0x2

  window size = 64240, checksum = 0x50d3, header length = 32.

 

*Sep 28 14:08:31:539 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Delivering, interface = GigabitEthernet1/0/3

version = 4, headlen = 20, tos = 72

pktlen = 52, pktid = 33498, offset = 0, ttl = 116, protocol = 6

checksum = 22508, s = 223.104.65.143, d = 119.131.211.58

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Forwarding IP packet to upper layer.

Payload: TCP

  source port = 4303, destination port = 58443

  sequence num = 0x54446f9c, acknowledgement num = 0x00000000, flags = 0x2

  window size = 64240, checksum = 0x50d3, header length = 32.

 

*Sep 28 14:08:32:070 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1;

Transferring, interface = Ten-GigabitEthernet1/1/0

version = 4, headlen = 20, tos = 0

pktlen = 52, pktid = 25265, offset = 0, ttl = 255, protocol = 6

checksum = 32, s = 119.131.211.58, d = 223.104.65.143

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Sending to slot 1

Payload: TCP

  source port = 58443, destination port = 4303

  sequence num = 0x7fc5b4ed, acknowledgement num = 0x54446f9d, flags = 0x12

  window size = 64512, checksum = 0x1b04, header length = 32.

 

*Sep 28 14:08:31:539 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Transferring, interface = Ten-GigabitEthernet1/1/0

version = 4, headlen = 20, tos = 0

pktlen = 52, pktid = 25265, offset = 0, ttl = 255, protocol = 6

checksum = 32, s = 119.131.211.58, d = 223.104.65.143

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: IP TR: Receive packet from another node.

Payload: TCP

  source port = 58443, destination port = 4303

  sequence num = 0x7fc5b4ed, acknowledgement num = 0x54446f9d, flags = 0x12

  window size = 64512, checksum = 0x1b04, header length = 32.

 

*Sep 28 14:08:31:539 2021 CHQY-F5000M-1&2 IPFW/7/IPFW_PACKET: -COntext=1-Slot=1;

Sending, interface = Ten-GigabitEthernet1/1/0

version = 4, headlen = 20, tos = 0

pktlen = 52, pktid = 25265, offset = 0, ttl = 255, protocol = 6

checksum = 60764, s = 119.131.211.58, d = 223.104.65.143

channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0.

prompt: Sending IP packet from local at interface Ten-GigabitEthernet1/1/0.

Payload: TCP

  source port = 58443, destination port = 4303

  sequence num = 0x7fc5b4ed, acknowledgement num = 0x54446f9d, flags = 0x12

  window size = 64512, checksum = 0x1b04, header length = 32.

对比如上的DEBUG信息可以发现,ICMP访问时报文从G1/0/3口收到,从G1/0/3口发出;访问HTTPS端口时报文从G1/0/3口收到,但是从XG1/1/0口发出。可能是报文走了不同的出口,导致了从XG1/1/0口出去的报文在运营商链路中传输的时候丢弃了,所以访问HTTPS端口的流量异常。


3、检查是否开启了保持上一跳功能。开启了保持上一跳功能后,当该接口接收到正向流量的第一个IP报文,在高速缓存中会记录相应的流量特征以及上一跳信息,反向流量报文到达设备上进行转发时可以直接通过该上一跳信息指导报文进行转发。检查接口下的配置,发现接口下已经配置了ip last-hop hold,但是现场的SSHHTTPS的流量却没有按照保持上一跳功能转发。


4、保持上一跳不支持热备,检查是否IRF主设备不是在1框上。查看IRF状态发现IRF的主设备是在2框上。

  ===============display irf=============== 

MemberID    Role    Priority  CPU-Mac         Description

   1        Standby 32        60db-1575-93c2  ---

  *2        Master  1         60db-1575-9092  ---


解决方法

1、将堆叠主设备切到1框。

2、配置本地策略路由匹配源地址为G1/0/3接口地址,下一跳为G1/0/3的接口地址,让流量通过G1/0/3口转发。

该案例对您是否有帮助:

您的评价:1

若您有关于案例的建议,请反馈:

作者在2021-11-29对此案例进行了修订
0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

对根叔知了社区有害的内容

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

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

注册后可访问此模块

跳转hclhub

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