06-16-2014 12:11 AM - edited 03-07-2019 07:44 PM
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.
06-16-2014 03:38 AM
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
06-16-2014 03:47 AM
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
06-16-2014 05:50 AM
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
06-16-2014 06:35 AM
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.
01-03-2023 02:15 AM - edited 01-03-2023 02:21 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide