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