Hetzner Network / Subnet + Additional IP

LycaKnight

Member
Mar 30, 2021
1
0
6
31
Hello,

i have one subnet and one additional IP.
I am trying to assign 2 network interfaces to a virtual machine.
One Interface with an IP from the subnet and one with the additional IP (different Gateway)
I have already tried a few things, but unfortunately nothing works yet.
How do I achieve my plan?

(IP changed)
Host Config Interfaces
auto enp5s0 iface enp5s0 inet static address 94.100.120.100 netmask 255.255.255.192 gateway 94.100.120.50 pointopoint 94.100.120.50 auto vmbr1 iface vmbr1 inet static address 176.2.110.20 netmask 255.255.255.248 bridge_ports none bridge_stp off bridge_fd 0 auto vmbr2 iface vmbr2 inet static address 94.100.120.100 netmask 255.255.255.192 bridge_ports none bridge_stp off bridge_fd 0 up ip route add 94.100.120.150/32 dev vmbr2

Virtual Machine Config Interfaces (Debian 10)
auto ens18 iface ens18 inet static address 94.100.120.150 netmask 255.255.255.192 gateway 94.100.120.100 pointopoint 94.100.120.100 auto ens19 iface ens19 inet static address 176.2.110.30 netmask 255.255.255.248 gateway 176.2.110.20

I hope my post is understandable, my english is unfortunately not the best.
Thank's in advance and many greetings
 

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!