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
Virtual Machine Config Interfaces (Debian 10)
I hope my post is understandable, my english is unfortunately not the best.
Thank's in advance and many greetings
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