I am currently load balancing between two paths to my remote site. However, one path has a 300ms rtt and the other is 250ms rtt. I would of course prefer the later. Without messing with the OSPF Cost, is it possible to prefer the second path?
Hi yes you can another option is to configure the 300 ms path to use another area other than area 0 and have the 250 ms path be on area 0 so the path takes the backbone area.
but the less intrusive is cost at the interface level or route maps and adjusting metrics being sent to the remote router.
Perhaps we need a little clarification about what you mean and what results you really want. In the original post you say that you are load balancing between two paths. I assume that this means that you are actively using both paths and sending some traffic over one path and some traffic over the other path. Is this an accurate understanding?
Then you say that you would prefer the lower latency path. Does this still mean that you want to use both paths but to send more traffic over the lower latency path? Or does this mean that you would be satisfied if the lower latency path were preferred and carried all the traffic and the higher latency path was a backup?
Modifying the OSPF cost on one of the interfaces will result in the second alternative where one path is preferred, carries all the traffic, and the other path is a backup.
OSPF does equal cost load balancing and if the two paths have equal cost then OSPF will treat them equally. It is not possible to use OSPF and achieve the result that one path carries more of the traffic than the other path and both paths carry some traffic. You might achieve this with EIGRP or with Performance Routing. But you can not achieve it with OSPF.
With OSPF I do not believe that there is any other option that works other than adjusting the OSPF cost on the interface. And that will give you exactly the result that you say you desire - OSPF will prefer the lower cost (lower latency) path and will use the higher cost (higher latency) path as a backup.
You can configure a route-map on B for the routes sent to C to have higher metrics than the routes on D and set the maximum paths to 1 on the remote router C so it does not install multiple routes into the routing table. Give that a try but a simple interface cost adjustment will fix your problem and the way to go
Do you really think that a route map on B will affect OSPF advertisements? Remember that OSPF advertises LSAs (not routes per se) and that while a route map might affect advertisement of metrics for routes it does not have the capability to change the parameters advertised in OSPF LSAs.
how do you change the metric type for one path without affecting the other path?
What the original poster says he wants is to get away from equal cost load balancing and to have a preferred path and a backup path. In OSPF the way to do that is to change the cost. You can accomplish that either directly by assigning an OSPF cost to an interface or you can do it indirectly by changing the bandwidth statement on one of the interfaces, which will change the OSPF calculation of the cost. I believe it is better to directly assign the cost than it is to change the bandwidth.