1 NIC, VLANs and WAN, LAN, VLAN OPNSense ...

Bytechanger

Member
Jan 19, 2022
41
1
13
46
Hi,

my proxmox server has only one nic.
I want to setup some vms wich uses vlans.
One ist OPNSense, so I want to get WAN over VLAN 99.

So, I think, I set my vmbr-bridge to vlan-aware and in VM for each VLAN a network-card.
vmbr-bridge is set to my nic.


I still have to adjust something to get/ transfer vlans over my nic?
It seems, that no vlan traffic passes to my vm.
Should I restart proxmox after settings?

Greets

Byte
 
You need to set the "VLAN tag" for each virtual NIC in the VMs Hardware tab. And of cause you need to setup your managed switch to use VLANs for the port too where you connect your PVE server to.
 
OK, thanks. That is, what I did.
Do I have to set something else on the nic "eno1"card (wich is set to vmbr) to get vlan?


Greets

Byte
 
Last edited:
No, you just need to configure your bridge, virtual NICs and the managed switch.

What does your "/etc/network/interfaces" look like?
 
Code:
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 172.30.90.90/24
        gateway 172.30.90.192
        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 none
        bridge-stp off
        bridge-fd 0
#11

auto vmbr2
iface vmbr2 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0
 
OK, thanks.
Now looking in switches, wich shows MAC in MAC table, so this works.
In my OPNSense (other PC) in log there are requests coming, but it seems, answer is blocked ?!


2022-01-31T09:57:21InformationaldhcpdDHCPOFFER on 10.1.3.20 to xx:xx:xx:xx:xx:xx (WinProx) via re1_vlan50
2022-01-31T09:57:21InformationaldhcpdDHCPDISCOVER from xx:xx:xx:xx:xx:xx (WinProx) via re1_vlan50

xx:xx:xx = MAC from Virtual Network in Win....

Win Network-auto doesn´t set an ip....

So is somthing is wrong/ blocking... ??

EDIT:
Setting ip manual to 10.1.3.22 and ping to 10.1.3.1 (OPNSense DHCP) is lost...


Greets

Byte
 
Last edited:
It seems somthing is blocking incoming (in proxmox) DHCP traffic and ALL other tcp traffic (no ping, vm->opnsense, opnsense->vm)

So i think:

vm ----DHCP--->opnsense WORK!! (logs in OPNSense)
vm <---DHCP--< opnsense doesn´t work

vm >--- PING ---> opnsense doesn´t work
vm <--- PING ---< opnsense doesn´t work
 

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!