I have a router (C), talking to two other routers(A-B) VIA OSPF. Both of the routers can be (and advertise) default gateways. One is the main gateway, the other is a backup.
How do I set OSPF to only use one of the two gateways, unless the main one is not available, then it will failover onto the second gateway.
Code: Select all
ROUTER A (Gateway1)--------ROUTER C---------ROUTER B (Gateway2)
I ASSUME I do this with setting routing distance. The problem I am having, is how do I set routing distance for OSPF routes, coming from a specific interface?
I ASSUME that setting Cost in the OSPF>INTERFACE menu of the interface facing Router B, to a high number (150) would fix the problem. But no matter what I set this value for, it always sets the Distance to 110.
What parameter controls the Distance of a route coming in on OSPF for one particular interface? Or can I accomplish this with filters? I don't see how I can match an interface in the filters.
Or would I normally set this parameter on Router B?