Skip to main content

Connect BGP

Connecting via BGP allows you to use your own PI (provider-independent) IP address block within the Selectel infrastructure. In this case, the PI IP prefix is advertised through your AS (Autonomous System).

A public subnet from the Selectel AS is used for the connection, which links your router with the Selectel router.

Connection example

A dedicated server with routing software acts as a router; it is assigned the IP address 203.0.113.1 from the dedicated public subnet 203.0.113.0/29. On the Selectel router, the subnet service IP address 203.0.113.6 is used as the gateway.

Two routes to Selectel border routers are configured on the server — 198.51.100.10/32 and 198.51.100.20/32 via the gateway 203.0.113.6 on the Selectel router. Your router establishes two multihop BGP sessions with Selectel border routers acting as BGP neighbors.

Connect BGP

  1. Ensure you have a router—any equipment that supports the BGP dynamic routing protocol:

    • for dedicated servers — a firewall, a hosted router, or routing software deployed on the server;
    • for clouds powered by VMware — EDGE;
    • for cloud servers — routing software deployed on the server.
  2. Ensure you have a subnet:

    You need to assign one of the subnet addresses to your router, in the example — 203.0.113.1. The subnet service address will be used as the gateway on the Selectel router, in the example — 203.0.113.6.

  3. Make sure that you have a route object created in the RIPE DB for the announced PI network. The origin field contains the registered public number of your AS.

  4. Check the subnet gateway:

    • for a dedicated server — in the control panel, in the top menu, click Products → Dedicated Servers → Network → the Subnets tab → subnet page → the Default gateway field;
    • for a cloud server — in the control panel, in the top menu, click Products → Cloud Servers → Network → the Public networks tab → open the subnet card → the Gateway field;
    • for VMware-based public cloud — in the control panel, in the top menu, click Products → VMware-based Cloud → Virtual Data Centers → data center page → subnet row → the Gateway field.
  5. Configure one of the static routing options on your router:

    • a static default route to the subnet 0.0.0.0/0 via next-hop — the subnet gateway checked in step 4, in the example — 203.0.113.6;
    • or two static routes to the Selectel border routers via next-hop — the subnet gateway checked in step 4. In the example — routes to 198.51.100.10/32 and 198.51.100.20/32 via next-hop 203.0.113.6. To get the border router addresses, create a ticket.
  6. Set the TTL value to at least 10 on your router so that the BGP session always remains operational regardless of the Selectel network topology.

  7. Enable the MultiHop BGP option on your router.

  8. In the control panel, in the top menu, click Products and select Dedicated Servers.

  9. Go to the Network section.

  10. Click Connect BGP.

  11. Enter an IP address for the BGP session — the public IP address you assigned to your router, in the example — 203.0.113.1.

  12. Select a routing policy—the routes that Selectel will advertise to your equipment:

    • default route only — only the 0.0.0.0/0 route;
    • full-view — the entire global routing table;
    • default route only + full-view — both the 0.0.0.0/0 route and the full global routing table.
  13. Enter the AS number.

  14. If your AS is a transit AS, select the I have an AS-SET checkbox and specify the AS-SET name.

  15. Select a payment period and check the total cost.

  16. Click Pay. When the connection is ready, we will send a ticket.