Help me with linux bridge and vm network interface configuration

Ragnarokkr.Xia

Active Member
Jan 19, 2018
2
0
41
30
I hava an ONU stick (consider it an ethernet cable or fiber) plugged to Proxmox VE host, let's say through eth0, it's like I connected to an hybrid port of my ISP which provides internet service with no vlan tag and VOIP service with vlan tag 46.
I'm planning to host an Openwrt virtual machine which has three network interfaces, I want one of them connectes to the internet service and antoher to the VOIP service, transparently better (which means I configure the VLAN id in proxmox but not in the virtual machine).
Would someone please kindly tell me what to do? As far as I know, a linux bridge used to serve like a simple layer-2 switch but there's a VLAN aware mode in recent kernel releases. Can I make use of this mode?
 
Last edited:
I did something similar when I needed to split internet and VOIP traffic for my home lab. Just create a VLAN-aware bridge, tag VLAN 46 for the VOIP service, and leave the internet untagged. Then assign them to your OpenWrt VM interfaces. I had this running alongside a telxi SIP setup, and it worked cleanly without messing with VLANs inside the VM itself.
 
Last edited:
I hava an ONU stick (consider it an ethernet cable or fiber) plugged to Proxmox VE host, let's say through eth0, it's like I connected to an hybrid port of my ISP which provides internet service with no vlan tag and VOIP service with vlan tag 46.
I'm planning to host an Openwrt virtual machine which has three network interfaces, I want one of them connectes to the internet service and antoher to the VOIP service, transparently better (which means I configure the VLAN id in proxmox but not in the virtual machine).
Would someone please kindly tell me what to do? As far as I know, a linux bridge used to serve like a simple layer-2 switch but there's a VLAN aware mode in recent kernel releases. Can I make use of this mode?
Based on what i see... this should work.

Set your main bridge (vmbr0) to VLAN-aware and keep Internet untagged.

Then create eth0.46 for your VoIP VLAN and bridge it as vmbr1.

Attach your OpenWRT VM NICs to vmbr0 and vmbr1 accordingly — no VLAN setup needed inside OpenWRT.

This lets Proxmox handle the VLAN tagging transparently at Layer-2.

Please give it a try