[SOLVED] VM on vlan can't get IP address from OPNSense

ke5han

Member
May 5, 2020
8
3
8
43
I am trying to solve this problem for two days now, but still can't make it work.

I have two Proxmox 7 nodes in a Cluster (node1 and node2)

node1 has OPNSense installed
node1.png
vmbr0 is LAN and vmbr1 is WAN

/etc/network/interfaces

Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.2/24
        gateway 192.168.1.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

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


node2 only vmbr0 is usednode2.png

and there is a VM installed with VLAN10 tagging

/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.3/24
        gateway 192.168.1.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

switch is a HP 2810, but I just reset it to factory default and all ports are untagged, it's used as a unmanaged switch for now.

on OPNSense, I've enabled the vlan interface and DHCP also I've cloned the LAN ip4 firewall rule to the vlan.
but the problem is the vm can't get a IP in the 192.168.10.0 , if I manually assign an ip, it can't ping the 192.168.1.1 or the 192.168.10.1

what am I missing here? thanks.
edit1: I did reboot both nodes several times.
edit2: all the VMs use Intel1000 (e1000) model, if this makes any difference.

UPDATE: never mind, I made a mistake by letting the switch run unmanaged, once I tagged the ports, the vlan works now.
first time running more than 1 node of Proxmox, so complete forgot the traffic has to pass the physical switch.
 
Last edited: