Active-Active Failover

notion image
All contexts by default in the same failover group
#System context failover group 1 primary preempt 120 failover group 2 secondary preempt 120 context Ctx-1 join failover-group 1 context Ctx-2 join failover-group 2 int g4 no shutdown int g5 no shutdown failover lan unit primary failover lan interface fail-config G4 failover link fail-state G5 failover interface ip fail-config 1.1.1.1 255.255.255.252 standby 1.1.1.2 failover interface ip fail-state 2.2.2.2.1 255.255.255.252 standby 2.2.2.2 prompt hostname priority context state changeto context Ctx-1 int gi1 ip address 10.0.0.1 255.255.255.0 standby 10.0.0.2 int gi3 ip address 192.168.1.171 255.255.255.0 standby 192.168.1.181 changeto context Ctx-2 int gi1 ip address 10.2.2.1 255.255.255.0 standby 10.2.2.2 int gi3 ip address 192.168.1.172 255.255.255.0 standby 192.168.1.182 changeto system failover write mem all #ASA2 del *.cfg int gi4 no shutdown failover lan unit secondary failover lan interface fail-config Gi4 failover interface ip fail-config 1.1.1.1 255.255.255.252 standby 1.1.1.2 failover