Connect file storage to a dedicated server
File storage and a dedicated server are always located in different pools, so to connect file storage to a dedicated server, you need to set up private L3 network connectivity via a global router.
Some Chipcore Line dedicated server configurations cannot be added to a global router network because they do not have a port for connecting to a private network. You can check if a private network port is available in the control panel: in the top menu, click Products and select Dedicated Servers → Servers → server page → Ports tab.
-
Connect the network and subnet to the dedicated server VLAN to the global router.
-
Connect the network and subnet for file storage to the global router.
See the example of connecting file storage to a dedicated server.
Example of connecting file storage to a dedicated server
For example, you want to connect file storage in pool ru-2 to a dedicated server in pool SPB-2.
-
Create a global router.
-
Connect two private subnets to the global 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 subnet
192.168.0.0/29to the dedicated server, for example192.168.0.2. -
Configure a route on the dedicated server in the SPB-2 pool to subnet
172.16.0.0/29via gateway192.168.0.1. -
Create file storage in subnet
172.16.0.0/29. -
Mount the file storage to the dedicated server.

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 the network and subnet to the router up 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 the network and subnet for the file storage to the router
You need to connect the network and subnet to the global router for the project and pool where the file storage will be created in the future.
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.
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 → 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 where the file storage will be created.
-
Select the project where the file storage will be created.
-
Enter a subnet name. It will only be used in the control panel.
-
Enter the CIDR — the IP address and the subnet mask. 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; - be at least
/29in size, since three addresses will be occupied by Servercore network equipment; - it must not overlap with other subnets added to this router — there must be no identical IP addresses within the subnets of a single 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 for internal Managed Kubernetes addressing, and using them may cause conflicts in the global router network.
- belong to the RFC 1918 private address range:
-
Enter a 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 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, in the top menu, click Products → Global Router → router page → Network map.
4. Assign an IP address to the dedicated server
Configure a local port on the dedicated server that is connected to the global router network. Assign an IP address from the 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 a route on the dedicated server
On the server, you need to configure a static route to the file storage subnet that you connected to the global router in step 3.
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. Specify a route in the file storage subnet
In the file storage subnet that you connected to the global router in step 3, you need to configure a static route to the dedicated server subnet that you connected to the global router in step 2.
Use the Configure static routes on subnet section of the Static routes instructions.
7. Create file storage
Control panel
OpenStack CLI
Terraform
-
In the Control panel, in the top menu, click Products and select File Storage.
-
Click Create storage.
-
Enter a storage name or leave the name that is automatically created.
-
Select the location where the storage will be created.
If you need to increase the disk space of a cloud server or Managed Kubernetes cluster using file storage, select the location where the server or cluster is located. To increase the disk space of dedicated servers, file storage can be created in any location.
If you plan to use storage for backups, we recommend choosing a location different from the main infrastructure location to improve fault tolerance.
-
Fill in the blocks:
-
Check the price of the file storage.
-
Click Create.
Subnet
-
Select the private subnet of the file storage that you connected to the global router in step 3. Once the storage is created, the subnet cannot be changed.
-
Enter a private IP address for the storage or leave the first available address from the subnet, which is assigned by default. You will not be able to change the IP address after the storage is created.
Settings
-
Select the file storage type:
- HDD Basic,
- SSD Universal,
- SSD Fast.
Once created, the storage type cannot be changed.
-
Specify the storage size: from 50 GB to 50 TB. After creation, you can increase the file storage, but cannot decrease it.
-
Select a protocol:
- NFSv4 — for connecting storage to servers running Linux and other Unix systems;
- CIFS SMBv3 — for connecting storage to Windows servers.
Once created, the protocol cannot be changed.
Access rules
NFSv4
CIFS SMBv3
-
Configure access rules for the file storage:
- accessible by everyone — the storage will be accessible from any IP address in the private subnet where it is created;
- access restricted — the storage will be accessible only to specific IP addresses or private subnets. If you create file storage without rules, access will be restricted for all IP addresses.
-
If you selected the Restricted access option, click Add rule.
-
Enter the IP address or CIDR of the private subnet and select the access level.
After creating the storage, you can configure new access rules.
8. Mount the file storage to the dedicated server
The mounting process depends on the operating system on the server and the file storage protocol: NFSv4 or CIFS SMBv3.
NFSv4
CIFS SMBv3
Linux
Windows
-
Open the CLI.
-
Install the package for working with the NFS protocol:
sudo apt install nfs-common -
Create a folder for mounting the storage:
sudo mkdir -p /mnt/nfs -
Mount the file storage:
sudo mount -vt nfs "<filestorage_ip_address>:/shares/share-<mountpoint_uuid>" /mnt/nfsSpecify:
<filestorage_ip_address>— IP address of the file storage. You can find it in the control panel: in the top menu, click Products → File Storage → storage page → Settings tab → IP field;<mountpoint_uuid>— mount point ID. You can find it in the control panel: in the top menu, click Products → File Storage → storage page → Connection section → GNU/Linux tab.