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. The PI IP address prefix is 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 has an IP address assigned to it 203.0.113.1 from a dedicated public subnet 203.0.113.0/29. The Selectel router uses the service IP address of the subnet as the gateway 203.0.113.6.

There are two routes configured on the server to the Selectel border routers — 198.51.100.10/32 and 198.51.100.20/32 through the gateway 203.0.113.6 on a Selectel router. Your router establishes two multihop BGP sessions with Selectel edge 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;
    • VMware-based cloud — EDGE;
    • 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 — 203.0.113.1. The service subnet address will be used as the gateway on the Selectel router, in the example — 203.0.113.6.

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

  4. Look at the subnet gateway:

    • for a dedicated server in control panel go to Servers and hardwareNetwork → tab Subnetworks → subnet page → field Default gateway;
    • of the cloud server is in control panel go to Cloud platformNetwork → tab Public networks → expand the subnet card → field Gateway;
    • VMware-based public cloud — in the control panel go to VMware-based cloudVirtual data centers → data center page → in the subnet row, the field Gateway.
  5. On your router, configure one of the static routing options:

    • static default route to the subnetwork 0.0.0.0/0 through next-hop — the gateway of the subnet we looked at in step 4, in the example — 203.0.113.6;
    • or two static routes to Selectel border routers through the next-hop — the subnet gateway seen in step 4. In the example, the routes to 198.51.100.10/32 and 198.51.100.20/32 through next-hop 203.0.113.6. To get the addresses of the border routers, file 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 hardwareNetwork.

  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. 203.0.113.1.

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

    • default route only — route only 0.0.0.0/0;
    • full-view — the entire global routing table;
    • default route only + full-view — route at the same time 0.0.0.0/0 and the entire global routing table.
  12. Enter the AS number.

  13. If your AS is a transit AS, check the check box 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.