IP Subnet – Using IP Subnet at Multiple Datacenters

anycastipipv4ipv6subnet

We control IPv4 and IPv6 subnets. Now we'd like to use a part of a /24 IPv4 subnet at one datacenter and another part at another datacenter. I know that announcing the subnet on the internet at multiple DCs would create an Anycast scenario so that's not an option. Is there any way we could do this?


Edit:

Most peers only accept /24 or shorter so we can't split them and announce the subnet parts.

Best Answer

Connect the two DCs with a private connection. Then advertise the /24 at both Data Centers.

When traffic arrives at one DC for the other, your internal devices route or switch the traffic as required via the private link.


Second option depends on available connectivity options, you might be able to acquire a Layer2 (switched) link between both DCs and your upstream provider. This way, the ISP uses one of your IPs on their side as a gateway IP, and provides you with switched layer2 connectivity to both sides.