1
High availability / Multi VLAN + Dlink 1510 Managed Switch issues
« on: August 23, 2023, 01:47:11 am »
Hi there, I need a bit of help configuring VLAN with Dlink 1510 managed switches
I have 2 OpnSense boxes configured in HA.
The Boxes have 4 lan ports
The ports are configured as follows:
LAN1->VLAN10 (Access Mode)
LAN2->VLAN20 (Trunk)
LAN2->VLAN21 (Trunk)
LAN3->VLAN30 (Trunk)
LAN3->VLAN31 (Trunk)
LAN4->VLAN40 (Access Mode)
Opnsense and the switches are working fine until the traffic is originated from PC connected to the switches, but when I try to access an internal network PC, opening a port with port mapping, the packets from the OPN Sense are not reaching the internal PC.
Routes and al settings are fine, I can actually reach an internal VOIP phone, configured as voice VLAN, but when I try to access a PC, the packets seems to be dropped somewhere between the OpnSense and the switch.
I did many test, and nailed the issue to one of these 2 cases:
a) opnsense is not setting the VLAN tag in the forwarded packets
b) if opnsense is properly setting the VLAN tag BUT the DLink switch is not respecting the VLAN port rules
To pinpoint this issue I need a way to inspect the packets that have leaving the opnsense towards the switch and see if they have the VLAn tag (or if they don't have it).
Is there any way to see these packets using the opnsense diagnostic tools?
Can someone point me to the proper tool?
Thanks in advance!
I have 2 OpnSense boxes configured in HA.
The Boxes have 4 lan ports
The ports are configured as follows:
LAN1->VLAN10 (Access Mode)
LAN2->VLAN20 (Trunk)
LAN2->VLAN21 (Trunk)
LAN3->VLAN30 (Trunk)
LAN3->VLAN31 (Trunk)
LAN4->VLAN40 (Access Mode)
Opnsense and the switches are working fine until the traffic is originated from PC connected to the switches, but when I try to access an internal network PC, opening a port with port mapping, the packets from the OPN Sense are not reaching the internal PC.
Routes and al settings are fine, I can actually reach an internal VOIP phone, configured as voice VLAN, but when I try to access a PC, the packets seems to be dropped somewhere between the OpnSense and the switch.
I did many test, and nailed the issue to one of these 2 cases:
a) opnsense is not setting the VLAN tag in the forwarded packets
b) if opnsense is properly setting the VLAN tag BUT the DLink switch is not respecting the VLAN port rules
To pinpoint this issue I need a way to inspect the packets that have leaving the opnsense towards the switch and see if they have the VLAn tag (or if they don't have it).
Is there any way to see these packets using the opnsense diagnostic tools?
Can someone point me to the proper tool?
Thanks in advance!