Having trouble getting VLANs working on SG-2100
-
Hello and thanks in advance for any help!
I have read:
https://docs.netgate.com/pfsense/en/latest/solutions/netgate-2100/switch-overview.html
https://docs.netgate.com/pfsense/en/latest/solutions/netgate-2100/configuring-the-switch-ports.htmlIm trying to configure a very basic setup of two VLANs: 10 and 20.
I have the VLANs created and the 'switch' on the SG-2100 in 802.1q and configured.
The VLANs have been created in the interfaces and assigned.
Both of the interfaces are enabled and addressed
VLAN 10: 10.110.10.254
VLAN 20: 10.110.20.254DHCP has been enabled for both VLANs and a single fully permissive firewall rule has been created for both VLANs as well.
I have VLAN 10 and 20 as tagged on ports 5 (the uplink port) and 1, the LAN port going to the Aruba.
The SG-2100 LAN port 1 --> Aruba on port 33 which has VLAN 10 and 20 as tagged.
I have port 1 on the Aruba untagged on VLAN 10
I have port 2 on the Aruba untagged on VLAN 20When I patch a laptop into port 1 on the Aruba I get an address from DHCP.
I do not when I patch into port 2.Ive read dozens of forum posts at this point and documentation and Im out of ideas!





-
@bigups43 said in Having trouble getting VLANs working on SG-2100:
When I patch a laptop into port 1 on the Aruba I get an address from DHCP.
I do not when I patch into port 2.The 2100 VLAN setup looks fine to me. I don't know Aruba but after a bit of internet search, it looks ok, VLAN 1 access ports on ports 3 to 52 and port 1 and 2 are not part of that VLAN 1.
And VLAN 10 access port on port 1 and tagged on 33 and 35. Is there no 'no untagged' necessary for the rest of the port range (I really have no clue)?Can you show the full permission firewall rules and the DHCP config for the two VLANs?
Do you get an IP from the correct VLAN10 subnet when connected to port 1?
-
@bigups43 Since you are uplinking to a proper switch and intend to carry all VLANs on that uplink, I would very much advice not to use 802.1q mode on the 2100 and simply pass packets from mvneta1 (the builtin uplink) to the builtin 4 switchports untouched. The builtin Marvell switch is “dumb” anyways and passes everything if it’s not in 802.1q mode - as if it’s not there.
So your life becomes infinitely easier by only have to worry about MVneta1 and the Aruba switch uplink ports needs to configured identically.In your case thats: VLAN 1 (LAN) untagged, vlan 10 (DATA) and 20 (GUEST) tagged as they already are. Simply disable 802.1q mode and reboot (The reboot is needed even though its not stated), and it will work as intended.
-
@keyser Thanks for the reply! I did in fact get it working previously with the method you suggested. I have two of these devices which I would like to put in an HA pair so I switched to the 802.1q method because I think thats the only way to get the ports to act as 'discrete' ports which is what I would need to set up a SYNC port for HA. Is that not correct? Can I handle VLANs in the manner you suggest and still configure a SYNC port for HA?
-
@patient0 Thanks for the reply! Yes, 'no untagged' is just Arubas way of saying that a different VLAN is set as untagged on those ports so the native VLAN of 1 is not configured there.
I do get an IP from the correct VLAN 10 subnet as configured in DHCP.
Firewall rules and DHCP config pics below:

-
Some general observations :
Rules on the GUEST are fine (all IPv4 traffic) but look at the counters :

0/0 means : not one single bit ever entered this interface.
Is it connected ?
Do you have DHCP server activated on the QUEST interface (a guest interface should have a DHCP server, as guests don't know 'sh*t about setting up static IP configuration' ^^)).You use VLANs, and these need settings on two sides : pfSense : you've showed them.
But there is also the other side : a VLAN capable devices like a 'smart switch' or something else that handles VLAN wrapping/unwrapping.
We can only presume these are correct ....And then there is this :
( Disclaimer : I never used VLAN as it's to PITA )I see this :

And you've said :
@bigups43 said in Having trouble getting VLANs working on SG-2100:VLAN 10: 10.110.10.254
VLAN 20: 10.110.20.254instead of asking snmp, can you fact check with with the big chief ?
Type :ifconfig?
and I see this (the DATA interface - DHCP server settings ) :

the DHCP server indicates that the available IP pool range is ....1 to 254, that's the entire /24.
So .254 is available in the pool. Should be '.253' as .254 is used by the pfSense) interface itself. -
UPDATE: I restarted the switch and my config works now of course. I added a third VLAN to verify and it worked. Thanks for the help everyone!