Influencing OSPF Routes

Mar 22, 2006 4 Replies

I have a 2 Cisco routers and a Cisco VPN concentrator in parallel, plus there is another cisco router sitting behind them.



-- VPN Concentrator--------------- Internet| |---------Cisco Router3 -- Cisco Router1---------------------- -- Cisco Router2--------------------



OSPF is running between the all 4 devices. There is a route towards the internet out of each router, and there is a *Backup* Route for each cisco router pointing towards the VPN concentrator. For example, I need a way in ospf to have Router3 Prefer the Route thru Router 2, and if the wan link is down, have Router3 prefer the route over the VPN conentrator. In addition I need Router3 to prefer the route thru Router1 and if its wan link is down, have Router3 prefer the route over VPN.



Keep in mind that there are multiple "primary" routes to each of the cisco routers, so costing the physical links will not work. I need a way to cost each route on Router3.



Thanks



Consider changing to BGP, then use route-map to maniuplate the routes almost anyway you want

You may want to look into playing with changing administrative distances bases on the 'source' of the route:

distance xxx [ipofroutesource] [mask] [newdistance]

-ja

BGP will not work because the cisco VPN concentrator does not support BGP

Check out OSPF inbound route filtering using route maps

route-map SELECT_OSPF_ROUTES permit 20 match ip route-source ! router 2 match ip set metric

route-map SELECT_OSPF_ROUTES permit 30 match ip route-source !VPN concentrator match ip set metric

route-map tag-filter permit 40

router ospf 1 router-id x.x.x.x ! ensure router-id is configured on all router involved distribute-list route-map SELECT_OSPF_ROUTES in

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required