Private Network on Dedicated servers

In this article you will find all the necessary information regarding the Private Network, VLAN.

What is VLAN?

The benefits

How to set up VLAN

How to configure your server for VLAN

How to check for available hosts

What is VLAN?

A Virtual Local Area Network (VLAN) or a Private Network, is a group of servers that allows for communication between other servers within the same environment. Here, data is not sent via the public network; instead, it is transferred safely among virtual servers. The traffic among devices is split across two or more physical networks and with VLAN, that traffic is handled more efficiently.

Through virtualization, you’re able to effectively turn a single physical server into multiple virtual servers, each available for separate tasks and users.

The result? A VLAN that can be administered just like a local physical network.

The benefits

A Private Network has a wide range of benefits, such as the following:

  • Security. VLANs enhance network security. A separate system that transfers all the sensitive data within the internal network connection decreases the chances that people will gain access to information they are not authorized to see.
  • Fast data transfers. VLAN allows you to transfer data fast and securely when you use your own network. This improves performance and reduces latency.
  • Unlimited connections. You can connect as many Dedicated Servers as you’d like, without any impact on its level of speed and data traffic.
  • Bandwidth usage. VLANs free up bandwidth by limiting node-to-node and broadcast traffic throughout the network.
  • High performance. In networks where traffic consists of a high percentage of broadcasts and multicasts, VLANs can reduce the need to send this type of traffic to unnecessary destinations.
  • Virtual network. Setting up your own network allows you to place members of a workgroup together easily.
  • Easy management. Using a private network, a device can be located anywhere in the switched network and still belong to the same broadcast domain. You can move a user from one switch to another switch in the same network while keeping their original VLAN.

How to set up VLAN

Due to technical restrictions, a VLAN cannot be installed from your side.

If you would like to set up a Private Network for your Dedicated Server, please submit a ticket to Hosting – VPS and Dedicated Servers. Our Tech Support Team will gladly help you install VLAN for your servers to manage your own Private Network.

NOTE: VLAN can only be installed if you have two or more Dedicated Servers and only with the User-Responsible and Basic Server Management Types.

How to configure your server for VLAN

In order to assign a private IP address to the VLAN interface eth0 on our devices, follow these steps for the following operating systems (OS):


1. Check the contents of the eth1 interface:

cat /etc/netplan/01-netcfg.yaml

The following content of the YAML file should be present there:
  version: 2
  renderer: networkd
      dhcp4: no
      dhcp6: no
      addresses: []
        addresses: []

2. For our private interface eth0, we will copy /etc/netplan/01-netcfg.yaml to /etc/netplan/02-netcfg.yaml file with the following command:

cp /etc/netplan/01-netcfg.yaml  /etc/netplan/02-netcfg.yaml

3. After that, open the YAML file for eth0 (/etc/netplan/02-netcfg.yaml) with the editor of your choice (make sure to follow the rules of how to edit YAML documents).

NOTE: YAML is very strict with indentation and is case-sensitive, so please be attentive to the YAML syntax.

nano /etc/netplan/02-netcfg.yaml:

Replace the following text data:

eth1 >> eth0

addresses: [] >> addresses: []

4. Remove the lines:

nameservers block (including addresses that follows).

The configuration file should look as follows:

5. After the configuration file for eth0 has been created, disable the port eth0 with the command:

ip link set eth0 down

You can check the status of the interface with the following command:

ip link show eth0:

6. After forcing shutdown, apply the new configuration using the command:

netplan apply

7. Check if the IP address has been added to the interface:

ip a:

You will then need to check for eth0 at the output:

As long as the state is "UP" and set internal IP address is present, you are good to go.

8. On the host 2, perform the same operations, only set the internal IP address to another value, different from the existing hosts within the same subnetwork /24.

9. After the configuration has been performed on the both servers, ensure that the hosts are available for each other (link to the last section).


1. Check the contents of the interface’s configuration file:

cat /etc/network/interfaces

The initial file should contain the following information:

2. Open the file with your favorite text editor and amend the following lines to the end of the file:

nano /etc/network/interfaces

3. Add the necessary data and save the changes: 

auto eth0
iface eth0 inet static
name VLAN

The file should look as follows:

4. After that, restart the networking with the following command:

systemctl restart networking:

5. Once restarted, check the interface parameters:

ip a:

6. You will need to check for eth0 at the output:

As long as the state is "UP" and the set internal IP address is present, you are good to go.

How to check for available hosts

After the configuration has been performed on both servers, ensure that the hosts are available to each other by utilizing ping command and tcpdump:

 Server1: ping IP address

Server2: tcpdump -i eth0 icmp

And vice versa:

 Server2: ping IP address

Server1: tcpdump -i eth0 icmp

This wraps up the VLAN interface setup for your OS, which is based on two network hosts. For more than two network hosts, we recommend using the available IP address from a private subnet that is not assigned to the existing hosts.

Well done!

15237 times

Need help? We're always here for you.