防火墙双机热备实验

  1. 实验拓扑

 

2.实验步骤

步骤 1 完成 USG6330-1 上、下行业务接口的配置。配置各接口 IP 地址并加入相应安全区域。

<USG6330-1> system-view

[USG6330-1] interface GigabitEthernet 1/0/1

[USG6330-1-GigabitEthernet1/0/1] ip address 10.1.2.1 255.255.255.0

[USG6330-1-GigabitEthernet1/0/1] quit

[USG6330-1] interface GigabitEthernet 1/0/4

[USG6330-1-GigabitEthernet1/0/3] ip address 40.1.1.1 255.255.255.0

[USG6330-1-GigabitEthernet1/0/3] quit

[USG6330-1] firewall zone trust

[USG6330-1-zone-trust] add interface GigabitEthernet 1/0/1

[USG6330-1-zone-trust] quit

[USG6330-1] firewall zone untrust

[USG6330-1-zone-untrust] add interface GigabitEthernet 1/0/4

[USG6330-1-zone-untrust] quit

配置接口 GigabitEthernet 1/0/4 的 VRRP 备份组 1,并加入到状态为 Active 的 VGMP 管理组。

[USG6330-1] interface GigabitEthernet 1/0/4

[USG6330-1-GigabitEthernet1/0/4] vrrp vrid 1 virtual-ip 2.2.2.1 255.255.255.0 active

[USG6330-1-GigabitEthernet1/0/1] quit

配置接口 GigabitEthernet 1/0/1 的 VRRP 备份组 2,并加入到状态为 Active 的 VGMP 管理组。

[USG6330-1] interface GigabitEthernet 1/0/1

[USG6330-1-GigabitEthernet1/0/1] vrrp vrid 2 virtual-ip 10.1.2.3 active

[USG6330-1-GigabitEthernet1/0/1] quit

步骤 2 完成 USG6330-1 的心跳线配置。

配置 GigabitEthernet1/0/3 的 IP 地址。

[USG6330-1] interface GigabitEthernet1/0/3

[USG6330-1-GigabitEthernet1/0/3] ip address 30.1.1.1 255.255.255.0

[USG6330-1-GigabitEthernet1/0/3] quit

配置 GigabitEthernet1/0/3 加入 DMZ 区域。

[USG6330-1]firewall zone dmz

[USG6330-1-zone-dmz]add interface GigabitEthernet1/0/3

[USG6330-1-zone-dmz]quit

指定 GigabitEthernet1/0/3 为心跳口。

[USG6330-1] hrp interface GigabitEthernet1/0/3

步骤 3 配置 Trust 区域和 Untrust 区域的域间转发策略。

配置 Trust 区域和 Untrust 区域的域间转发策略。

HRP_A[USG6330-1]security-policy

HRP_A[USG6330-1-policy-security] rule name policy_sec

HRP_A[USG6330-1-policy-security-rule-policy_sec] source-zone trust

HRP_A[USG6330-1-policy-security-rule-policy_sec] destination-zone untrust

HRP_A[USG6330-1-policy-security-rule-policy_sec] action permit

HRP_A[USG6330-1-policy-security-rule-policy_sec] quit

步骤 4 启用 HRP 备份功能。

[USG6330-1] hrp enable

步骤 5 配置 USG6330-2。

USG6330-2 和上述 USG6330-1 的配置基本相同,不同之处在于:

1. USG6330-2 各接口的 IP 地址与 USG6330-1 各接口的 IP 地址不相同。

2. USG6330-2 的业务接口 GigabitEthernet1/0/1 GigabitEthernet1/0/4 加入状态为 Standby 的VGMP 管理组。

步骤 6 配置 Switch。

分别将两台 Switch 的三个接口加入同一个 VLAN。

3.结果验证

        在处于 Trust 区域的 PC1 端 ping VRRP 组 2 的虚拟 IP 地址 10.1.2.3,在 USG6330-1 上检查会话 。可以看出 VRRP 组配置正确后,在 PC1 端能够 ping 通 VRR组 2 的虚拟 IP 地址。

PC2 作为服务器位于 Untrust 区域。在 Trust 区域的 PC1 端能够 ping 通 Untrust 区域的服务器。分别在 USG6330-1 和USG6330-2 上检查会话。可以看出 USG6330-2 上存在带有 Remote 标记的会话,表示配置双机热备功能后,会话备份成功。在 PC1 上执行 ping 2.2.2.2 –t ,然后将 USG6330-1 防火墙 G1/0/1 接口网线拨出,观察防火墙状态切换及 ping 包丢包情况;再将 USG6330-1 防火墙 G1/0/1 接口网线恢复,观察防火墙状态切换及 ping 包丢包情况。

具体测试截图,ensp配置文件可私信获取

  • 3
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

网络设计ensp

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值