Proxmox multiple GWs alternative?

Oct 6, 2021
4
1
3
52
Hi!
We are migrating from VMware to Proxmox 6.4.x
We have a default Network setup on our Proxmox that works but need a secondary Nic, we call DMZ.

The setup in VMware works with the same connected network cables so I'm missing something config wise on the secondary Nic. I want it to use an alternative GW like the setup in VMWare without changing in the current FW/Route setup. I'm a newbe to this, sorry. :)

Code:
Proxmox ---> LAN ---> 192.168.100.x GW 192.168.100.2
        ---> DMZ ---> 192.168.200.x GW 192.168.200.2

network topo.png

From /etc/network/interfaces
Code:
auto eno2
iface eno2 inet manual

#LAN
auto vmbr0
iface vmbr0 inet static
        address 192.168.100.17/24
        gateway 192.168.100.2
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

#DMZ
auto vmbr1
iface vmbr1 inet static
        address 192.168.200.70/24
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0
 
It's not possible to have 2 default gw. Can you share your vmware setup ?

(Note that you don't need ip addr on vmbr, to have your vms working with their own ip/gateway. ips on vmbr are only used to managed your proxmox server)
 
Tha second gateway will be used for Proxmox itself or that DMZ network will be used by VMs only? If it's the latter, you dont need to setup IP/mask/GW in Proxmox, just connect the VMs to that vmbr1 interface and configure the VMs to use the DMZ network and gateway.
 
  • Like
Reactions: spirit
Ok, so can I have a more hands on example on this because all traffic from Proxmox is passed through the default GW if I understand correctly. Is the solution to not have a default GW? The system is already in production so can't play around with it to much, hehe.

So for example if I put a Linux machine in the 192.168.100.x network it also reaches the 192.168.200.x network.
But if I put a Linux machine in the 192.168.200.x network it will not through the network settings find it's way to the 192.168.100.x network.

The linux system is then configured to use the 192.168.200.1 GW and DNS.

1633619159837.png
 
Tha second gateway will be used for Proxmox itself or that DMZ network will be used by VMs only? If it's the latter, you dont need to setup IP/mask/GW in Proxmox, just connect the VMs to that vmbr1 interface and configure the VMs to use the DMZ network and gateway.
DMZ is for hosts only. Proxmox though have IPs in both as shown in the config above.
 
It's not possible to have 2 default gw. Can you share your vmware setup ?

(Note that you don't need ip addr on vmbr, to have your vms working with their own ip/gateway. ips on vmbr are only used to managed your proxmox server)
Thanks!
Then I can remove the one on vmbr1 the proxmox server is managed on the vmbr0 interface.

// J
 
  • Like
Reactions: spirit

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!