By default, all our servers get their IP Address with DHCP protocol automatically. Unfortunately, DHCP only supports single IP Address. Therefore, if you add more, manual attention is required.
The first step you should do is to change the DHCP configuration to manual IP configuration, keeping all the same settings as it was during DHCP working. After that, you can add more IP Addresses.
Our Control Panel list IP Addresses in the following form - 1.2.3.4/24, where 1.2.3.4 stands for address, and /24 is network size (netmask). *nix systems list it as is. If you run Windows, netmask of /24 - stands for 255.255.255.0, and a netmask of /23 - stands for 255.255.254.0.
You should not specify any gateways for additional IP Addresses, first gateway from DHCP setup will do it all. However, in case you need it specified for some reason, it is always the first IP of any of our networks, that is a.b.c.1 for any /24 network as an example.
You can use any DNS servers you want, such as 8.8.8.8 (Google), 1.1.1.1 (Cloudflare) and so on. It will run smoothly and fine.
Should you want to use our DNS servers, these will be 94.249.192.20 and 94.249.192.25.
Approximate steps are listed as of these screenshots.
If you did something wrong and you lost network connection to your server, look at VNC settings in your Control Panel. This will help to access the server without network in operation.
Different kinds of Linux have different methods of configuring IP Addresses. All the ideas are the same, but details differ a lot.
If you have sudo distro, first do "sudo su" command to gain root access.
The first step is to check your current DHCP-assigned address with something like this:
ip a s | grep inet ip r l | grep default
The first command will give you your primary IP and netmask (inet x.x.x.x/y), the second one will give your default gateway (default via x.x.x.x) and currently working Ethernet device (dev NNN).
Then you should move these settings into static IP configuration.
For Ubuntu/Debian distros this will be something like /etc/netplan/01-netcfg.yaml file or anything you find like that in the same dir. Unfortunately, further actions are highly dependent on a specific linux distro. But the idea is the following,
before:
network: version: 2 ethernets: enp3s0: dhcp4: yes
after:
network: version: 2 ethernets: enp3s0: addresses: [1.2.3.4/24, 5.6.7.8/23] gateway4: 1.2.3.1 nameservers: addresses: - 8.8.8.8 - 8.8.4.4 - 1.1.1.1 search: [] optional: true
Please take attention to make spaces to preserve visual file structure, it is important! enp3s0 - is a working Ethernet device (from the command above).
After that you can try the settings, with "sudo service network-manager restart" or "netplan apply" or just reboot your server.
Generic manual is here - https://wiki.debian.org/NetworkConfiguration, scroll to the end.
Example of /etc/network/interfaces file for multiple IPs:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug enp3s0 iface enp3s0 inet static address 1.2.3.4/23 gateway 81.177.142.1 iface enp3s0 inet static address 5.6.7.8/24
After you did the settings, apply it with "service networking reload", or just reboot your server.
If you do not find anything like we displayed above, then you are using a distro that has it differently. Contact your distro manual.
If you did something wrong and you lost network connection to your server, look at VNC settings in your Control Panel. This will help to access the server without network in operation.