Cloud-ISO installation - configure gateway

You can attach an ISO image to the virtual drive of your server via Cloud Console and API.

  • Doing a manual installation via ISO will cause some trouble with the automatic configuration via DHCP.
    You will therefore have to configure the default gateway yourself.
  • Doing a manual configuration via an installer is not possible.

 

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

 

Prerequisites:

  • The new ISO image must have been mounted

    To mount an image via the Cloud Console, select "ISO Images" in your server menu.

  • You must have performed a restart on your server

    After the server's restart, you have to complete the image installation via the console on Cloud Console. You can open the console on the top right of your server overview.

  • With Ubuntu, you can just wait for the installer to boot.

    With Debian, wait for the GRUB menu that appears after reboot. If "Graphical install" is highlighted as the default option, hit the tab key and edit the boot options.

    • Change the value of vga from "788" to "normal": vga=normal
    • Add fb=false

    It should now look similar to this, and you can hit enter to boot into the installer:

    /install.amd/vmlinuz vga=normal fb=false initrd=/install.amd/gtk/initrd.gz --- quiet

 


 

Configuring the default gateway

If you're using Ubuntu 20.04 (or newer) or Debian 9 (or newer), the interface name is ens3.

 

During the installation

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

Use the key combination ALT + to exit the installation view and change to the console view. If the view does not change, finish one or two installation steps and try again.

To activate the console, press ENTER.

ALT + will take you back to the installation view.

Execute the following commands in the console:

  • Server with IPv4 and / or IPv6

    $ ip address
    $ ip route add 172.31.1.1 dev ens3
    $ ip route add default via 172.31.1.1

    172.31.1.1 is a private IP address that you can copy directly with the rest.

    The first command will print all network interfaces.
    The second command specifies that the entire traffic is to be directed via the 172.31.1.1 gateway with the interface ens3.
    The third command defines 172.31.1.1 as the default gateway. This means, this gateway will automatically be used, unless stated otherwise.

    Your server now has a default gateway with the IP address 172.31.1.1.

With ip route show you can check if the changes were saved successfully.

Afterwards, use the key combination ALT + to go back to the installation view.

 

After the installation

To connect to the server after the installation, you can use a normal CLI again, instead of the console on Cloud Console.

After the installation, you could theoretically use the commands that were also shown for "during the installation". However, the changes would only be saved temporarily, and you would lose them with the next restart.

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

 

Ubuntu/Debian

 
Ubuntu 20.04 and newer

Ubuntu 20.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:

  • Replace eth0 with ens3
     network:
       version: 2
       renderer: networkd
       ethernets:
         ens3:
           addresses:
             - <IPv6 address>::1/64
           dhcp4: true
           routes:
           - to: default
             via: fe80::1

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

 
Debian 10 or newer

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

nano /etc/network/interfaces

Edit the file:

  • Replace eth0 with ens3
    auto ens3
    iface ens3 inet dhcp
    iface ens3 inet6 static
        address {{ IPv6 address of the server }}
        netmask 64
        gateway fe80::1

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

  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

Overview

Servers Cloud servers are virtual machines that run on physical servers and are used to run an...

Cloud Server rDNS

Cloud Server rDNS To set a reverse DNS (rDNS or PTR) entry for a cloud server, you first need to...

Deprecated server plans

Below is a list of old server plans that are deprecated and no longer available for order. To...

FAQ

What are the shared vCPU server plans? In plans (CX, CPX, CAX) with shared vCPU the compute...

Upgrading NAT network model

In order to be able to rescale or use advanced Cloud features like Networks or Firewalls, older...