New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
BGP problem
Hi every body
I have a IP/24 block address and two servers at different geographic locations.
I want to advertise and BGP my IPs at both of them as anycast IPs.
But I need requests recieved by server 1 and no request routes to server 2.
But server 2 can send data throw this IPs.
Is there any idea to help me?
Best regards

Comments
@Maounique @kjartan
The easy way would be to setup a tunnel between both locations and set routes for example route /38 to server 2 but this is just an example.
Easy, yes, but it would not be efficient, routing wise.
I would setup some router on the main geographic location to redirect requests to the second location based on some criteria.
You can setup a tunnel between the locations and use a private cidr to route smaller than /24 prefixes between the locations, once you announce through BGP it will announce at both locations, and then you can sub-route smaller blocks between the 2 locations using your own BGP Micro Internet setup.
So for example:
1.1.1.0/24 is the public network.
On Server A you setup it to announce the 1.1.1.0/24 on the public internet, then assign a private IP (Ex: 10.1.0.10) to a tunnel interface/ private lan between the locations.
On Server B you setup it to announce the 1.1.1.0/24 on the public internet, then assign a private IP (Ex: 10.1.0.20) to a tunnel interface/ price lan.
Then make each location peer with one another on the 10.1.0.0/24 subnet, and since it is off the public internet it can route smaller prefixes between the two of them. Then make sure you do not export those routes to the public internet upstream, and you have the ability to route traffic down to the /32 prefix on your own BGP network.
When you connect to the upstream request the full table, so then each server will send on the IPs, and you can route smaller than /24 on your private BGP network. So server A can have 1.1.1.10/32 on it and server B can have 1.1.1.20/32 on it. Below is a flow example:
Public Internet -> POP-A -> (Sub Routed through private BGP) -> POP-B
With both locations having the full table you can route out from either without using the tunnel.
This also will create an auto-healing Anycast network, since BGP uses routes in real-time, if POP-A goes down POP-B will still have the main block. Also if you add more POPs then you can do different sub-routing on your private BGP