Two Datacenter Locations with Same BGP AS Number – Configuration Guide

bgpciscodata-centerNetworkrouting

Currently we have DC-1 running eBGP with my ISP using AS:1111 and i have prefix 1.1.1.0/24 and using BGP Default route because we have only single ISP.

Now we are opening new Datacenter in remote geolocation and we don't have any dedicated WAN link between datacenter, and same ISP going to provide us Internet connectivity with BGP default route.

Question:

  1. Do i need to get new AS number for new DC-2 ?
  2. If i want to use same AS number then what BGP will understand (or it's impossible to use same AS on two location?)
  3. what are the best practice people do in this scenario?

Best Answer

Since you have network islands with no backbone between them, it's usually best to use a distinct ASN per each distinct island. Just inform your RIR that you have multiple network islands and they will approve your request for the additional ASN(s).

If you decide to use the same ASN at multiple sites:

Because you have default routes only from your transit, you don't need to do anything special.

If you do decide to upgrade from default-only later on, you'll need to:

  • Request your transit providers configure advertise-peer-as on their side
  • Configure loops 2 or similar on your side
  • Ensure you are receiving & accepting routes from your remote sites
  • Double-check your loop-prevention strategy to ensure you're not accidentally, at site B, learning a route for site A from transit and then re-announcing that same route to a second transit provider
Related Topic