Proxmox with 2 NICs on 2 different subnets

proxmox_usr_2012

New Member
Jun 15, 2020
3
1
3
36
I know this question has been posted a thousand times, but I've been searching for an answer for the past three hours and I can't get this working. Maybe I just don't understand Proxmox networking, but basically what I'm trying to do is allow VMs on different bridges to get a DHCP lease from the DHCP server on that subnet.

I've got 4 ethernet ports on the server --> eno1, eno2, eno3, and eno4.

I've got the main IP address for the server on eno1, 192.168.3.30/24 and a bridge vmbr0 attached to eno1. This works fine, and any VMs I assign to vmbr0 get a DHCP lease from the DHCP server on the 192.168.3.0/24 subnet. I've created bridges for the remaining interfaces and I can ping the gateway for each subnet on the HOST, but I get nothing in the VMs assigned on those bridges.

I can't ping the GW for the respective subnet from inside the VM, and I get no DHCP lease either.

Here's the configuration:


Screenshot_2020-12-25 pve - Proxmox Virtual Environment.png

192.168.3.0/24 is on eno1

192.168.6.0/24 is on eno2

192.168.5.0/24 is on eno3

192.168.2.0/24 is on eno4

Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.3.30/24
        gateway 192.168.3.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge-ports eno2
        bridge-stp off
        bridge-fd 0
#WEBSERVER VLAN

auto vmbr3
iface vmbr3 inet manual
        bridge-ports eno3
        bridge-stp off
        bridge-fd 0
#MGMT VLAN

auto vmbr2
iface vmbr2 inet manual
        bridge-ports eno4
        bridge-stp off
        bridge-fd 0
#SECURITY VLAN

What am I doing wrong here?
 
I join the question of how to configure routing through 2 physical interfaces. 1 looks at the local network, the second - on the Internet. And there is a virtual machine that acts as a firewall, proxy and dhcp server for local net.
 
There are people who have the Proxmox host forward the traffic between the bridges.
I would rather go with a pfSense VM that handles the routing between the subnets.
The interface with vmbr0 would become WAN in pfSense and the other bridges would be LAN1, LAN2, etc. From there you can define your routing preferences.
 

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!