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 203.0.113.1
from the dedicated public subnet 203.0.113.0.0/29
. The Selectel router uses the service IP address of the 203.0.113.6
subnet as the gateway.
The server has two routes configured to the Selectel border routers — 198.51.100.10/32
and 198.51.100.100.20/32
via the 203.0.113.6
gateway on the Selectel router. Your router establishes two multihop BGP sessions with Selectel border 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;
- for Cloud powered by VMware — EDGE;
- for cloud servers — routing software deployed on the server.
-
Make sure you have a subnet:
- For a dedicated server, dedicated public subnet;
- for cloud server — public subnet;
- for Public Cloud powered by VMware — Direct Connected subnet.
One of the subnet addresses you need to assign to your router, in the example is
203.0.113.1
. The service subnet address will be used as the gateway on the Selectel router, in the example it is203.0.113.6
. -
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.
-
Look at the subnet gateway:
- for a dedicated server — in Control Panel go to Servers and Hardware → Network → Subnets tab → subnet page → Default Gateway field;
- for cloud server — in Control Panel go to Cloud Platform → Network → Public Subnets tab → expand the subnet card → Gateway field;
- for Public Cloud powered by VMware — in Control Panel, go to Cloud powered by VMware → Virtual Data Centers → Data Center page → in the subnet line, the Gateway field.
-
On your router, configure one of the static routing options:
- static default route to subnet
0.0.0.0.0/0
via next-hop — the gateway of the subnet seen in step 4, in the example is203.0.113.6
; - 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
198.51.100.10/32
and198.51.100.20/32
via next-hop203.0.113.6
. To get border router addresses, create a ticket.
- static default route to subnet
-
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 — only route
0.0.0.0.0/0
; - full-view — the entire global routing table;
- default route only + full-view — simultaneously route
0.0.0.0.0/0
and the entire global route table.
- default route only — only route
-
Enter the AS number.
-
If your AS is a transit AS, check the checkbox 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.