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 is assigned the IP address 203.0.113.1 from the dedicated public subnet 203.0.113.0/29. The Selectel router uses the service IP address 203.0.113.6 as the gateway.

The server has two routes configured to the Selectel Edge Routers, 198.51.100.10/32 and 198.51.100.20/32, via gateway 203.0.113.6 on the Selectel router. Your router establishes two multihop BGP sessions with the Selectel Edge Routers, which 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 will 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. Make sure that you have an announced PI network route-object created in RIPE DB route-object. The origin field contains the registered public number of your AS.

  4. Look at the subnet gateway:

    • for a dedicated server — in the control panel in the top menu, click ProductsDedicated ServersNetworkSubnets tab → Subnets page → Default Gateway field;
    • cloud server — in the control panel in the top menu, click ProductsCloud ServersNetworkPublic Networks tab → open the subnet card → Gateway field;
    • VMware-based public cloud — in the Control Panel, in the top menu, click ProductsVMware-based CloudVirtual Data Centers → Data Center page → Subnet row → Gateway field.
  5. On your router, configure one of the static routing options:

    • default static route to subnet 0.0.0.0/0 via next-hop — the gateway of the subnet you looked at in step 4, in the example is 203.0.113.6;;
    • or two static routes to the Selectel Edge Routers via the next-hop — the subnet gateway you looked at 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 addresses of the edge routers, 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 the Control Panel, on the top menu, click Products and select Dedicated Servers.

  9. Go to the Network section.

  10. Click Connect BGP.

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

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

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

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

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

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