Home Technical Custom ISO installation – configure gateway

Custom ISO installation – configure gateway

Last updated on Sep 24, 2025

Doing a manual installation via ISO you will have to configure the default gateway yourself.

This guide explains how to set up the default gateway manually.

Prerequisites:

The new ISO image must have been mounted

You must have performed a restart on your server After the server’s restart, you have to complete the image installation via the VNC console.

You can open the console by clicking the VNC button on your control panel non your server page at https://my.servers.guru.

Configuring the default gateway:

During the installation

When you open the console as explained above, it will view the installation.

Please use the below information:

The gateway is your ip address with .1 as the last digit.

Example: 185.198.234.54
gateway: 185.198.234.1

The exception for that is if you are VPS / server is located in Germany or Finland.

Then your gateway will be : 172.31.1.1

After the installation

To Connect to the server after the installation, you can use a normal CLI again, instead of the VNC console.

To change the default permanently after the installation, you will have to edit the network configuration.

Ubuntu/Debian

Ubuntu 18.04 and newer

Ubuntu 18.04 (and newer) uses netplan, which is different to the older configurations of Ubuntu.

Open the .yml file in the /etc/netplan/ folder:

nano /etc/netplan/50-cloud-init.yaml

Edit the file:

network:
     version: 2
     ethernets:
         eth0:
             addresses:
             - {{ your ipv4 address}}/32
             match:
                 macaddress: bc:24:11:9a:4c:97
             nameservers:
                 addresses:
                 - 9.9.9.9
                 - 149.112.112.112
                 search:
                 - servers.guru
             routes:
             -   on-link: true
                 to: default
                 via: {{your ipv4 gateway}}
             set-name: eth0

Once you are done, you can use CTRL + X to exit the file, Y to save the file and ENTER to confirm.

Debian 9 or newer / Ubuntu 16.04

Open the configuration file in the /etc/network folder:

nano /etc/network/interfaces

Edit the file:

Replace eth0 with the network interface of your vps ( you can find it by using the command ip addr)

auto eth0

iface eth0 inet static
    address {{your ipv4 address}}/32
    gateway {{your ipv4 gateway}}

Once you are done, you can use CTRL + X to exit the file, Y to save the file and ENTER to confirm.