Networking

How to find the Default Gateway IP Address?

If your VPS is not reachable, please check your local network configuration settings. In most cases the default gateway address is missing in the configuration file on Debian-based distributions.

The usable IP addresses and necessary information about the network configuration (such as IP addresses or gateway address) can be found in our customer portal:

https://my.virtualhosts.de/cloud/ => Control => Server Information => IPv4/IPv6 Settings

To change the network configuration, please edit the file /etc/network/interfaces as in the example below:

auto lo
  iface lo inet loopback
auto eth0
  iface eth0 inet dhcp
  pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_dad
 iface eth0 inet6 static
 address 2a02:e00:fffx:13e::1/64
 iface eth0 inet6 static
 address 2a02:e00:fffx:13e::2/64
 ...
 iface eth0 inet6 static
 address 2a02:e00:fffx:13e::a/64
    up ip -6 route add 2a02:e00:fff0::1 dev eth0
    up ip -6 route add default via 2a02:e00:fff0::1

Ubuntu 18 IPv6 configuration

To change the network configuration, please edit the file /etc/netplan/50-cloud-init.yaml as in the example below:

network:
 version: 2
 ethernets:
     net0:
         addresses:
         - 130.xxx.xxx.xx/24
         - "2a02:e00:xxxx:xx::x/64"
         - "2a02:e00:xxxx:xx::x/64"
         [...]
         gateway4: 130.xxx.xx.x
         gateway6: "2a02:e00:xxxx::x"
         match:
             macaddress: xx:xx:xx:xx:xx:xx
         nameservers:
             addresses:
             - 8.8.8.8
             - 8.8.4.4
             search: []
         routes:
         - to: "2a02:e00:xxxx::/64"
           scope: link
         - to: "::/0"
           via: "2a02:e00:xxxx::"
           on-link: true
         set-name: net0

Check for syntax errors:

netplan try

Apply the changes:

netplan apply