侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130555 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

华为USG防火墙备份---hrp与ip-link联动

2023-05-22 星期一 / 0 评论 / 0 点赞 / 14 阅读 / 8570 字

fw1:interfaceGigabitEthernet0/0/0ip address 192.168.1.2 255.255.255.0hrp track masterinterfaceGigabi

.




 



fw1:

interfaceGigabitEthernet0/0/0

ip address 192.168.1.2 255.255.255.0

hrp track master

interfaceGigabitEthernet0/0/1

ip address 202.100.1.1 255.255.255.0

hrp track master


hrp mirror sessionenable

hrp enable

hrp ospf-costadjust-enable

hrp interfaceGigabitEthernet0/0/2

ip-link check enable

ip-link 1destination 100.100.100.100 interface g0/0/1 mode icmp

hrp track ip-link 1master



fw2:

interfaceGigabitEthernet0/0/0

ip address 192.168.2.2 255.255.255.0

hrp track slave

interfaceGigabitEthernet0/0/1

ip address 202.100.2.1 255.255.255.0

hrp track slave


hrp mirror sessionenable

hrp enable

hrp ospf-costadjust-enable

hrp interfaceGigabitEthernet0/0/2

ip-link check enable

ip-link 1destination 100.100.100.100 interface g0/0/1 mode icmp

hrp track ip-link 1salve

-----------------------------------------------------------------------------------------

查看HRP状态:


HRP_M[FW1]dis hrpstate

09:49:06  2014/07/24

The firewall's config state is: MASTER


Current state of interfaces tracked by master:

             GigabitEthernet0/0/0 : up  

             GigabitEthernet0/0/1 : up  


HRP_S[FW2]dis hrpstate

09:49:27  2014/07/24

The firewall's config state is: SLAVE


Current state of interfaces tracked by slave:

             GigabitEthernet0/0/0 : up  

             GigabitEthernet0/0/1 : up  

--------------------------------------------------------------------------------------------------

查看ip-link状态:


HRP_M[FW1]disip-link

09:38:14  2014/07/24

num state timer***-instance     ip-address      interface-name  mode vgmp  next-hop      

1   up    3                      100.100.100.100GE0/0/1         icmp  master



HRP_S[FW2]disip-link

09:38:21  2014/07/24

num state timer***-instance     ip-address      interface-name  mode vgmp  next-hop      

1   up   3                     100.100.100.100 GE0/0/1        icmp  slave


----------------------------------------------------------------------------------------------------------------


当服fw1的G0/0/1或G0/0/0失效后,hrp主备切换。

HRP_M[FW1]intg0/0/1

HRP_M[FW1-GigabitEthernet0/0/1]shutdown



HRP_S[FW1-GigabitEthernet0/0/1]dis hrp state

10:30:25  2014/07/24

The firewall's config state is: SLAVE


Current state of interfaces tracked by master:

             GigabitEthernet0/0/0 : up  

             GigabitEthernet0/0/1 : down


HRP_M[FW2]display hrp state

10:30:56  2014/07/24

The firewall's config state is: MASTER


Current state of interfaces tracked by slave:

             GigabitEthernet0/0/0 : up  

             GigabitEthernet0/0/1 : up  


----------------------------------------------------------------------------------

当到达outside路由器100.100.100.100地址失效后,ip-link检查失效,hrp主备切换。


[Outside-LoopBack0]intg0/0/0

[Outside-GigabitEthernet0/0/0]shutdown     (到达100.100.100.100不通,ip-link检查失效)


HRP_S[FW1]display hrp state

10:34:28  2014/07/24

The firewall's config state is: SLAVE


Current state of interfaces tracked by master:

             GigabitEthernet0/0/0 : up  

             GigabitEthernet0/0/1 : up  


HRP_M[FW2]display hrp state

10:34:46  2014/07/24

The firewall's config state is: MASTER


Current state of interfaces tracked by slave:

             GigabitEthernet0/0/0 : up  

             GigabitEthernet0/0/1 : up  



HRP_S[FW1]dis ip-link

11:06:44  2014/07/24

num state timer***-instance     ip-address      interface-name  mode vgmp  next-hop      

1   down 3                     100.100.100.100 GE0/0/1        icmp  master



HRP_M[FW2]dis ip-link

11:07:03  2014/07/24

num state timer***-instance     ip-address      interface-name  mode vgmp  next-hop      

1   up   3                     100.100.100.100 GE0/0/1        icmp  slave


.

广告 广告

评论区