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

nqa+track下一跳实现防火墙主备切换

2021-02-28 发表
  • 1关注
  • 6收藏 4773浏览
粉丝:1人 关注:0人

组网及说明

组网以及说明:


问题描述

组网要求:客户现网是F1070的防火墙做了IRF,双出口电信、联通接在堆叠防火墙上行交换机上,现在想配置冗余组实现主备切换,另外客户反馈想通过对上行检测下一跳地址来切换而不仅仅是接口物理状态。

过程分析

1、防火墙堆叠配置,交换机上的ip地址、vlan接口配置、路由等自行配置

2、在防火墙上下行各自配置冗余口,放入冗余组中,以便进行track联动实现主备切换

3、track项为track下一跳的地址,连续四次不可达则启动链路切换


解决方法

配置如下


#堆叠防火墙上配置

#track项配置

track 1 nqa entry admin test1 reaction 1  //nqa与track 联动,检测上行链路下一跳是否可达

#

track 2 interface GigabitEthernet1/0/3 physical  //track防火墙下行链路物理状态

#

track 3 nqa entry admin test2 reaction 2  //nqa与track 联动,检测上行链路下一跳是否可达

#

track 4 interface GigabitEthernet2/0/3 physical   //track防火墙下行链路物理状态

#


#

nqa entry admin test1 //配置nqa检测项,检测下一跳地址为电信网段地址,频率为100ms一次,连续探测失败达到4次阈值时,就触track模块联动。

 type icmp-echo

  destination ip 10.1.1.1

  frequency 100

  reaction 1 checked-element probe-fail threshold-type consecutive 4 action-type trigger-only

#

nqa entry admin test2

 type icmp-echo

  destination ip 20.1.1.1

  frequency 100

  reaction 2 checked-element probe-fail threshold-type consecutive 4 action-type trigger-only

#

 nqa schedule admin test1 start-time now lifetime forever  //用来配置测试组的启动时间为当前和持续时间为永久。

 nqa schedule admin test2 start-time now lifetime forever

#

interface Reth1    //配置防火墙上下行冗余口与其成员接口

 ip address 30.1.1.2 255.255.255.0

 member interface GigabitEthernet1/0/7 priority 255

 member interface GigabitEthernet2/0/7 priority 50

#

interface Reth2

 ip address 40.1.1.2 255.255.255.0

 member interface GigabitEthernet1/0/3 priority 255

 member interface GigabitEthernet2/0/3 priority 50


#安全域配置

security-zone name Trust

 import interface Reth1

 import interface Reth2


#路由配置

 ip route-static 0.0.0.0 0 30.1.1.1

 ip route-static 40.1.1.0 24 40.1.1.1


#冗余组配置

redundancy group aaa

 member interface Reth1

 member interface Reth2

 node 1

  bind slot 1

  priority 100

  track 1 interface GigabitEthernet1/0/7

  track 2 interface GigabitEthernet1/0/3

 node 2

  bind slot 2

  priority 50

  track 3 interface GigabitEthernet2/0/7

  track 4 interface GigabitEthernet2/0/3


#安全策略放通


security-policy ip

 rule 0 name irflocalout

  action pass

  source-zone local

  destination-zone trust

 rule 1 name irflocalin

  action pass

  source-zone trust

  destination-zone local

 rule 2 name cqm

  action pass

  source-zone trust

  destination-zone trust


 测试过程:

[H3C]dis redundancy group

Redundancy group aaa (ID 1):

  Node ID      Slot          Priority   Status        Track weight

  1            Slot1         100        Primary       255

  2            Slot2         50         Secondary     255

 

Preempt delay time remained     : 0    sec

Preempt delay timer setting     : 60   sec

Remaining hold-down time        : 0    sec

Hold-down timer setting         : 1    sec

Manual switchover request       : No

 

Member interfaces:

    Reth2                 Reth1

 

Node 1:

  Track info:

    Track    Status           Reduced weight     Interface

    1        Positive         255                GE1/0/7

    2        Positive         255                GE1/0/3

Node 2:

  Track info:

    Track    Status           Reduced weight     Interface

    3        Positive         255                GE2/0/7

    4        Positive         255                GE2/0/3

[H3C]dis reth int reth 1

Reth1 :

  Redundancy group  : aaa

  Member           Physical status         Forwarding status   Presence status

  GE1/0/7          UP                      Active              Normal

  GE2/0/7          UP                      Inactive            Normal

[H3C]dis reth int reth 2

Reth2 :

  Redundancy group  : aaa

  Member           Physical status         Forwarding status   Presence status

  GE1/0/3          UP                      Active              Normal

  GE2/0/3          UP                      Inactive            Normal


在上行交换机中取消下一条的ip地址模拟链路故障,下一跳不可达

[sw1-GigabitEthernet1/0/1]undo ip add 10.1.1.1 24//取消下一跳的ip地址

[sw1-GigabitEthernet1/0/1]quit


[H3C]

[H3C]dis ret%Jan 22 21:59:26:362 2021 H3C NQA/6/NQA_ENTRY_PROBE_RESULT: -COntext=1; Reaction entry 1 of NQA entry admin-name admin operation-tag test1: probe-fail.//触发NQA

 

%Jan 22 21:59:26:371 2021 H3C RDDC/5/RDDC_ACTIVENODE_CHANGE: -COntext=1; Redundancy group aaa active node changed to node 2 (slot 2), because of node's weight changed.//改变权重值,冗余组发生切换

%Jan 22 21:59:26:629 2021 H3C IFNET/3/PHY_UPDOWN: -COntext=1; Physical state on the interface GigabitEthernet1/0/3 changed to down.

%Jan 22 21:59:26:636 2021 H3C IFNET/5/LINK_UPDOWN: -COntext=1; Line protocol state on the interface GigabitEthernet1/0/3 changed to down.

 

[H3C]dis redundancy group

Redundancy group aaa (ID 1):

  Node ID      Slot          Priority   Status        Track weight

  1            Slot1         100        Secondary     -255

  2            Slot2         50         Primary       255

 

Preempt delay time remained     : 0    sec

Preempt delay timer setting     : 60   sec

Remaining hold-down time        : 0    sec

Hold-down timer setting         : 1    sec

Manual switchover request       : No

 

Member interfaces:

    Reth2                 Reth1

 

Node 1:

  Track info:

    Track    Status           Reduced weight     Interface

    1        Negative(Faulty) 255                GE1/0/7

    2        Negative         255                GE1/0/3

Node 2:

  Track info:

    Track    Status           Reduced weight     Interface

    3        Positive         255                GE2/0/7

    4        Positive         255                GE2/0/3

[H3C]dis reth int reth 2

Reth2 :

  Redundancy group  : aaa

  Member           Physical status         Forwarding status   Presence status

  GE1/0/3          DOWN(redundancy down)   Inactive            Normal

  GE2/0/3          UP                      Active              Normal

 [H3C]dis reth int reth1

Reth1 :

  Redundancy group  : aaa

  Member           Physical status         Forwarding status   Presence status

  GE1/0/7          UP                      Inactive            Normal

  GE2/0/7          UP                      Active              Normal

[H3C]

 实验截图如下:

 



该案例对您是否有帮助:

您的评价:1

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

2 个评论
zhiliao_MxbuEA 知了小白
粉丝:0人 关注:0人

HCL 模拟器 RETH 接口数据能通吗


我试着不能通

grubby 发表时间:2021-10-09

应该是模拟器问题,配置完成后查看状态都对,断一根线后也切换了,都能查看出来,但是ping 不通,从地下往上ping同一网段的地址都不通

zhiliao_FL79VJ 发表时间:2023-09-22
粉丝:0人 关注:1人

你好我这个配置有问题吗

编辑评论

举报

×

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

侵犯我的权益

×

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

泄露了我的隐私

×

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

侵犯了我企业的权益

×

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

抄袭了我的内容

×

原文链接或出处

诽谤我

×

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

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

×

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

不规范转载

×

举报说明

提出建议

    +

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

确定

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

注册后可访问此模块

跳转hclhub

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