cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1758
Views
0
Helpful
6
Replies

Loadbalancing OSPF and Static route

ramcm.rr
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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.

Don't forget to rate helpful posts.

View solution in original post

6 Replies 6

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

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

Hi,

Can you show redistribution config on router B?

Regards.

Alain.

Don't forget to rate helpful posts.

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

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.

Don't forget to rate helpful posts.

Thanks Alain.