I am looking for a way to automatically set OSPF cost on PPP type connections like SSTP and PPTP.
The situation I have is that I have 2 WAN interfaces on my core.
I have router1 on wan1 and router2 on wan2, then an ethernet cable between router1 and router2 and a /29 connecting them and they are in the OSPF area. router1 is the primary, and wan1 is the primary (with router2 and wan2 being the backup/redundants)
I have a tunnel from each remote site to wan1/router1 and wan2/router2. OSPF is handling this perfectly, the extra hop between router1 and router2 makes the in and outbound shortest route via wan1/router1.
Here is the problem/annoyance. Site1 has a tunnel to router1 and router2. Site2 has a tunnel to router1 and router2. That means that there are two ECMP hops from Site1 to Site2. Site1<>Router1<>Site2 and Site1<>Router2<>Site2. So now site1<>site2 packets are going to send round-robin style to both Router1/wan1 and Router2/wan2. Wan1 and Wan2 are from different providers and have different latencies. Also, WAN2 does some web serving and is truly meant as a backup circuit.
If I could just make the cost for these dynamic interfaces higher it would solve the problem, but I can't find a way to do it. They show up in my OSPF interfaces list as cost 10 and nothing I try changes that. Just moving them to cost 11 would do it. Site1<>Router1<>Site2 is cost=20, while Site1<>Router2<>Site2 would be cost=22.
Thanks in advance