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, assigned an IP address 203.0.113.1 from a dedicated public subnet 203.0.113.0/29. On the Selectel router, a service IP address of the subnet is used as a gateway 203.0.113.6.
Two routes to Selectel border routers are configured on the server — 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 border routers, which act as BGP neighbors.

Connect BGP
-
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.
-
Ensure you have a subnet:
- for a dedicated server — dedicated public subnet;
- for a cloud server — public subnet;
- for a public cloud powered by VMware — Direct Connected subnet.
You need to assign one of the subnet addresses to your router; in the example —
203.0.113.1. A service subnet address will be used as a gateway on the Selectel router; in the example —203.0.113.6. -
Ensure you have a route object of the advertised PI network created in the RIPE DB. The origin field contains the registered public number of your AS.
-
Check the subnet gateway:
- for a dedicated server — in the Control Panel, from the top menu, click Products → Dedicated Servers → Network → Subnets tab → subnet page → Default gateway;
- for a cloud server — in the Control Panel, from the top menu, click Products → Cloud Servers → Network → Public networks tab → open the subnet card → Gateway;
- for a public cloud powered by VMware — in the Control Panel, from the top menu, click Products → Cloud powered by VMware → Virtual Data Centers → data center page → subnet row → Gateway.
-
Configure one of the static routing options on your router:
- a default static route to the
0.0.0.0/0subnet via the next-hop — the subnet gateway you checked in step 4, in the example —203.0.113.6; - or two static routes to the Selectel border routers via the next-hop — the subnet gateway you checked in step 4. In the example — routes to
198.51.100.10/32and198.51.100.20/32via next-hop203.0.113.6. To get the addresses of the border routers, create a ticket.
- a default static route to the
-
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.
-
Enable the MultiHop BGP option on your router.
-
In the Control Panel, from the top menu, click Products and select Dedicated Servers.
-
Go to the Network section.
-
Click Connect BGP.
-
Enter the IP address for the BGP session — a public IP address that you assigned to your router; in the example —
203.0.113.1. -
Select a routing policy—the routes that Selectel will advertise to your equipment:
- default route only — only the
0.0.0.0/0route; - full-view — the entire global routing table;
- default route only + full-view — simultaneously the
0.0.0.0/0route and the entire global routing table.
- default route only — only the
-
Enter the AS number.
-
If your AS is a transit AS, select the I have an AS-SET checkbox and specify the AS-SET name.
-
Select a payment period and check the total cost.
-
Click Pay. When the connection is ready, we will send you a ticket.