01-05-2011 11:04 AM - edited 03-04-2019 10:58 AM
Hello All
I want to load balance traffic over two links. One (link AC) is running OSPF and other (link AB) has a static route. Though static and ospf route have same distance( one) and metric ( zero), the router has only the static route in its routing table.
Is it possible to have both routes in routing table and do equal load balancing.
Thanks,
Ram
Solved! Go to Solution.
01-05-2011 01:20 PM
Hi,
I've just labbed it and I get same result as you, putting the static route pushes away the ospf route from rib. a debug ip routing showed that the static route was inserted because of better AD.
So it seems that a static route always wins even if AD of routing protocol advertising the route is equal.
Regards.
Alain.
01-05-2011 11:22 AM
Hi,
As far as I know you can't have an OSPF metric of 0 because on Cisco routers the metric is cost which must be >= 1.
but anyway you put a static host route can you change with a network static route?
if this doesn't help then be sure you got the route with ospf: sh ip ospf data 192.168.1.0
Regards.
Alain.
01-05-2011 11:36 AM
Hi Alain,
The route is present in the ospf database. Changing host to network static route does not help.
I am redistributing rip into ospf on router B. This route is learnt by router A as OSPF. While redistributing I changed metric to 0
Thanks,
Ram
01-05-2011 11:48 AM
Hi,
Can you show redistribution config on router B?
Regards.
Alain.
01-05-2011 11:53 AM
router rip
version 2
network 192.168.1.0
no auto-summary
router ospf 20
log-adjacency-changes
redistribute rip metric 0 subnets route-map RIP-OSPF
network XXXX XXXX area 0
access-list 41 permit 192.168.1.1 0.0.0.0
route-map RIP-OSPF permit 10
match ip address 41
01-05-2011 01:20 PM
Hi,
I've just labbed it and I get same result as you, putting the static route pushes away the ospf route from rib. a debug ip routing showed that the static route was inserted because of better AD.
So it seems that a static route always wins even if AD of routing protocol advertising the route is equal.
Regards.
Alain.
01-05-2011 01:33 PM
Thanks Alain.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide