This section provides a web example of configuring hot standby in active/standby mode in which the service interfaces of the firewalls work at Layer 2 and connect to switches in upstream and downstream directions.
On the network shown in Figure 1, the service interfaces of two FWs work at Layer 2 and are directly connected to switches. The uplink and downlink service interfaces of each FW are added to VLAN10 and VLAN20.
The FWs are expected to work in active/standby mode. Normally, traffic is forwarded by FW_A. When FW_A goes faulty, FW_B takes over.
After hot standby relationship is established, the security policy on FW_A will be automatically backed up to FW_B.
Add the three interfaces of the switches to the same VLANs accordingly. For configuration commands, refer to related documents of the switches.
Choose to view the operating status of hot standby.
FW_A |
FW_B |
|---|---|
# sysname FW_A # vlan batch 10 20 # hrp enable hrp interface GigabitEthernet0/0/2 remote 10.10.0.2 hrp track vlan 10 hrp track vlan 20 # interface GigabitEthernet0/0/3 portswitch port link-type trunk port trunk allow-pass vlan 10 20 undo port trunk allow-pass vlan 1 # interface GigabitEthernet0/0/7 portswitch port link-type trunk port trunk allow-pass vlan 10 20 undo port trunk allow-pass vlan 1 # interface GigabitEthernet0/0/2 ip address 10.10.0.1 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/7 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/3 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # security-policy rule name policy_sec source-zone trust destination-zone untrust action permit |
# sysname FW_B # vlan batch 10 20 # hrp enable hrp interface GigabitEthernet0/0/2 remote 10.10.0.1 hrp track vlan 10 hrp track vlan 20 hrp standby-device # interface GigabitEthernet0/0/3 portswitch port link-type trunk port trunk allow-pass vlan 10 20 undo port trunk allow-pass vlan 1 # interface GigabitEthernet0/0/7 portswitch port link-type trunk port trunk allow-pass vlan 10 20 undo port trunk allow-pass vlan 1 # interface GigabitEthernet0/0/2 ip address 10.10.0.2 255.255.255.0 # firewall zone trust set priority 85 add interface GigabitEthernet0/0/7 # firewall zone untrust set priority 5 add interface GigabitEthernet0/0/3 # firewall zone dmz set priority 50 add interface GigabitEthernet0/0/2 # security-policy rule name policy_sec source-zone trust destination-zone untrust action permit |