Hetzner network setup help?

Swift

New Member
Apr 20, 2021
4
0
1
22
Hia.
So I recently installed proxmox on my hetzner dedicated server and I have been trying to get the networking working on the vms for the past 3 days.
Currently my vms cannot connect to the internet whatever I try.
I was following this guide: https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve

I have a main IP and bought a 6 ip block later so the ips are not the same

I am trying to use the bridged method.

This is my /etc/network/interfaces on the node itself

Bash:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto eno1
iface eno1 inet static
    address 135.181.142.136
    netmask 255.255.255.192
    gateway 135.181.142.129
    up route add -net 135.181.142.128 netmask 255.255.255.192 gw 135.181.142.129 dev eno1
        # route 135.181.142.128/26 via 135.181.142.129

iface eno1 inet6 static
    address 2a01:4f9:3a:1682::2
    netmask 64
    gateway fe80::1

# for a subnet
auto vmbr1
iface vmbr1 inet static
       address 65.21.113.64
       netmask 29
       bridge_ports none
       bridge_stp off
       bridge_fd 0

In the vms I had to manually configure it cause it was not working with dhcp
this is the config there:
Bash:
auto eno18
iface eno18 inet static
  address 65.21.113.64
  netmask 255.255.255.248
  pointopoint 135.181.142.136
  gateway 135.181.142.136

What am I doing wrong and how can I fix this?
 
netmask 29 is probably not a valid entry. Either it's /29 after address or 255.255.255.248.
Does a bridged setup work in Hetzner networks? Usually the Hetzner people around here use the NAT approach.
There should be tutorials available provided by Hetzner on how to setup networking with their servers.
 
Last edited:
netmask 29 is probably not a valid entry. Either it's /29 after address or 255.255.255.248.
Does a bridged setup work in Hetzner networks? Usually the Hetzner people around here use the NAT approach.
There should be tutorials available provided by Hetzner on how to setup networking with their servers.
Yeah it should be possible as they have it in the tutorial I linked.
Also a friend of mine uses it and I had his exact config and it was not working for me.
I also tried adding the /29 after the address and that didn't do anything either sadly
 
Hey there,

first of all I would suggest you to change the config of eno1
Code:
auto eno1
iface eno1 inet static
    address 135.181.142.136/32
    gateway 135.181.142.129
    pointopoint 135.181.142.129
    
iface eno1 inet6 static
    address 2a01:4f9:3a:1682::2/64
    gateway fe80::1

if your additional subnet is 65.21.113.64/29 you should use the following config

vmbr1 should look like this
Code:
auto vmbr1
iface vmbr1 inet static
       address 65.21.113.65/29
       bridge_ports none
       bridge_stp off
       bridge_fd 0

ans your VM config like this

Code:
auto eno18
iface eno18 inet static
  address 65.21.113.66/29
  gateway 65.21.113.65

did you enable routing on the hostsystem?

edit /etc/sysctl.conf
ans uncomment
Code:
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

note that you have to restart your host after changing this!
 
  • Like
Reactions: kolaps
Hey there,

first of all I would suggest you to change the config of eno1
Code:
auto eno1
iface eno1 inet static
    address 135.181.142.136/32
    gateway 135.181.142.129
    pointopoint 135.181.142.129
  
iface eno1 inet6 static
    address 2a01:4f9:3a:1682::2/64
    gateway fe80::1

if your additional subnet is 65.21.113.64/29 you should use the following config

vmbr1 should look like this
Code:
auto vmbr1
iface vmbr1 inet static
       address 65.21.113.65/29
       bridge_ports none
       bridge_stp off
       bridge_fd 0

ans your VM config like this

Code:
auto eno18
iface eno18 inet static
  address 65.21.113.66/29
  gateway 65.21.113.65

did you enable routing on the hostsystem?

edit /etc/sysctl.conf
ans uncomment
Code:
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

note that you have to restart your host after changing this!
Thank you, I got it to work now, but doesn't it use the routed config instead of bridged now?

And is there any way to make it work with DHCP or is that not possible with proxmox?

EDIT: I cannot install debian
1618996494491.png
 
Last edited:
hey,
the debian setup is sometimes a bit strange...
how did you configure the installer?

you can setup a DHCP Server on your hostsystem...

you can only use bridge mode on a hetzner server, if you are using single additional IPs with MAC-Addresses
everything else need to be routed Setup.

but whats the problem by using the routed Setup?
I think the routed setup offers you much possibilities...
 
hey,
the debian setup is sometimes a bit strange...
how did you configure the installer?

you can setup a DHCP Server on your hostsystem...

you can only use bridge mode on a hetzner server, if you are using single additional IPs with MAC-Addresses
everything else need to be routed Setup.

but whats the problem by using the routed Setup?
I think the routed setup offers you much possibilities...
How would I set up a DHCP server?

and okay I will try the routed setup. I just thought the bridged was better
 

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!