No DHCP on pfSense VLAN with Cisco Smart Switch
-
@cannondale well if pfsense never sees anything come in tagged 10, then how would its vlan 10 ever hand out a dhcp address.
You got something funky going on in your switch I would say.. Its not a difficult config..
pfsense -- untagged/vlan 10 tagged -- switch -- untagged vlan 10 -- client
Your saying client in another port that is just default vlan 1 and untagged work fine.. But its not tagging traffic to pfsense when it should on vlan 10.
I am with you that you shouldn't have to set pvid, and ok your switch cli doesn't show switchport mode access in the client.. But something is broken if pfsense is not seeing traffic.
Can you do a show vlan on your sg250? I can on my sg300
sg300-28#sho vlan Created by: D-Default, S-Static, G-GVRP, R-Radius Assigned VLAN, V-Voice VLAN Vlan Name Tagged Ports UnTagged Ports Created by ---- ----------------- ------------------ ------------------ ---------------- 1 1 S 2 Wlan gi7,gi14,gi24,gi26 gi5,gi9,gi11, S gi15-16,gi19 3 DMZ gi7,gi14,gi16 gi3,gi6,gi24 S 4 W_PSK gi5,gi7,gi9, gi27 S gi11-12,gi15-16, gi24 6 W_Guest gi5,gi7,gi9, gi2,gi18 S gi11-12,gi15-16, gi24 7 W_Roku gi7,gi9,gi11, gi8 S gi15-16,gi24 9 9 gi9,gi11,gi15-16, gi4,gi7,gi10,gi12, D gi24 gi14,gi17,gi20, gi26,Po1-8 10 disabled gi21-23,gi25,gi28 S 99 wan gi1,gi13 S 172 transit S sg300-28#
is your vlan 10 maybe disabled?
What does it show for pvid, I agree it should auto set to 10 when you set the port to access.
Do you have these tables in your gui - where you can see the pvid, and you that the vlan is operational, etc.
-
-
@cannondale Ok how would your untagged lan1 network even work with this setup.
Your pfsense is connected to port 1 right?
But you don't have vlan 1 on this port - so how is untagged traffic getting to pfsense you said you plugged into another port and got an IP on your lan network.
is that a UI, with the I meaning inactive..
edit: also where is your pvid listing? Your table shows a P for PVID, but your output doesn't show any - see how mine marks what the pvid
-
Yes pfSense is connected to port 1 of the switch. There are many other machines/devices currently connected to this switch on LAN1 (igb1). All work as expected and have been for months. Only the newly created VLAN10 on port 24 does not work.
I plugged the workstation (connect to port 24 (VLAN10)) into another switch port and got an DHCP IP as a test to confirm that the workstation was requesting an IP from DHCP on LAN1 (igb1).@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
also where is your pvid listing? Your table shows a P for PVID
Not sure why the GUI does not show the PVID in the table on the membership page.
However, it does show PVID under the Customer Mode if I select port 24 and display the membership port details page:I suspect that the GUI displays the PVID in the membership table depending on the port mode but that's just a guess!
-
@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
is that a UI, with the I meaning inactive..
Regarding, the I meaning inactive for port 1, I went into the Port to Lan settings for port 1 and found it was set to "Excluded". I changed it to "Untagged" as I believe that is what it should be. Although it did make any difference. All LAN1 traffic works as expected and VLAN10 still does not.
-
@cannondale well one thing for sure - not a fan of what I have seen of the sg250 cli vs gui ;)
Your table legend clearly shows that P would be for the pvid, yet it doesn't show it in the table. From your table vlan 1 on your port 1 is inactive and not even listed as operational on that port, so how would it work?
Here is what my opinion sofar - something wrong in your switch.. This isn't complicated - native vlan (which is working) comes in untagged, with a trunk port your your other vlans you setup on the trunk would be tagged.
Traffic coming in on an access port in vlan X should go out any other ports in vlan X be tagged or untagged via the settings on the port... So when your client sends a discover broadcast into a access port in vlan 10, it should come out the port that is marked to be tagged vlan 10..
Are you running maybe dhcp snooping/guarding?
-
@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
Are you running maybe dhcp snooping/guarding?
This is not an option in the GUI:
-
@cannondale well I am at a loss.. Other than the inconsistencies about your pvid, and showing vlan 1 inactive on your port 1, but your saying it works.. this is pretty basic stuff.
I have never had any issues setting tagged and untagged vlans on any cisco switch ever worked on, or even any other cheap vlan switch or any other..
Its just tagged or untagged..
But from your sniff if pfsense never sees traffic come in tagged, then no its not going to work.
Maybe someone with a sg250 will chime in on something we are missing..
-
Thanks for all your help johnpoz! Not sure where to go from here but will wait for others to hopefully chime in as you suggest.
-
@cannondale I would think someone around here would have a sg250 - @stephenw10 and crazy amount of stuff in his lab, or @Derelict also..
I even looked if I could get one off amazon for reasonable price ;) I don't mind having switches to play with on my shelf.. I got netgear, dlink, even crappy tplink that had all kinds of issues with vlan, not being able to remove vlan 1 - but they finally fixed that.. And even a unifi flex mini, etc. But my main switches are sg300, a 28 and 10 port..
With work have used pretty much every enterprise/smb switch under the sun and have never seen such an issue..
Trunk with native untagged vlan and then tagged vlan, device in on port untagged.. Its pretty basic stuff - so missing something stupid.. Does the port 24 work if you just set it back to vlan 1, maybe the port is bad?
-
I have created vlan 20 on switchport 22 as another test.
Do I need to add/configure VLAN20 in pfSense in order to run tcpdump?
-
@cannondale no you don't need to have it setup in pfsense to see the vlan tag with tcpdump -e
But now your port vlan membership looks better it doesn't have 1UI, still odd that it doesn't show the P for for which vlan is the pvid, even though it lists there at the top of the table in the legend that P would mean PVID.. so those 1U should show up as 1UP
-
Great! I'll give that a try.
@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
But now your port vlan membership looks better it doesn't have 1UI
I went into the Port to Lan settings for port 1 and found it was set to "Excluded". I changed it to "Untagged" earlier.
@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
still odd that it doesn't show the P for for which vlan is the pvid, even though it lists there at the top of the table in the legend that P would mean PVID.. so those 1U should show up as 1UP
Agreed! You would know better than me! Maybe a quirky Cisco thing! :)
I have only had this switch for about two months. I knew going in that Cisco UI's were a bit funky but it had the features that I was looking for! -
@cannondale never been a gui guy with most switches.. Other than the cheap 40$ vlan ones - so not sure how quirky cisco gui is, these sg300s are the first cisco switches have used a gui with.
I don't recall coming across and weirdness in the sg300 gui, even with previous firmwares - I think there was awhile that one specific feature page wouldn't work with firefox.. But don't recall if that went away with update to firefox, or update to firmware.. This firmware is dated, this switch is nearing eol, and its firmware has not been updated in quite some time. At least your sg250 firmware is recent..
-
@cannondale Can post the full running-config from the switch and the firewall rule(s) on the VLAN10 interface?
-
@marvosa he says he did post the config - but doesn't look full to me at all, maybe he snipped out stuff? Cuz its clearly missing a bunch of info..
Maybe maybe a "sho tech-support" would be good thing to take a look.
As to his rules on his vlan 10 interface, doesn't really matter at this point what those are - if his dhcp is enabled then their would be hidden rules to allow that, and doesn't matter what rules are there when he did his tcpdump -e and didn't see anything with vlan 10 tag.
-
@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
he says he did post the config - but doesn't look full to me at all, maybe he snipped out stuff? Cuz its clearly missing a bunch of info..
Yeah, I saw that. Agreed, it's clearly missing tons of info... was hoping to take a peek at the "full" config if possible. As mentioned, if a sh run doesn't get us there (and idk why it wouldn't), try attaching a show tech.
@johnpoz said in No DHCP on pfSense VLAN with Cisco Smart Switch:
As to his rules on his vlan 10 interface, doesn't really matter at this point what those are - if his dhcp is enabled then their would be hidden rules to allow that, and doesn't matter what rules are there when he did his tcpdump -e and didn't see anything with vlan 10 tag.
I don't disagree. I'm more curious than anything... considering on occasion... what's been stated doesn't always match up with what's actually been configured.... so putting eyes on it can be helpful.
TBH, if we're not seeing tagged vlan 10 traffic from the PFsense capture, then nothing's leaving the switch (or the capture was taken on the wrong interface). I'd personally do a write erase and re-configure the switch from the CLI. However, still curious to see the full config and the firewall rules regardless ;)
-
@marvosa said in No DHCP on pfSense VLAN with Cisco Smart Switch:
write erase and re-configure the switch from the CLI.
It sure couldn't hurt - its not like he has anything fancy already on there - looks like everything is just vlan 1.. So not like he would have to take down his whole network while he redoes some crazy config.
-
marvosa, thanks for chiming in. I copied the previously posted from a backup made in the GUI Administration | File Management | File Operations. If there is another way to produce a more complete file, let me know.
VLAN10 firewall rule below:
-
@cannondale said in No DHCP on pfSense VLAN with Cisco Smart Switch:
produce a more complete file, let me know.
a show run should give you the whole config..
Or a show tech-support would spit out everything..
So it doesn't page on you, not sure if works on sg250, but works on my sg300 I do a
term datadump
This prevents long outputs from stopping and have to hit key to see more, etc.