Static route through BGP

‎09-09-201909:38 AM

Hello all,

Couple of questions. We currently have a /26 with our ISP that connects to them via BGP with the ISP's provided ASN. We received a /24 from the same ISP with our own ASN and we will eventually remove the /26. For now the /26 needs to remain in service.

I know you cannot advertise both the /24 and /26 via BGP to the same ISP peer using different AS numbers. What the ISP told us is that we can advertise the /24 via BGP and statically route the /26 through them. Do I only need to define the static /26 through policy-options, export it through BGP and define it on an interface?

Also, do I need the term 1 statement? Our current edge router was programmed before I arrived and has always had that line (when it was only the /26).

Re: Static route through BGP

What Your ISP likely means is that ISP needs to define a static /26 route to point to Your border router' interface IP.

You don't point the route for an IP block You own to the upstream/ISP.

Hi Alex,

I didn't word that very well. I'm wondering how the /26 knows to route through to the ISP. If it was just the /26 and no BGP, I would add a static route saying 0.0.0.0 then go to 4.4.4.245. I'm new to BGP so if I add it as a secondary IP on the interface, does it just know to inject it into the route table?

This is not something I have in production at the moment so I'm not able to check a live routing table.