Are you always testing with just two devices? And only adding more VLANs to the bridge? Or are you adding more devices as well?It looks like you're trying to have OPNSense route inter VLAN traffic as well as cross VLAN traffic. Is there a specific use case for this? Why not use switches?
Quote from: CJ on October 10, 2023, 04:28:37 pmAre you always testing with just two devices? And only adding more VLANs to the bridge? Or are you adding more devices as well?It looks like you're trying to have OPNSense route inter VLAN traffic as well as cross VLAN traffic. Is there a specific use case for this? Why not use switches?Just two devices for now, one connected directly to LAN no vlan port and other connected to VLAN port , just adding more VLANs, no more devices yet, I am still trying to figure out the best setup So, I just want to go from device with VLAN outside , later I will have firewall rules to access some vlans from other VLANS, also I am getting way better performance if I joined the igb2 and igb3 into LAGG with LB instead of bridge , but still testing that, still nto sure what would be the best approach
Quote from: sherif on October 10, 2023, 04:34:20 pmQuote from: CJ on October 10, 2023, 04:28:37 pmAre you always testing with just two devices? And only adding more VLANs to the bridge? Or are you adding more devices as well?It looks like you're trying to have OPNSense route inter VLAN traffic as well as cross VLAN traffic. Is there a specific use case for this? Why not use switches?Just two devices for now, one connected directly to LAN no vlan port and other connected to VLAN port , just adding more VLANs, no more devices yet, I am still trying to figure out the best setup So, I just want to go from device with VLAN outside , later I will have firewall rules to access some vlans from other VLANS, also I am getting way better performance if I joined the igb2 and igb3 into LAGG with LB instead of bridge , but still testing that, still nto sure what would be the best approach Can you post a diagram? You didn't really answer my questions.Based on my understanding of what you've set up, I'm not surprised that a LAGG performs better than a bridge, as you're offloading the inter VLAN routing to an actual switch instead of trying to force OPNSense to do it.
The switch doesn't do LAGG, there is only one single cable to the switch I didn't use LACP, but here is a diagram I did try two tests " for vlans" one on LAGG LB device " switch connected only to 1 port and as far as I know LB doesn't require negotiation, not like LACP. 2nd test is VLAN on bridge igb2--> vlan0.1.40--->bridge0igb3--->vlan0.2.40--->bridge0Also single cable connectedLAGG perferomed much better than bridges, but direct LAN with no VLAN performed best
10 VLANs on each LAN port, 10 bridge interfaces ...Or buy a cheap 5- or 8-port switch like "anything from Ubiquiti". If you pick a model with PoE you can supply power to your APs on the go.
I do not experience loss of throughput when I use a single trunk interface to a switch or an LACP lagg to a pair of switches with FreeBSD and VLANs. Something else must be misconfigured in your setup. I grant that the bridge approach might become a performance bottleneck if you create 10 or more bridges. For a single one, also no noticeable degradation.All with 1 Gbit/s infrastructure. 10 Gbit/s might indead bring FreeBSD to its limits.
root@OPNsense:~ # iperf3 -c 192.168.1.214 -P4[...][SUM] 0.00-10.00 sec 1.10 GBytes 947 Mbits/sec 147 sender[SUM] 0.00-10.07 sec 1.10 GBytes 941 Mbits/sec receiver
iperf3 -c 192.168.1.214 -P4[...][SUM] 0.00-10.00 sec 1.10 GBytes 945 Mbits/sec 0 sender[SUM] 0.00-10.02 sec 1.10 GBytes 939 Mbits/sec receiver
iperf3 -c 192.168.1.214 -P4[...][SUM] 0.00-10.00 sec 1.10 GBytes 945 Mbits/sec 0 sender[SUM] 0.00-10.03 sec 1.10 GBytes 939 Mbits/sec receiver
I have this small desktop switch with Gbit throughput and interfaces and I just setup a new OPNsense installation - virtualised in bhyve, but network interfaces passed through.What I see in iperf3 on my Macbook Pro to/from that OPNsense:1. No VLAN, no bridge, OPNsense and Mac on same switch:Code: [Select]root@OPNsense:~ # iperf3 -c 192.168.1.214 -P4[...][SUM] 0.00-10.00 sec 1.10 GBytes 947 Mbits/sec 147 sender[SUM] 0.00-10.07 sec 1.10 GBytes 941 Mbits/sec receiver2. Tagged VLAN on OPNsense, untagged on Mac, both on same switch:Code: [Select]iperf3 -c 192.168.1.214 -P4[...][SUM] 0.00-10.00 sec 1.10 GBytes 945 Mbits/sec 0 sender[SUM] 0.00-10.02 sec 1.10 GBytes 939 Mbits/sec receiver3. Bridge on tagged VLAN on OPNsense, untagged on Mac, both on same switch:Code: [Select]iperf3 -c 192.168.1.214 -P4[...][SUM] 0.00-10.00 sec 1.10 GBytes 945 Mbits/sec 0 sender[SUM] 0.00-10.03 sec 1.10 GBytes 939 Mbits/sec receiverKind regards,Patrick