Set up communication with infrastructure outside of Selectel
- Make sure you have connected the Direct Connect service — physical port.
- Make sure that a global router network is created in your account and it includes all the devices that need to be linked via the carrier channel to your external infrastructure.
- Connect the Direct Connect network to a global router.
- Assign an IP address from the Direct Connect subnet to a router in the external infrastructure.
- Configure routing to the Direct Connect subnet on the global router network.
- If there are multiple subnets behind an external router, configure routing on the global router.
Check the connection of the service
Check to see if the ticket you received a VLAN number when ordering the service, and this VLAN appears in the control panels → section Servers and hardware → Network → tab VLAN.
Verify or create a global router network
Ensure that your account has a global router network and includes all devices that you want to connect to the external infrastructure. To view the global routers that have been created, go to control panels under Network services → Selectel Global Router.
If you don't already have a global router or need to create a new one, use the instructions Create a private connection through a global router.
Connect the Direct Connect network to a global router
- В control panels go to Network services → Selectel Global Router.
- Open the router page → tab Networks.
- Click Create a network.
- Enter a network name, this will only be used in the control panel
- Select a service Dedicated servers.
- Select pool that you specified when you ordering Direct Connect service — physical port.
- Select the VLAN to which the operator port has been added. You can see the VLAN number in the ticket you received when you ordering Direct Connect service — physical port.
- Enter the subnet name — this will only be used in the control panel.
- Enter the CIDR — IP address and mask of the private subnet. You can select any addressing that does not overlap with other subnets on the global router and with subnets that are used in your external infrastructure.
- Enter the gateway IP address or leave the first address from the subnet assigned by default. Do not assign this address to your devices to avoid disrupting the network.
- Enter service IPs or leave the last addresses from the subnet assigned by default. Do not assign these addresses to your devices to avoid disrupting the network.
- Click Create a network.
- Optional: check the network topology on the global router. В control panels go to Network services → Selectel Global Router. Open the page of the desired router and click Network map.
Assign an IP address to a router in the external infrastructure
Assign to a router in your external infrastructure an IP address from the Direct Connect subnet that you plugged into a global router.
The address must not be the same as the gateway address and service addresses you selected when connecting. You can view the gateway address and service addresses in the control panels → section Network services → Selectel Global Router → global router page → open the network card to which the subnet belongs → field Gateway.
Configure routing to the Direct Connect subnet on the global router network
On all devices on the global router network, write static routes to the Direct Connect subnet that plugged into a global router.
As next-hop, specify the IP address from the device's subnet that is assigned to the global router as the gateway. You can view the gateway address in control panels → section Network services → Selectel Global Router → global router page → open the network card to which the subnet belongs → field Gateway.
Dedicated server, cloud based on VMware
Cloud platform
Ubuntu
Debian
CentOS
Windows
-
Open the CLI.
-
Open the network configuration file with a text editor
vi
:vi /etc/netplan/01-netcfg.yaml
-
At the end of the data block of the desired network interface, add a route:
routes:
- to: <ip_address>/<mask>
via: <gateway>Specify:
<ip_address>/<mask>
— the Direct Connect subnet that you plugged into a global router with an indication of the mask;<gateway>
— gateway for the current server subnet, which is specified on the global router.
-
Press the key
ESC
. -
Exit the text editor
vi
with the changes intact::wq
-
Check the settings:
sudo netplan try
-
Apply the changes:
netplan apply
-
Open the CLI.
-
Open the network configuration file with a text editor
vi
:vi /etc/network/interfaces
-
At the end of the data block of the corresponding network interface, add the desired route:
up route add -net <ip_address> netmask <mask> gw <gateway>
down route del -net <ip_address> netmask <mask> gw <gateway>Specify:
<ip_address>
— the Direct Connect subnet that you plugged into a global router;<mask>
— the subnet mask to which you want to route, for example,255.255.255.0
;<gateway>
— gateway for the current server subnet, which is specified on the global router.
-
Press the key
ESC
. -
Exit the text editor
vi
with the changes intact::wq
-
Restart the network:
sudo /etc/init.d/networking restart
-
Open the CLI.
-
Create and complete a file to configure static routes:
echo "<ip_address>/<mask> via <gateway>" >> /etc/sysconfig/network-scripts/route-<eth_name>
Specify:
<ip_address>/<mask>
— the Direct Connect subnet that you plugged into a global router with an indication of the mask;<gateway>
— gateway for the current server subnet, which is specified on the global router;<eth_name>
— the name of the corresponding LAN interface.
-
Restart the network:
systemctl restart network
-
Connect to the server via RDP or through KVM console.
-
Add a route:
route -p ADD <ip_address> MASK <mask> <gateway> METRIC <x>
Specify:
<ip_address>
— the Direct Connect subnet that you plugged into a global router;<mask>
— subnet mask of the subnet to which you want to route, for example,255.255.255.0
;<gateway>
— gateway for the current server subnet, which is specified on the global router;<x>
— parameter defining the priority of the specified gateway, 1 is the highest priority.
For a cloud server, cloud database cluster, or Managed Kubernetes cluster, use the following instructions Static routes.
Configure routing on the global router
If you have multiple subnets behind the router in your external infrastructure, write static routes to each of them or configure dynamic routing over BGP.
Prescribe static routes
Configure dynamic routing over BGP
- В control panels go to Network services → Selectel Global Router.
- Open the router page → tab Static routes.
- Click Create a route.
- Enter a route name — any name, it will only appear in the control panel.
- Enter the CIDR of the destination subnet, which is the subnet behind the router in your external infrastructure.
- Enter the IP address Next hop — the IP address from the Direct Connect subnet that you are assigned to a router in the external infrastructure.
- Click Create.
- В control panels go to Network services → Selectel Global Router.
- Open the router page → tab BGP.
- Click Configure BGP.
- Enter the BGP neighbor IP address — the IP address from the Direct Connect subnet that you assigned to a router in the external infrastructure.
- Enter the Autonomous System (AS) number. You can specify a private AS from the range 64512-65534, except AS 64530, which is used for the global router.
- Specify the tasks that require dynamic routing over BGP.
- Click Create a ticket. In the ticket we will clarify the data and provide further instructions on how to organize the connection.