Route withdrawal
-
I am running a PFSense FW with one WAN interface and one LAN interface. The WAN is our internet connection and the LAN connects to an OSPF area. I am injecting a default route into the OSPF area. When the WAN is down, I would like the default route withdrawn from the OSPF area so that another OSPF router can handle internet via a backup default route. I have been unable to get this working as described.
-
If the physical interface of the WAN drops, then there is no nexthop interface for the default route to use so therefore there is nothing to inject into OSPF.
So everything is operating correctly. Why would a router remove a default route if it believes the nexthop is still active?edit 1
Thinking about this further, why does it matter if the default route gets removed or not? You have a single WAN connection. If the WAN goes away your traffic has no where to go. If you remove the default is there another route internally that traffic can be routed to? -
@michmoor
The future state will have another OSPF router with internet access and will inject a default route using a higher metric into the OSPF area. This will be the backup default route. -
@cslayton
Well you need a gateway created. Then you can create a route pointing to that gateway . You should be able to redistribute that static route after that -
@michmoor
Got it. The Netgate needs another gateway to this other device, right? See attached diagram. -
@michmoor
So pfsense would need a gateway to Internet A created. Make the interface a WAN type interface. -
@michmoor
Yes, I have a WAN gateway (ISP). For Internet B, I would need another gateway using the LAN interface. The WAN gateway would be Tier 1, the LAN gateway would be Tier 2. Right?