I have OSPF running between two Mikrotik Routers, each of them with 2 WANs configured on failover.
I have few private subnets behind each router.
Right now my OSPF Interfaces are configured like this:
ISP-A Cost : 10
ISP-B Cost: 30
Thats how I got OSPF to use ISP-A by default for all the intra-office traffic using the private subnets, and is working great.
If any of the two routers loose the ISP-A , then OSPF converge to ISP-B, and back when is again available.
Now, I just added two new private subnets on each side, for VoIP, but Id like to use by default ISP-B only for those subnets, since is the stand-by and not in use.
(I would add QoS later, etc, but I still want to use the unused link)
How can I force OSPF to add routes for the new subnets that use ISP-B without affecting all other routes that are going over ISP-A ?
Static Routes wont failover when the main ISP goes down.
I would have to create a script for that.
That would defeat the purpose of the OSPF.
Any other option? Another routing protocol? multiple OSPF instances perhaps?
Possibly, but that would be a really strange setup. It is very unusual to establish OSPF neighbor with another ISP. You would typically use BGP in this role.
So if Link A is your defailt and you want a specific subnet to go via Link B, then static route with check gateway on Link B (or a netwatch script, which is just as simple), so if Link B dies that traffic goes back via Link A