OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: dev4openid on March 09, 2024, 10:25:43 PM

Title: VLAN issues where MACs are not sticky [ SOLVED ]
Post by: dev4openid on March 09, 2024, 10:25:43 PM
Hi,
Warning: Noobie here and learning.

I have 24.1.3_1 running, and it is petty good  :)  (Been a learning curve!)

I have a simple arrangement of ISP---- > OPNSense -----> netgear GS108T smart switch-----> with 1x Macminis and 1 PC

At the moment, everything is running as 192.168.1.x space
I have defined a number of VLANS.
Now I have taken the PC and assigned it a 192.168.20.x IP in the DHCP definition for the VLAN (i.e. moved PC to VLAN USERS)
I have included that the Firewall has a rule that allows access to the internet from the VLAN

Problem is, the PC cannot connect to the internet via the VLAN; (when the IP is 192.168.20.x) and defers back to an IP 192.168.1.y (I can manually force the IP to 192.168.20.x

So, can somebody confirm that I have to create VLAN definition in switch to enable PC to "bind" to VLAN or not? So that the PC can access the internet)

The corollary is that if I only had a simple switch (and not a smart switch) then I cannot have VLANs.

Is this correct?




Title: Re: VLAN issues where MACs are not sticky
Post by: Patrick M. Hausen on March 09, 2024, 10:36:37 PM
Correct. Tagged VLANs exist on the link from OPNsense to switch. The switch must assign these VLANs to individual ports without tags, so client devices end up "in" the proper VLAN.
Title: Re: VLAN issues where MACs are not sticky
Post by: dev4openid on March 09, 2024, 10:45:43 PM
Hi,

OK got it. Next steps I have to do!  ::)

Thanks!  ;D