[SOLVED] Networkconfig for VM

Meso

Member
Aug 1, 2020
11
1
23
28
Hey gues,

my host is Hetzner and I can't get the network config exactly according to the instructions. The IP for the VM is pinging but the VM itself is not accessible, someone has an idea?


Code:
# /etc/network/interfaces
### Hetzner Online GmbH - installimage
# Loopback device:
auto lo
iface lo inet loopback

# device: enp4s0
auto enp4s0
iface enp4s0 inet static
  address 176.9.76.*
  netmask 255.255.255.255
  pointopoint 176.9.76.161
  gateway 176.9.76.161


# for one-ips
auto vmbr0
iface vmbr0 inet static
  address 176.9.76.*
  netmask 255.255.255.255
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  up ip route add 176.9.76.*/32 dev vmbr0

VM Networkconfig

Code:
source /etx/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto ens18
iface ens18 inet static
        address 176.9.76.*
        netmask 255.255.255.255
        pointoopint 176.9.76.*
        gateway 176.9.76.*
        nameserver 8.8.8.8