OSPF with CARP?
Mr_Logic last edited by
I am trying to create a config with 2 PFSense boxes running as an HA pair, and doing OSPF with the rest of my network. I have got the CARP side of things running without too much grief but OSPF is being a pain.
I can't see a way of integrating the OSPF with the CARP setup, i.e. having the VIP populated in the route tables of my other routers.
Is there a way to do this please?
We typically suggest editing /etc/rc.carpmaster and /etc/rc.carpbackup so that the OSPF daemon gets stopped while in backup mode, and started when it's in master mode.
Given the dynamic nature of OSPF, it really doesn't matter if it's advertising the CARP VIP, if the adjacency changes it'll need to update anyhow. Might have a few seconds of downtime as the neighboring comes back up during a switch, but afaik there's no way to have the OSPF daemon actually advertise the CARP VIP as the router address.
Alternately, you can also just setup OSPF as normal on the secondary box but with higher costs than the primary box has, so it would fail to that one quicker, perhaps. I can't remember if I've tried that one before.