How to create working Bridge Hetzner server

airborne

New Member
Jan 23, 2021
3
3
3
28
Hi Guys,

Im new to proxmox and wanna try it out, but i cant get it to work. It is installad and running on my hetzner server, i have 2 additional IPs with sep mac addresses.
I have read hetzners own guide and tryed it without any success. I want to run 1 windows machine and 1 linux machine on my server. the problem i have is creating those bridges. None of my VMs gets a internet connection.

I have my network device from my fresh install as followed
nätverk 1.png


But how am i suppose to configure the vmbr0 and assign it the additional IP i want for the VM?
 
Yes i have the current config as followed

<----Host server---->

### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp0s31f6
iface enp0s31f6 inet static
address xx.xxx.101.96
netmask 255.255.255.192
gateway xx.xxx.101.65
# route xx.xxx.101.64/26 via xx.xxx.101.65
up route add -net xx.xxx.101.64 netmask 255.255.255.192 gw xx.xxx.101.65 dev enp0s31f6

iface enp0s31f6 inet6 static
address xxxx:xxx:2b:149f::2
netmask 64
gateway fe80::1

auto vmbr0
iface vmbr0 inet static
address xx.xxx.101.96
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
pre-up brctl addbr vmbr0
#each additional IP is listed here
up ip route add xx.xxx.101.72/32 dev vmbr0
up ip route add xx.xxx.101.74/32 dev vmbr0


<----VM---->

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address xx.xxx.101.72/32
# --- BEGIN PVE ---
post-up ip route add xx.xxx.101.96 dev eth0
post-up ip route add default via xx.xxx.101.96 dev eth0
pre-down ip route del default via xx.xxx.101.96 dev eth0
pre-down ip route del xx.xxx.101.96 dev eth0
# --- END PVE ---

I have also enabled the ip forwarding in systcl.


Where can i see if my configuration is right? maybe something else is wrong?
 
Finally after about +50 hours of reading, i made some progress now.
I made come changes to /etc/network/interfaces, this is the new file:


### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp0s31f6
iface enp0s31f6 inet static
address xx.xxx.101.96
netmask 255.255.255.192
pointopoint xx.xxx.101.65
gateway xx.xxx.101.65

iface enp0s31f6 inet6 static
address 2a01:4f9:2b:149f::2
netmask 64
gateway fe80::1

auto vmbr0
iface vmbr0 inet static
address xx.xxx.101.96
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
#each additional IP is listed here
up ip route add xx.xxx.101.72/32 dev vmbr0
up ip route add xx.xxx.101.74/32 dev vmbr0

This Routed setup works fine with linux VMs so far. I also removed the seperat mac addresses at hetzner.
Hopefully this will also work with a windows VM aswell.


Thanks for the input guys!
 
@airborne
Could you help me a bit with your setup?

1. Did you change anything in the proxmox gui?
2. Did you leave the same VM settings as listed above?

Thanks
 
also i didn't understand anything about how to configure on hetzener. never had so many doubts. I required 2 switches to redundant the lan network on 2 10gbit nic ports with bond active/backup. so far everything ok. then i got to the additional ip and i got stuck. they say to use their vswitch and to bind ip to servers on a vlan, but where does this vlan come from? and in case of HA, the ip remains on the server down?
 
Last edited:

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!