Hi,
many of us run Proxmox VE on servers hosted by Hetzner. The network configuration is usually the most tricky part. I am going to post my network configuration here (real IPs changed). I hope it could help people in a similar situation. I also hope to get some feedback and constructive criticism.
If you also run PromoxVE at Hetzner, I am very interested in learning from your network config.
I always install Promox VE as follows:
- order server without OS, server will be in rescue mode when ready
- run stress-testing for 24h
- install debian minimal
- install pve following this Install Proxmox VE on Debian Buster - Proxmox VE
content of /etc/network/interfaces on pve host:
- content of /etc/network/interfaces of a VM connected to vmbr0:
- content of /etc/network/interfaces of a VM connected to vmbr4000 (public vSwitch):
- content of /etc/network/interfaces of a VM connected to vmbr4001 (private vSwitch):
many of us run Proxmox VE on servers hosted by Hetzner. The network configuration is usually the most tricky part. I am going to post my network configuration here (real IPs changed). I hope it could help people in a similar situation. I also hope to get some feedback and constructive criticism.
If you also run PromoxVE at Hetzner, I am very interested in learning from your network config.
I always install Promox VE as follows:
- order server without OS, server will be in rescue mode when ready
- run stress-testing for 24h
- install debian minimal
- install pve following this Install Proxmox VE on Debian Buster - Proxmox VE
content of /etc/network/interfaces on pve host:
Code:
auto lo
iface lo inet loopback
auto enp41s0
iface enp41s0 inet static
address X.Y.Z.150
netmask 255.255.255.192
gateway X.Y.Z.129
up route add -net X.Y.Z.128 netmask 255.255.255.192 gw X.Y.Z.129 dev enp41s0
# switch for extra public IPs: can be additional IPs of a server, or failover IPs
# ref: https://blog.no-panic.at/2016/08/09/proxmox-on-debian-at-hetzner-with-multiple-ip-addresses/
auto vmbr0
iface vmbr0 inet static
address 1.2.3.4
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0
bridge_maxwait 0
pre-up brctl addbr vmbr0
# single extra IP:
up ip route add 1.2.3.5/32 dev vmbr0
# switch connected to a vSwitch with a public subnet
# ref: https://www.razva.ro/how-to-setup-proxmox-with-hetzner-vswitch-and-public-ip/
iface enp41s0.4000 inet manual
auto vmbr4000
iface vmbr4000 inet manual
# net4000 public
bridge_ports enp41s0.4000
bridge_stp off
bridge_fd 0
mtu 1400
# switch connected to a vSwitch with a private subnet
iface enp41s0.4001 inet manual
auto vmbr4001
iface vmbr4001 inet manual
# net4001 private
bridge_ports enp41s0.4001
bridge_stp off
bridge_fd 0
mtu 1400
up ip addr add 192.168.30.11/24 dev vmbr4001
- content of /etc/network/interfaces of a VM connected to vmbr0:
Code:
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet static
address 1.2.3.5
netmask 255.255.255.255
post-up ip route add 1.2.3.4 dev ens18
post-up ip route add default via 1.2.3.4 dev ens18
- content of /etc/network/interfaces of a VM connected to vmbr4000 (public vSwitch):
Code:
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet static
address X.Y.Z.37
netmask 255.255.255.224
gateway X.Y.Z.33
mtu 1400
- content of /etc/network/interfaces of a VM connected to vmbr4001 (private vSwitch):
Code:
auto lo
iface lo inet loopback
auto ens18
iface ens18 inet static
address 192.168.30.121
netmask 255.255.255.0
gateway 192.168.30.1
mtu 1400