Announcing to BGP an OSPF route from area 0

Hello folks,

I'm facing problem with BGP and OSPF that I'm unable to solve so I'm asking for your help.

There is a router R0 (AS65000) with eBGP neighbour within AS65001. I'm announcing 10.0.0.0/8 network to AS65001 from R0. However R0 has

10.0.1.0/24 attached to the Gi1/1 interface. This interface is in OSPF area 0. There are couple of other routers connected to this area, but they are not important - they handle couple of 10.0.0.0/24 networks and annouce them into OSPF.

Currently to have a exact prefix match in routing table for BGP on R0, to have the 10.0.0.0/8 route announced I put a static route on R0 for

10.0.0.0/8 pointing towards Null0. However, when Gi1/1 interface goes down, the 10.0.0.0/8 network is still announced to the AS65001 - that is obvious. I don't really want that. If the link fails I want R0 to stop announcing the 10.0.0.0/8 route in BGP.

Is it possible to summarize all 10.... to 10.0.0.0/8 and annouce in BGP? How can I accomplish that?

Thanks in advance!

Reply to
Piotr
Loading thread data ...

try aggregate 10.0.0.0 255.0.0.0 summary-only

Reply to
Merv

presentation on the topic of BGP route aggregation

formatting link

Reply to
Merv

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.