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 configure private network connectivity at the L3 level via a global router.
Some Chipcore Line dedicated server configurations cannot be added to a global router network because they lack a port for connecting to a private network. You can check for the availability of a private network port in the control panel: in the top menu, click Products and select Dedicated Servers → Servers → server page → tab Ports.
-
Connect the network and subnet to the global router up to the dedicated server VLAN.
-
Connect the network and subnet for the 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 a gateway of192.168.0.1for the SPB-2 pool and172.16.0.0/29with a gateway of172.16.0.1for the ru-2 pool. -
Assign an address from the
192.168.0.0/29subnet to a dedicated server, for example,192.168.0.2. -
Specify a route on the dedicated server in the SPB-2 pool — to the
172.16.0.0/29subnet via the192.168.0.1. -
Create file storage in the
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. A limit of five global routers is set for each account.
- 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 or existing network to the router if it is not already connected to any of the account's global routers.
-
In the control panel, on the top menu, click Products and select Global Router.
-
Go to 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 Equipment service.
-
Select a location for the network.
-
Select or enter a VLAN.
-
If you want to create a network up 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/12or192.168.0.0/16; - have a size of at least
/29, as three addresses will be occupied by Servercore network equipment; - do not overlap with other subnets added to this router—IP addresses must not repeat across subnets on the same router;
- if a Managed Kubernetes cluster on cloud servers is included in 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/16and10.251.0.0/24. If a cluster on dedicated servers is included in the network — with ranges10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24and172.250.0.0/14. These subnets are used for 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 that 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 that 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.
-
If you specified a Q-in-Q tag in step 8, you need to enable Q-in-Q technology on the switch port and configure the private network interface that you specified in step 10. Learn more in the Configure Q-in-Q section of the Q-in-Q guide.
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 up to the cloud platform 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, from the top menu, click Products and select Global Router.
-
Open the router page → Networks.
-
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/12or192.168.0.0/16; - have a size of at least
/29, as 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 included in the global router network, the subnet must not overlap with the
10.10.0.0/16,10.96.0.0/12,10.250.0.0/16and10.251.0.0/24. If a cluster on dedicated servers is included in the network — with the10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24and172.250.0.0/14. These subnets are used for internal Managed Kubernetes addressing, and their use may lead to 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, from 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 joins the global router network. Assign an IP address to the port from the subnet that you connected to the global router for the dedicated server.
Ubuntu
Debian
CentOS
Windows
-
Open the
netplanutility configuration file with thevi: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>— the name of the private network interface;<ip_address>— the private IP address of the server with a subnet mask, for example192.168.0.2/24.
-
Press ESC.
-
Exit the
vitext editor with your changes saved::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 specify a static route to the subnet that you connected to the global router for file storage 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>— the subnet to which you need to add a route, specifying the mask, for example192.168.0.0/28;<gateway>— the gateway for the current server's subnet, which is 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 subnet that you connected to the global router for file storage in step 3, you need to specify a static route to the subnet that you connected to the global router up to the dedicated server VLAN in step 2.
Use the Configure static routes in a subnet section of the Static Routes instruction.
7. Create file storage
Control panel
OpenStack CLI
Terraform
-
In the Control panel, from the top menu click Products and select File Storage.
-
Click Create Storage.
-
Enter a name for the storage or keep the automatically generated one.
-
Select a location where the storage will be created.
If you need to increase disk space with file storage, select the location where your cloud server or Managed Kubernetes cluster is located.
If you plan to use the storage for backups, we recommend choosing a location different from your primary infrastructure location to increase fault tolerance.
-
Fill in the sections:
-
Check the cost of the file storage.
-
Click Create.
Subnet
-
Select a private subnet where the storage will be located. The subnet type depends on what you need to connect the storage to:
- cloud private subnet — the storage will be available for cloud servers and Managed Kubernetes clusters only in the pool you selected when creating the storage. To connect the storage, you will only need to mount it;
- global router subnet — the storage will be available for dedicated servers, as well as cloud servers and Managed Kubernetes clusters that are in other pools. To connect the storage, you need to configure network connectivity between the server or cluster and the storage via the global router. See examples of configuring network connectivity in the instructions in the Connect File Storage section.
Once the storage is created, the subnet cannot be changed.
-
Enter the private IP address for the storage or leave the first available address from the subnet, which is assigned by default. Once the storage is created, the IP address cannot be changed.
Settings
-
Select the file storage type:
- HDD Basic,
- SSD Universal,
- SSD Fast.
Once the storage is 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 you cannot decrease it.
-
Select a protocol:
- NFSv4 — for connecting storage to servers running Linux or other Unix-based OS;
- CIFS SMBv3 — for connecting storage to servers running Windows OS.
Once the storage is created, the protocol cannot be changed.
Access rules
NFSv4
CIFS SMBv3
-
Configure access rules for the file storage:
- accessible to everyone — the storage will be available for any IP address in the private subnet where it is created;
- access restricted — the storage will be available only for specific IP addresses or private subnets. If you create the file storage without rules, access will be restricted for all IP addresses.
-
If you selected Access restricted, 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 view it in the control panel: from the top menu, click Products → File Storage → storage page → Settings tab → IP;<mountpoint_uuid>— mount point ID. You can view it in the control panel: from the top menu, click Products → File Storage → storage page → Connection block → GNU/Linux.