cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1975
Views
0
Helpful
5
Replies

Advertise OSPF with higher cost

hi all,

I need to implement following scenario and i really need your help in this regard.

My active path toward Branch Office should be via 'CORE ACTIVE' and 'WAN Edge Actve'.

In case of 'WAN Edge Acive ' failure , I need to traverse that traffic through 'WAN Edge Backup'.

I used AS path prepend to implement this in BGP Configuration.

I want to Advertise OSPF routes with higher cost from 'Core Backup'

1) How should I do this ?

2) Is there any other better alternate solution which I can use ?

Thanks a lot for your time and consideration.

5 Replies 5

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Harsha,

you cannot change on the fly the routes advertised in OSPF by core backup given the link state nature of the protocol.

However, you can increase the OSPF cost of the links betweeen (core backup, WAN edge active) and of the link  (core backup, WAN edge backup) by using ip ospf cost 50 at both ends of each link in interface configuration mode.

This makes core backup less preferred by the WAN routers then core active, because of the cumulative nature of OSPF metric in a single area (area 1) as in your topology.

Hope to help

Giuseppe

 

hi Giuseppe Larosa,

Thanks a lot for your response. What's your recommended way to implement this kind of scenario ?

I meant that whats the best possible solution I can give other than this ?

Thanks

Hello Harsha,

if OSPF is the only protocol spoken between core routers and WAN edge routers I don't see any other way to achieve what you want  ( core backup OSPF routes less preferred then those via core active).

It is good practice to have the same cost at the two ends of a link, and this is the only recommendation that I may add.

 

Hope to help

Giuseppe

Gabriel Hill
Level 1
Level 1

Hello Harshaabba,

In the past, this is how I have accomplished this in similar situations.

Under the OSPF config, something similar to this.

 

--------------------------

 distance 15 8.8.8.8 0.0.0.0 99

access-list 99 permit 10.5.0.0 0.0.0.255
access-list 99 permit 10.6.0.0 0.0.0.255
---------------------------


(15) = AD
8.8.8.8 = OSPF Router ID
0.0.0.0 = wildcard bits
99 = Access list to match

 

Note: This isn't always the best solution, but after looking at your diagram, this should work just fine.

 

belcenterbe
Level 1
Level 1

 

Hello,

I had the same problem and could not solve it with the command: "distance 15 X.X.X.X"

On the other hand, I found this command that works well.

router ospf 1
router-id X.X.X.X
zone 24 nssa
redistribute connected metric 40 metric-type 1 subnets tag 2
redistribute  static metric 40 metric-type 1 subnets tag 2

I have two routers that distribute to the Core router.
- on the backup router, the metric is 40
- on the main router, the metric is 20

I also added a tag to distinguish whether the route is from the backup router or the core router.

I didn't understand why a lot of messages indicated that the metric could not be manipulated with the ospf protocol.

When shutdown the main routeur, the routes are coming to the Core with the metric 40 and trafic is flowing fine.

 

Review Cisco Networking products for a $25 gift card