You can deploy Branch Gateway in a LAN using Rapid spanning tree protocol (RSTP) to provide redundancy. You can connect each Ethernet LAN port on the front panel of the Branch Gateway to an external LAN switch.
A spanning tree protocol blocks one of the links from Branch Gateway to the external LAN switch. The spanning tree protocol must be configured on the external LAN switch and the Ethernet LAN ports on Branch Gateway. When the gateway determines a primary link failure, the gateway automatically fails over to the secondary link. Both LAN ports of the peer LAN switch ports must be enabled for the gateway to fail over to the secondary link.
Compared to port redundancy method, Fast RSTP is better because Fast RSTP controls the state of the link between the gateway and the LAN switch based on the best LAN topology. However, Fast RSTP can have a time delay during RSTP convergence.