12-15-2010 05:20 PM - edited 03-06-2019 02:34 PM
Hi All,
I have configured summary-address on my ASBR in which BGP routes are being redistributed into ospf process 100.
On ospf process 100, I have configured summary address 10.x.x.x.
Does the summary-address look for the 10.x.x.x only from the redistibuted routes on this router or the entire OSPF domain? I have few prefixes in 10.x.x.x in OSPF 100, which from other routers in the OSPF domain.
Thanks for the help
Ramesh
Solved! Go to Solution.
12-16-2010 10:08 AM
Ramesh:
A summary address must be advertised judiciously so as not to create a routing blackhole. An ASBR will inject a summary route into the OSPF domain according to the configuration of the summary address command. So, if a 10/8 summary address is configured under the OSPF process as part of the summary-address command AND at least one component network within that advertised range exists in the ASBR's RIB, that 10/8 will be advertised.
One other thing that I think you're not thinking about is the fact that routers select outgoing interfaces when routing traffic based on the longest-prefix match The summary route will be used when a more specific match is not available.
Lastly, keep in mind that once the summary-address command is configured, a matching route to null0 is autonmatically installed in the ASBR's RIB to prevent routing loops.
HTH
Victor
12-15-2010 05:51 PM
Hi Ramesh,
Since you are summarizing at the ASBR, all redistributed routes from BGP to OSPF will be summarized, as long as they are contiguous
HTH
Reza
12-15-2010 06:09 PM
Thanks.
The issue i am facing is , when the BGP goes down, the summary route does not get removed from the routing table.
I could see the BGP peers to be down, but on the OSPF process, i have multiple O E1 / O E2 / O IA routes in 10.x.x.x subnet in OSPF routing table.
12-15-2010 07:11 PM
Ramesh:
Please post the BGP and OSPF configs as well as the RIB entries that you think you shouldnt be seeing.
Downstream routers (not the ASBR) should show the summary route as an OE2 route in the RIB. And you should lose it on the downstream routers when the ASBR no longer has the BGP-learned prefixes in its RIB.
12-15-2010 08:42 PM
As per my understanding , OSPF will summarize even if one prefix in the range being summarized exists i.e. ( if the summary-address is 10.0.0.0/8, i will see this summary route even if I have one subnet in that range exists in its routing table). Is this a correct understanding?
Please find attached the scenario diagram.The situation is
12-16-2010 05:55 AM
The summary-address command will summarize any external routes from redistribution into the summary address.
In your scenario you have two sources of external routes from redistribution), one source is BGP and the other sources is connected routes.
So when BGP goes down between R1 and R2, R2 still has external routes in that range, from the redistributed connected routes, and continues to advertise the summary.
You may want to try using network statements to get the connected routes into OSPF instead of redistributing connected.
12-16-2010 07:27 AM
In addition to Joe's comments, you must keep in mind that the ASBRs are redistributing 10.10.x.x addresses that it learns from BGP and summarizing them into a 10.0.0.0/8. I am assuming that the route table entries you show in the OSPF core reflect the state of routing affairs when the BGP neighborships are down. If so, that makes sense because I dont see the OE2 10/8 summary or the individual 10.10 addresses.
12-16-2010 09:26 AM
Thanks Joe / Lamav.
Couple of points to add.
My earlier understanding was that the summary-address command will summarize only looking at the redistributed routes on its own external peering.i.e. R2 wil summarize only based on the routes redistributed from R1 BGP session and not looking at the OSPF domain.
Now, I think my understanding is incorrect. So, in the given scenario, my route summarization will never work as long as I have routes from other routers (e.g. R4/R1). Is this correct?
12-16-2010 10:08 AM
Ramesh:
A summary address must be advertised judiciously so as not to create a routing blackhole. An ASBR will inject a summary route into the OSPF domain according to the configuration of the summary address command. So, if a 10/8 summary address is configured under the OSPF process as part of the summary-address command AND at least one component network within that advertised range exists in the ASBR's RIB, that 10/8 will be advertised.
One other thing that I think you're not thinking about is the fact that routers select outgoing interfaces when routing traffic based on the longest-prefix match The summary route will be used when a more specific match is not available.
Lastly, keep in mind that once the summary-address command is configured, a matching route to null0 is autonmatically installed in the ASBR's RIB to prevent routing loops.
HTH
Victor
12-17-2010 03:08 AM
Victor,
Now my understanding is clear. Thanks for the explanation.
In the topology diagram, I had indicated few routes in the OSPF domain just to indicate that these routes exist even when the summary address is configured. I had considered the longest-prefix match rule and the null route rule.
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