I got some wonderful help in the last post I made, where I asked about trunking VLANs between VMs and physical hardware, and have things working at least now.
Question I have now..
Given the following interfaces file:
I have enp5s0 connected to my security DVR with the intent of being able to see within its physically separate internal camera network. The physical connection is untagged, but I want it going into VLAN 2. I've used "bridge-access" directive against the NIC, and this appears to work, and I've been able to create a VLAN in OPNsense VM that has a VirtIO NIC attached to the vmbr0 gateway.
The way I'm reading things here, however, suggests that setting bridge-access in enp5s0 doesn't filter out other tagged VLANs going across the bridge to the NIC. What other directives on the enp5s0 NIC should I set? I'm thinking it's probably bridge-vids ? But what about untagged traffic on the bridge? Will that be disregarded because I've set the untagged vlan ID explicitly?
(For those curious, enp8s0 is my WAN interface, but to rule out chances of its packets leaking around firewall, it's PCI mapped directly to firewall VM)
Question I have now..
Given the following interfaces file:
Code:
root@pve:/etc/network# cat interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
auto lo
iface lo inet loopback
iface enp4s0 inet manual
#Ethernet 1 - Admin LAN
iface enp5s0 inet manual
bridge-access 2
#Ethernet 2 - NVR
iface enp6s0 inet manual
#Ethernet 3
iface enp7s0 inet manual
#Ethernet 4
iface eno1 inet manual
#SFP+ 1
iface eno2 inet manual
#SFP+ 2
iface eno3 inet manual
#SFP+ 3
iface eno4 inet manual
#SFP+ 4
auto vmbr0
iface vmbr0 inet static
address 192.168.1.254/24
gateway 192.168.1.1
bridge-ports enp4s0 enp5s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#Default admin bridge
source /etc/network/interfaces.d/*
I have enp5s0 connected to my security DVR with the intent of being able to see within its physically separate internal camera network. The physical connection is untagged, but I want it going into VLAN 2. I've used "bridge-access" directive against the NIC, and this appears to work, and I've been able to create a VLAN in OPNsense VM that has a VirtIO NIC attached to the vmbr0 gateway.
The way I'm reading things here, however, suggests that setting bridge-access in enp5s0 doesn't filter out other tagged VLANs going across the bridge to the NIC. What other directives on the enp5s0 NIC should I set? I'm thinking it's probably bridge-vids ? But what about untagged traffic on the bridge? Will that be disregarded because I've set the untagged vlan ID explicitly?
(For those curious, enp8s0 is my WAN interface, but to rule out chances of its packets leaking around firewall, it's PCI mapped directly to firewall VM)
Last edited: