cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2651
Views
16
Helpful
15
Replies

default gw in ospf

dave dave
Level 1
Level 1

hi! I've a layer 3 switch with the following config and there's a 29xx router connected to this L3 switch. Both the routers and L3 switch are in the same area which is 0. My question is that, how do i populate the gateway of last resort/default route to all the routers within the same area? I tried the config below, but it doesn't seems to populate the default gateway to other routers. any idea how i can achive this? or i've to manually configure the default route in every routers?

Another question is that how do i manipulate the metric so that i can give preference to one line and not another (both the destinatoin are the same but using different gateway, the traffic shd only go through the backup link with lower preference if the prefered link is down). Can i use the value (254, 252) to control the preference? Is 252 the prefered metric over 254? Thanks.

router ospf 1

log-adjacency-changes

redistribute connected subnets

redistribute static subnets

network 10.10.8.0 0.0.7.255 area 0

!

no ip http server

no ip http secure-server

!

ip route 0.0.0.0 0.0.0.0 10.10.15.101

ip route 10.0.0.0 255.0.0.0 10.10.15.102 254

ip route 10.0.0.0 255.0.0.0 10.10.15.103 252

15 Replies 15

Peter Paluch
Cisco Employee
Cisco Employee

Gentlemen,

This is all about series of speculations but without seeing an informative exhibit that depicts the network, areas, the individual default routes currently used by selected areas, we cannot provide any serious recommendation. What seemed to be a simple OSPF question unfolds into a complex network issue.

Dave, we need a picture of your network. The more informative the better. Without it, we may suggest something that does not work or is harmful.

Best regards,

Peter