华为防火墙双机热备HRP配置

编程入门 行业动态 更新时间:2024-10-08 12:42:38

华为防火墙<a href=https://www.elefans.com/category/jswz/34/1762183.html style=双机热备HRP配置"/>

华为防火墙双机热备HRP配置

FW1
#
interface GigabitEthernet1/0/0    undo shutdownip address 192.168.1.10 255.255.255.0vrrp vrid 2 virtual-ip 192.168.1.254 active          //配置FW1处于untrust的接口的vrrp 虚拟地址为192.168.1.254 并且加入VGMP的主动组active内
#
interface GigabitEthernet1/0/1undo shutdownip address 10.1.1.10 255.255.255.0vrrp vrid 1 virtual-ip 10.1.1.254 active		配置FW1处于trust的就接口的vrrp 虚拟地址为10.1.1.254 并且加入VGMP的主动组active内
#
interface GigabitEthernet1/0/5undo shutdownip address 172.16.1.1 255.255.255.0		//心跳线地址,不参与业务流量的转发,只进行状态同步和配置同步
#
#
firewall zone trust             set priority 85add interface GigabitEthernet1/0/1
#
firewall zone untrustset priority 5add interface GigabitEthernet1/0/0
#
firewall zone dmz				//将心跳口加入dmz区域set priority 50add interface GigabitEthernet1/0/5
#hrp interface GigabitEthernet1/0/5 remote 172.16.1.2    //设置心跳线端口和对端地址 在FW1上写对端接口地址,FW2反之
#hrp enable                             //启动hrp#
//使用dis hrp state 查询状态是否建立成功。
命令第一行会显示对端和自己端处于的优先级
#
同步成功以后,配置安全策略会显示(+B)并且不能在备设备上进行配置。默认为负载均衡状态
#
hrp standby-device 在备设备上使用该命令调整为双机热备主备备份状态,备不参与流量转发
#
security-policy			//配置安全策略让pc1可以使用icmp协议ping通pc2rule name 1-2source-zone trustdestination-zone untrustsource-address 10.1.1.1 mask 255.255.255.255destination-address 192.168.1.1 mask 255.255.255.255service icmpaction permit
#

FW2

FW1
#
interface GigabitEthernet1/0/0    undo shutdownip address 192.168.1.20 255.255.255.0vrrp vrid 2 virtual-ip 192.168.1.254 standby          //配置FW1处于untrust的接口的vrrp 虚拟地址为192.168.1.254 并且加入VGMP的主动组standby内
#
interface GigabitEthernet1/0/1undo shutdownip address 10.1.1.20 255.255.255.0vrrp vrid 1 virtual-ip 10.1.1.254 standby		配置FW1处于trust的就接口的vrrp 虚拟地址为10.1.1.254 并且加入VGMP的主动组standby内
#
interface GigabitEthernet1/0/5undo shutdownip address 172.16.1.2 255.255.255.0		//心跳线地址,不参与业务流量的转发,只进行状态同步和配置同步
#
#
firewall zone trust             set priority 85add interface GigabitEthernet1/0/1
#
firewall zone untrustset priority 5add interface GigabitEthernet1/0/0
#
firewall zone dmz				//将心跳口加入dmz区域set priority 50add interface GigabitEthernet1/0/5
#hrp interface GigabitEthernet1/0/5 remote 172.16.1.1    //设置心跳线端口和对端地址 在FW1上写对端接口地址,FW2反之
#hrp enable                             //启动hrp#
//使用dis hrp state 查询状态是否建立成功。
命令第一行会显示对端和自己端处于的优先级
#
同步成功以后,配置安全策略会显示(+B)并且不能在备设备上进行配置。默认为负载均衡状态
#
hrp standby-device 在备设备上使用该命令调整为双机热备主备备份状态,备不参与流量转发
#
security-policy			//配置安全策略让pc1可以使用icmp协议ping通pc2rule name 1-2source-zone trustdestination-zone untrustsource-address 10.1.1.1 mask 255.255.255.255destination-address 192.168.1.1 mask 255.255.255.255service icmpaction permit
#

更多推荐

华为防火墙双机热备HRP配置

本文发布于:2024-02-07 07:42:48,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1754660.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:双机   华为   防火墙   HRP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!