BGP adv. prefix with specific metric

Unanswered Question
Sep 16th, 2008
User Badges:

I have the route 10.10.0.0/24 in OSPF normally with a cost of 1050. If a certain node in the network goes down, the cost increased to 2100. I only want to advertise the network out of BGP if the cost/metric in OSPF is 1050.


I tried setting up a route-map to match a prefix-list and a metric value of 1050 +- 10, but when I do:


show ip bgp route-map <name>


it still shows the prefixes with a metrix of 2100. Will this route-map work and I'm just testing it wrong?


Ideal solution would be to stop the redistribution from OSPF to BGP when the metric is two high.


Alternate solution would be to allow redistribution and carry over the OSPF cost into the BGP metric. Then don't advertise the network if the BGP metric is to high. Advertise at 1050, don't advertise at 2100.


Thanks for the help.


---John Holmes...

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Calin Chiorean Tue, 09/16/2008 - 00:53
User Badges:
  • Silver, 250 points or more

Hi John!


In BGP config do you have something like :

neighbor xxx.xxx.xxx.xxx route-map your_route_map_metric_match out

?

If yes, did you clear the BGP peering (soft or hard)?


If you do not have done this yet, please try and let me know how it is working.


Good luck!


Cheers,

Calin

JHolmes763 Tue, 09/16/2008 - 01:37
User Badges:

No, I haven't added it to the outboudn route-map yet. Was hoping to show that it matches correctly before I added it.

JHolmes763 Wed, 09/17/2008 - 00:15
User Badges:

I tried to add the route-map, but was told I couldn't match metric on an outbound route-map.


I tried adding it to the OSPF to BGP redistribution route-map, but not sure if it's working or not. Waiting for the node to go down.


The issue I have with doing it further up the chain is caused by aggregation. I aggregate the smaller subnets into a /24, but then the metric goes away on the /24.

Actions

This Discussion