Lab - Firewall Hot Standby
Lab - Firewall Hot Standby
Experiment Overview
About This Experiment
In this experiment, two or more firewalls are deployed at the egress of the network to
ensure communication between the intranet and Internet.
Objectives
Understand the basic principle of hot standby.
Understand the VGMP and HRP protocols.
Configure firewall hot standby on the CLI and web UI.
Experiment Networking
Firewall hot standby topology
Experiment Planning
Security devices USGs are deployed on a service node. Upstream and downstream devices
are switches. USG6330-1 and USG6330-2 work in active/standby mode.
Port addresses and zones
Device Port IP Address Zone
Name
Experiment Tasks
No. Task Subtask Description
Create VRRP group 1 on GigabitEthernet1/0/4, and add it to the active VGMP group.
[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/4] quit
Create VRRP group 2 on GigabitEthernet1/0/1, and add it to the active VGMP group.
[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
Configure a security policy to permit packets from the Trust zone to the Untrust zone.
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
Enable HRP.
[USG6330-1] hrp enable
Configure USG6330-2.
The configurations on USG6330-2 are the same as those on USG6330-1, except that:
The IP addresses of the interfaces on USG6330-2 are different from those on USG6330-1.
Add service interfaces GigabitEthernet1/0/1 and GigabitEthernet1/0/4 of USG6330-2 to
the standby VGMP group.
Configure the switches.
Add the three interfaces of each switch to the same VLAN (default VLAN). For
configuration commands, refer to the relevant switch documents.
----End
Choose Network > Interface. Click next to the interface to be configured. Set
parameters, and then click OK. The following figure shows the configuration of
GigabitEthernet1/0/1.
Configure a security policy on USG6330-1 to permit packets from the Trust zone to the
Untrust zone.
Choose Policy > Security Policy > Security Policy. Click Add. Set the parameters one by
one. Click OK. The following figure shows the security policy that permits packets from
the Trust zone to the Untrust zone.
----End
Verification
Checking the Configuration
Run the display vrrp command on USG6330-1 to check the status of interfaces in VRRP
groups. If the following information is displayed, the VRRP groups are successfully
created.
HRP_A<USG6330-1>display vrrp
GigabitEthernet1/0/4 | Virtual Router 1
State : Master
Virtual IP : 2.2.2.1
Master IP : 40.1.1.1
PriorityRun : 120
PriorityConfig : 100
MasterPriority : 120
Preempt : YES Delay Time : 0 s
TimerRun : 60 s
TimerConfig : 60 s
Auth type : NONE
Virtual MAC : 0000-5e00-0101
Check TTL : YES
Config type : vgmp-vrrp
Backup-forward : disabled
Run the display hrp state command on USG6330-1 to check the current HRP status. If
the following information is displayed, HRP is successfully configured.
HRP_A<USG6330-1>display hrp state
The firewall's config state is: ACTIVE
Current state of virtual routers configured as active:
GigabitEthernet1/0/1 vrid 2 : active
GigabitEthernet1/0/4 vrid 1 : active
Ping the virtual IP address 10.1.2.3 of VRRP group 2 on PC1 in the Trust zone and check
the session table on USG6330-1.
HRP_A<USG6330-1>display firewall session table
Current Total Sessions : 1
icmp VPN:public --> public 10.1.2.100:1-->10.1.2.3:2048
You can see a session marked with Remote on USG6330-2. This indicates that the session
has been backed up to the peer after hot standby is enabled.
Run the ping 2.2.2.2 -t command on PC1, remove the network cable from GE1/0/1 on
USG6330-1, and then check whether an active/standby switchover is performed and
whether ping packets are discarded. Insert the network cable into GE1/0/1 on USG6330-1
and check whether an active/standby switchover is performed and whether ping packets
are discarded.
FW1:
sysname FW1
quit
quit
quit
quit
Create VRRP group 1 on GigabitEthernet1/0/4, and add it to the active VGMP group.
quit
Create VRRP group 2 on GigabitEthernet1/0/1, and add it to the active VGMP group.
quit
Step 2 Configure the heartbeat link on USG6330-1. Configure an IP address for GigabitEthernet1/0/3.
interface GigabitEthernet1/0/3
quit
quit
security-policy
source-zone trust
destination-zone untrust
action permit
quit
hrp enable
FW2:
sysname FW2
quit
quit
quit
quit
quit
quit
Step 2 Configure the heartbeat link on USG6330-2. Configure an IP address for GigabitEthernet1/0/3.
interface GigabitEthernet1/0/3
quit
quit
hrp enable
Verification:
display vrrp
shutdown
traffic shifts