I need help installing a /27 subnet for proxmox on hetzner

blcksys

New Member
Sep 13, 2019
20
0
1
36
As the title says, I need some help installing the subnet from hetzner...
I got a /27 subnet with 30 usable IPs, however, the network on the host server works fine, the VMs instead doesn't have any internet access or network access.

Those are my configs:

Host
Code:
### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto ens4
iface ens4 inet static
  address 88.198.xxx.xxx  #host IP
  netmask 255.255.255.224
  gateway 88.198.xxx.yyy  #gateway IP
  up route add -net 88.198.xxx.zzz netmask 255.255.255.224 gw 88.198.xxx.yyy dev ens4

iface ens4 inet6 static
  address xxxxxxxxxx::2  #default by hetzner
  netmask 64
  gateway zzzzzzzzzzz  #default by hetzner

auto vmbr0
iface vmbr0 inet static
  address 88.198.xxx.xxx  #default hetzner IP from host
  netmask 255.255.255.224
  bridge_ports none
  bridge_stp off
  bridge_fd 0
  bridhe_maxwait 0

  #routes subnet
  up route add -host 188.40.sss.xx1 dev vmbr0  #1 available IP from subnet
  up route add -host 188.40.sss.xx2 dev vmbr0  #2 available IP from subnet
  up route add -host 188.40.sss.xx3 dev vmbr0  #3 available IP from subnet
  up route add -host 188.40.sss.xx4 dev vmbr0  #4 available IP from subnet
  up route add -host 188.40.sss.xx5 dev vmbr0  #5 available IP from subnet
  up route add -host 188.40.sss.xx6 dev vmbr0  #6 available IP from subnet
  up route add -host 188.40.sss.xx7 dev vmbr0  #7 available IP from subnet
  up route add -host 188.40.sss.xx8 dev vmbr0  #8 available IP from subnet
  up route add -host 188.40.sss.xx9 dev vmbr0  #9 available IP from subnet
  up route add -host 188.40.sss.x10 dev vmbr0  #10 available IP from subnet
  up route add -host 188.40.sss.x11 dev vmbr0  #11 available IP from subnet
  up route add -host 188.40.sss.x12 dev vmbr0  #12 available IP from subnet
  up route add -host 188.40.sss.x13 dev vmbr0  #13 available IP from subnet
  up route add -host 188.40.sss.x14 dev vmbr0  #14 available IP from subnet
  up route add -host 188.40.sss.x15 dev vmbr0  #15 available IP from subnet
  up route add -host 188.40.sss.x16 dev vmbr0  #16 available IP from subnet
  up route add -host 188.40.sss.x17 dev vmbr0  #17 available IP from subnet
  up route add -host 188.40.sss.x18 dev vmbr0  #18 available IP from subnet
  up route add -host 188.40.sss.x19 dev vmbr0  #19 available IP from subnet
  up route add -host 188.40.sss.x20 dev vmbr0  #20 available IP from subnet
  up route add -host 188.40.sss.x21 dev vmbr0  #21 available IP from subnet
  up route add -host 188.40.sss.x22 dev vmbr0  #22 available IP from subnet
  up route add -host 188.40.sss.x23 dev vmbr0  #23 available IP from subnet
  up route add -host 188.40.sss.x24 dev vmbr0  #24 available IP from subnet
  up route add -host 188.40.sss.x25 dev vmbr0  #25 available IP from subnet
  up route add -host 188.40.sss.x26 dev vmbr0  #26 available IP from subnet
  up route add -host 188.40.sss.x27 dev vmbr0  #27 available IP from subnet
  up route add -host 188.40.sss.x28 dev vmbr0  #28 available IP from subnet
  up route add -host 188.40.sss.x29 dev vmbr0  #29 available IP from subnet
  up route add -host 188.40.sss.x30 dev vmbr0  #30 available IP from subnet


iface vmbr0 inet6 static
  address xxxxxxxxxx   #same as host default by hetzner
  nemast 64

This is from the Guest

Code:
# Loopback device:
auto lo
iface lo inet loopback
iface lo inet6 loopback

allow-hotplug ens18
iface ens18 inet static
  # Single Host IPv4 address
  address   188.40.sss.xx1  #first subnet IP available
  netmask   255.255.255.255
  gateway   88.198.xxx.yyy  #default hetzner gateway IP
  pointopoint 88.198.xxx.yyy   #default hetzner gateway IP

iface ens18 inet6 static
  address xxxxxxxxxx::3   #next available IPv6 from default host
  netmask 64
  gateway xxxxxxxxxx::2   #default IPv6 from default host

I can ping the host IP from the guest, however, no internet access

I've been searching for hours on google, tutorials and whatsover.. can't find any resolution.

Those are my details for the subnet:

Code:
Subnet: 188.40.sss.xxx
Netmask: 255.255.255.224
Broadcast: 188.40.bbb.xxx

What do I have to do?
 
It would be interesting to know what the cause was and how you solved it :)

Please be so kind and set the thread to solved by editing the first post you can select the prefix next to the title. Thanks!
 
My configuration was for single IPs and not subnet
Switching the configuration to subnet worked fine (hetzner docs)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!