Skip to main content
Connect BGP
Last update:

Connect BGP

BGP connectivity allows you to use your own block of PI (provider-independent) IP addresses within the Selectel infrastructure. In this case, the PI prefix IP addresses are announced through your AS (autonomous system).

The connection uses a public subnet from the Selectel AS that links your router to the Selectel router.

Connection example

A dedicated server with routing software acts as a router and is assigned the IP address from the dedicated public subnet The Selectel router uses the service IP address of the subnet as the gateway.

The server has two routes configured to the Selectel border routers — and via the gateway on the Selectel router. Your router establishes two multihop BGP sessions with Selectel border routers that act as BGP neighbors.

Connect BGP

  1. Make sure 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 Cloud powered by VMware — EDGE;
    • for cloud servers — routing software deployed on the server.
  2. Make sure you have a subnet:

    One of the subnet addresses you need to assign to your router, in the example is The service subnet address will be used as the gateway on the Selectel router, in the example it is

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

  4. Look at the subnet gateway:

    • for a dedicated server — in Control Panel go to Servers and colocationNetworkSubnets tab → subnet page → Default Gateway field;
    • for cloud server — in Control Panel go to Cloud PlatformNetworkPublic Subnets tab → expand the subnet card → Gateway field;
    • for Public Cloud powered by VMware — in Control Panel, go to Cloud powered by VMwareVirtual Data Centers → Data Center page → in the subnet line, the Gateway field.
  5. On your router, configure one of the static routing options:

    • static default route to subnet via next-hop — the gateway of the subnet seen in step 4, in the example is;
    • or two static routes to the Selectel border routers through the next-hop — the subnet gateway seen in step 4. In the example, routes to and via next-hop To get border router addresses, create a ticket.
  6. On your router, set the TTL value to at least 10 so that the BGP session will always remain operational regardless of the Selectel network topology.

  7. On your router, enable the MultiHop BGP option.

  8. In Control Panel, go to Servers and colocationNetwork.

  9. Click Connect BGP.

  10. Enter the IP address for the BGP session — the public IP address you have assigned to your router, in the example —

  11. Select the route policy — which routes to your equipment Selectel will announce:

    • default route only — only route;
    • full-view — the entire global routing table;
    • default route only + full-view — simultaneously route and the entire global route table.
  12. Enter the AS number.

  13. If your AS is a transit AS, check the checkbox I have an AS-SET and specify the name of the AS-SET.

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

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