Link a Managed Database to a dedicated server
Some Chipcore Line dedicated server configurations cannot be added to a global router network because they lack a private network port. You can check if a private network port is available in the Control panel on the server page under the Ports tab.
- Create a global router.
- Connect the network and subnet up to the dedicated server VLAN to the global router.
- Connect the network and subnet up to the cloud platform project to the global router.
- Assign IP addresses from the created subnets to the dedicated server.
- Configure routes on the dedicated server.
- Create a cloud database cluster: a new one or from a backup of an existing cloud database cluster.
See an example of network setup between a dedicated server and a cloud database.
Example of networking between a Managed Database and a dedicated server
If you need to configure private connectivity between a dedicated server in the SPB-2 pool and a new Managed Database in the ru-2 pool:
- Create a global router.
- Connect two private subnets to the router:
192.168.0.0/29with gateway192.168.0.1for pool SPB-2 and172.16.0.0/29with gateway172.16.0.1for pool ru-2. - Assign an address from the
192.168.0.0/29subnet to the dedicated server, for example192.168.0.2. - Configure routes on the dedicated server in pool SPB-2: to the subnet
172.16.0.0/29via gateway192.168.0.1. - Create a new cloud database cluster in the subnet
172.16.0.0/29.

1. Create a global router
- In the control panel, in the top menu, click Products and select Global Router.
- Click Create router. Each account has a limit of five global routers.
- Enter the router name.
- Click Create.
- If the router was created with the status
ERRORor is stuck in one of the statuses, create a ticket.
2. Connect to the router a network and subnet linking to the dedicated server VLAN
You can connect a new network to the router or an existing network if it is not already connected to any of the account's global routers.
-
In the Control panel, from the top menu, click Products and select Global Router.
-
Open the router page → Networks tab.
-
Click Create network.
-
Enter a network name. It will only be used in the control panel.
-
Select the Servers and hardware service.
-
Select the location of the network.
-
Select or enter a VLAN.
-
If you want to create a network to an internal segment (Q-in-Q), specify its tag — a number from 2 to 4094. If a network already exists for the VLAN, you must specify the Q-in-Q segment of this VLAN.
-
Enter a subnet name. It will only be used in the control panel.
-
Enter the CIDR — the IP address and mask of the private subnet. You can enter a new subnet or an existing private server subnet if it has not yet been added to any of the global routers in the account. The subnet must meet the following conditions:
- belong to the RFC 1918 private address range:
10.0.0.0/8,172.16.0.0/12, or192.168.0.0/16; - have a size of at least
/29, because three addresses will be occupied by Servercore network equipment; - do not overlap with other subnets added to this router — there must be no identical IP addresses within subnets on the same router;
- if a Managed Kubernetes cluster on cloud servers is connected to the global router network, the subnet must not overlap with the ranges
10.10.0.0/16,10.96.0.0/12,10.250.0.0/16, and10.251.0.0/24. If a cluster on dedicated servers is connected to the network — with the ranges10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24, and172.250.0.0/14. These subnets are used in Managed Kubernetes internal addressing, and their use may lead to conflicts in the global router network.
- belong to the RFC 1918 private address range:
-
Enter the gateway IP or leave the first address from the subnet, which is assigned by default. Do not assign this address to your devices to avoid network disruption.
-
Enter the service IPs or leave the last addresses from the subnet, which are assigned by default. Do not assign these addresses to your devices to avoid network disruption.
-
Click Create network.
-
Optional: check the network topology on the global router. In the Control panel, from the top menu, click Products → Global Router → router page → Network map.
-
If you specified a Q-in-Q tag in step 8, enable Q-in-Q on the switch port and configure the network interface of the private network specified in step 10. Learn more in the Configure Q-in-Q section of the Q-in-Q instructions.
3. Connect to the router a network and subnet linking to the Cloud Platform project
You can connect a new or existing network to the router if it is not already connected to any of the account's global routers.
Connect a new network
Connect an existing network
-
In the control panel, in the top menu, click Products and select Global Router.
-
Open the router page → the Networks tab.
-
Click Create network.
-
Enter a network name. It will only be used in the control panel.
-
Select the Cloud Platform service.
-
Select the location of the network.
-
Select a project.
-
Enter a subnet name. It will only be used in the control panel.
-
Enter the CIDR — IP address and subnet mask. The subnet must meet the following conditions:
- belong to the private address range according to RFC 1918:
10.0.0.0/8,172.16.0.0/12, or192.168.0.0/16; - have a size of at least
/29, because three addresses will be occupied by Servercore network equipment; - it does not overlap with other subnets added to this router — there must be no identical IP addresses within the subnets of one router;
- if a Managed Kubernetes cluster on cloud servers is to be added to the global router network, the subnet must not overlap with the ranges
10.10.0.0/16,10.96.0.0/12,10.250.0.0/16, and10.251.0.0/24. If a cluster on dedicated servers is to be added to the network — with the ranges10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24, and172.250.0.0/14. These subnets participate in Managed Kubernetes internal addressing, and using them may lead to conflicts in the global router network.
- belong to the private address range according to RFC 1918:
-
Enter the gateway IP or leave the first address from the subnet, which is assigned by default. Do not assign this address to your devices to avoid disrupting network operation.
-
Enter the service IPs or leave the last addresses from the subnet, which are assigned by default. Do not assign these addresses to your devices to avoid disrupting network operation.
-
Click Create network.
-
Optional: check the network topology on the global router. In the control panel, in the top menu, click Products → Global Router → router page → Network map.
4. Assign an IP address to the dedicated server
Configure the local port on the dedicated server that is connected to the global router network. Assign an IP address from the private subnet that you connected to the global router in step 2 to the port.
Ubuntu
Debian
CentOS
Windows
-
Connect to the server via SSH or via the KVM console.
-
Open the
netplanutility configuration file with thevitext editor:vi /etc/netplan/01-netcfg.yaml -
Add or change the values of the private network interface settings:
<eth_name>:addresses: [<ip_address>]Specify:
<eth_name>– private network interface name;<ip_address>– private IP address of the server with a subnet mask, for example,192.168.0.2/24.
-
Press ESC.
-
Exit the
vitext editor, saving the changes::wq -
Apply the configuration:
netplan apply -
Optional: reboot the server.
-
Optional: assign a private IP address to the server in the Control Panel.
5. Specify routes on the dedicated server
Ubuntu
Debian
CentOS
Windows
-
Open the network configuration file:
vi /etc/netplan/01-netcfg.yaml -
At the end of the data block for the required network interface, add the route:
routes:- to: <ip_address>/<mask>via: <gateway>Specify:
<ip_address>/<mask>— subnet to which the route is needed, specifying the mask, for example192.168.0.0/28;<gateway>— gateway for the subnet of the current server specified on the global router.
-
If you need to define multiple routes, add them sequentially in the same block, for example:
routes:- to: 192.168.0.0/28via: 172.16.0.1- to: 192.168.1.0/28via: 172.16.0.1 -
Save the file.
-
Check the settings:
sudo netplan try -
Apply the changes:
netplan apply
6. Create a Managed Database cluster
PostgreSQL
PostgreSQL for 1C
PostgreSQL TimescaleDB
PostgreSQL PGVector
MySQL semi-sync
MySQL sync
Redis
Kafka
New
From backup
-
In the Control panel, click Products in the top menu and select Cloud Databases.
-
Click Create Cluster.
-
Enter the cluster name.
-
Select a location. You cannot change the location after creation.
-
Select the PostgreSQL version. You will not be able to change it after creating the cluster.
-
Select a node configuration:
- fixed — configurations with different vCPU, RAM, and local disk ratios;
- custom — free choice of resource ratios.
-
For a fixed configuration, select a configuration line:
- Standard;
- CPU;
- Memory;
- HighFreq.
-
Optional: select the Add replicas checkbox and specify the number of replicas. Replicas improve cluster fault tolerance.
-
Select the subnet you connected to the global router in step 3.
You can restrict the list of IP addresses allowed to access the database cluster.
-
Select a connection pooler mode:
- transaction — connection assigned to a client for the duration of a transaction;
- session — connection assigned while a client is connected;
- statement — transactions with multiple statements are prohibited.
-
Optional: change the DBMS settings by clicking Edit. We recommend modifying setting values only when necessary — incorrectly selected values may degrade cluster performance.
-
Click Create database cluster. The cluster will be ready for use once its status changes to
ACTIVE.