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
-
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.
-
Make sure you have a subnet:
- for a dedicated server-- dedicated public subnet;
- of the cloud server-- public subnet;
- a VMware-based public cloud — Direct Connected 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
. -
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.
-
Look at the subnet gateway:
- for a dedicated server in control panel go to Servers and hardware → Network → tab Subnetworks → subnet page → field Default gateway;
- of the cloud server is in control panel go to Cloud platform → Network → tab Public networks → expand the subnet card → field Gateway;
- VMware-based public cloud — in the control panel go to VMware-based cloud → Virtual data centers → data center page → in the subnet row, the field Gateway.
-
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
and198.51.100.20/32
through next-hop203.0.113.6
. To get the addresses of the border routers, file a ticket.
- static default route to the subnetwork
-
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.
-
On your router, enable the MultiHop BGP option.
-
In control panel go to Servers and hardware → Network.
-
Click Connect BGP.
-
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
. -
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.
- default route only — route only
-
Enter the AS number.
-
If your AS is a transit AS, check the check box I have an AS-SET and specify the name of the AS-SET.
-
Select a payment period and check the total cost.
-
Click Pay. When the connection is ready, we will send a ticket.