This section describes the mechanism of hot standby in mirroring mode.
Mirroring mode is a technical means to implement hot standby. About the mirroring mode, you need to understand the following information:
The FW does not support monitoring of remote interface faults through BFD/IP-Link.
Using BFD as an example, the standby FW in mirroring mode does not send BFD detection packets; therefore, the BFD status of the standby FW is always Down. If hot standby is associated with BFD, the priority of the VGMP group on the standby FW decreases by 2. Therefore, if the BFD status or an interface of the active FW becomes Down, the active/standby switchover does not take place.
Only static routes are supported between the FW and its upstream and downstream devices. Dynamic routes and intelligent uplink selection are not supported. The FW does not support monitoring of remote neighbor faults through OSPF and BGP.
Using dynamic routes as an example, in mirroring mode, the standby FW does not send or receive route negotiation packets. Therefore, neighbor relationships with upstream and downstream devices in dynamic routing cannot be set up on the standby FW. During the active/standby switchover, the new active FW needs to renegotiate routes with upstream and downstream devices. Services are interrupted for a long period during the active/standby switchover.
As shown in Figure 1, FW_A and FW_B work in mirroring mode. The two FWs use the same upstream and downstream service interface addresses. To enable the two FWs to work in active/standby mode, run the hrp standby-device command on one FW to specify the FW as the standby FW.
Because the gateway is set to the IP address (10.0.0.1) of the downstream service interface on the hosts on the intranet, these hosts broadcast an ARP request packet when accessing the Internet to request the MAC address of 10.0.0.1. FW_A responds to the ARP requests from the intranet host. FW_B does not respond to ARP requests from intranet hosts because the hrp standby-device is configured. The MAC address table of the switch and the ARP cache tables of the hosts are updated based on the ARP reply packets from FW_A so that the traffic sent from the hosts to the Internet is diverted to FW_A for processing.
Similarly, the next hop address of the route pointing to the intranet is set to the IP address (10.0.1.1) of the upstream interface on R1 and R2. The traffic sent from the Internet to the intranet is also diverted to FW_A for processing.
As shown in Figure 2, the upstream service interface of FW_A is faulty. The state of the VGMP group changes to standby on FW_A and to active on FW_B. When the status of the VGMP group on FW_B changes to active, the service interfaces send gratuitous ARP packets. The MAC address table of the switches and the ARP cache tables of the hosts and routers are updated based on the gratuitous ARP packets. In this way, the traffic between the intranet and Internet is diverted to FW_B for forwarding. When the two FWs receive ARP request packets or service packets, only FW_B responds to the ARP request or forwards service packets, and FW_A discards the packets.
By default, only the MGMT interface and the heartbeat interface of the standby device can receive or send packets. However, in some scenarios, the standby device needs to receive and send packets. For example, the standby device needs to send logs to the log server or communicate with the NMS server. In this case, you can run the hrp mgt-interface command on the standby device to specify the mirroring mode management interfaces to send logs and communicate with the NMS server.
The following types of interfaces can be configured as management interfaces in mirroring mode:
In mirroring mode, management, heartbeat, and service interfaces are dedicated to their own purposes. That is, after an interface is configured as a management interface in mirroring mode, the interface and its subinterfaces cannot be used as heartbeat or service interfaces.