Skip to main content

Connect BGP + anycast subnet

BGP connection + anycast subnet is a service for setting up access to your infrastructure from the Internet. Using BGP + anycast subnet allows you to assign a single IP address to equipment in different pools and different services.

This service is used to create a fault-tolerant architectural solution: if part of the equipment fails, traffic will be distributed among the remaining devices.

Operating principle

Building network connectivity using BGP + anycast subnet requires any equipment that supports the BGP dynamic routing protocol:

  • for dedicated servers — a firewall, a hosted router, or routing software deployed on the server;
  • cloud servers — routing software deployed on the server.

Upon connection, BGP sessions are established between your BGP-capable equipment and Selectel border routers from each pool for which you need to configure single addressing. Within a single pool, two sessions are established — a primary and a backup.

To establish BGP sessions on your side, an IP address from the allocated subnet of each pool is used, which will act as a BGP neighbor.

Connect BGP + anycast subnet

  1. Make sure all equipment to be used for connectivity supports the BGP protocol.

  2. Make sure that in each pool where you need to use single addressing, there is an allocated public network with an available address. If necessary, order a subnet of the required size.

  3. Create a ticket to connect the BGP + anycast subnet service. In the ticket, specify:

    • pools for which you need to configure single addressing;
    • for each pool — an IP address from the allocated subnet of this pool. These addresses will be used as a BGP neighbor;
    • optionally: if you have your own AS (autonomous system) — its number;
    • desired size of the anycast subnet from /32 to /24.
  4. Wait for a response in the ticket from a Selectel specialist; they will clarify the details for further connection setup.

  5. Once the connection on the Selectel side is set up, configure BGP operation using the anycast subnet on your equipment. Learn more in the Selectel blog articles: