Cant ping vlan on pf sense from any device?
-
@jarhead yes i dont know why it said that but it did.
here is a pic of pf sense pinging 20.1 IP
and here is that interface settings page w/no message at the top
-
@travelmore Yes, but that's after John had you bounce the interface. There's no way that "apply" button would be there if you clicked it. This would also explain why the interface had the "N/A" instead of an IP address.
-
@travelmore said in Cant ping vlan on pf sense from any device?:
literally on port8 on my netgear switch is the AP that my smart bulb vlan is plugged into
That is not how you have it draw at all - you show all your AP plugged into your cisco.
You show untagged vlan 20 on port 8 of your cisco, but how exactly does vlan 20 get there? You have no other ports in vlan 20..
If this netgear, and pvid on ports 4 and 8 are 1 then this is correct. if pfsense re0 is plugged in to port 4 and your AP is plugged into port 8
I am with @Jarhead as well, when you make a change to any gui page you have to hit save/apply etc..
A client connecting to your ssid for your smartbulbs should get vlan 20 address. Devices connecting to your other ssid without any vlan on it should be on your lan network.
Testing that vlan 20 is working, put a port on your netgear in vlan 20, untaggged, with pvid set to to 20. Plug in your laptop and it should get an IP on your vlan 20 network. And make sure you remove vlan 1 from this port.
-
@johnpoz and @Jarhead I checked. I think after we disabled and re-enabled that interface that fixed that issue because I see this now.
my apologies, i must have typo'd when i stated "literally on port8 on my netgear switch is the AP that my smart bulb vlan is plugged into", that was an incorrect statement, i meant literally on port 8 on my Cisco switch is the AP that has the smart bulbs wifi setup and on vlan 20.
on my netgear switch port 8 is only vlan20 so i could plug a PC in for testing purposes if needed.
i have tried again to connect my cell phone to the Smartbulbs ssid and it fails.
-
@travelmore said in Cant ping vlan on pf sense from any device?:
on port 8 on my Cisco switch is the AP that has the smart bulbs wifi setup and on vlan 20.
Well how exactly is vlan 20 going to get to that switch from pfsense.. If you only have 1 port in vlan 20?
See my little ascii drawing from before.
pfsense - 1U,20T -- netgear -- 1U,20T -- dumbswitch -- 1U,20T - cisco -- 1U,20T -- AP
-
@johnpoz I did not understand that drawing. but after looking at it again, i believe i have to set port 1 which connects my cisco switch to my dumb switch to be on vlan20 as tagged. then it should all work, right?
If that is correct. this is what i have done below
tried again to connect my phone to the smart bulbs ssid and no luck.
when i did make the change for the cisco switch i had to do that via concole cable because while i was trying it i lost connection and couldnt get back in, so i console-cabled in and grabbed that screenshot of the settings. after making those changes i am not able to remotely connect to my cisco switch via putty and i get network error: connection timed out but i am able to console cable in.
that being said, while consoled into my cisco switch, i cannot ping out at all.
i am not sure how to fix being able to remote into the cisco switch/ping from it now.
what i type in was:
conf t
then, interface f0/1
then switchport mode access
then switchport access vlan 20
then no shut
then exit
then ctrl z
then writethen i could'nt connect to cisco remotely (so i consoled in to get the screen shot above) and now i still cant connect remotely to my cisco switch.
Gosh, I am not sure what in the world happened from the settings i changed on my cisco switch as shown above.
i feel like im somewhat so close to getting this all figured out.now my cell phone is trying to connect to my normal network and says 'ready to connect when network quaility improves'.
what is next? what do i need to do?
thank you again for all your help. -
@travelmore As I showed vlan 1 untagged, this your lan.. And vlan 20 Taggged (1U, 20T).. In cisco lan this a trunk port. Not a access port..
If you do not understand what tag or untagged vlan is - your going to have a really hard time working with vlans..
sg300-10#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 V 2 Wlan gi9 gi8 S 3 DMZ gi2,gi9 gi7 S 4 W_PSK gi8-9 S 6 W_Guest gi8-9 S 7 W_Roku gi8-9 gi2,gi6 S 9 9 gi1,gi3-5,gi9-10, D Po1-8 10 disabled S sg300-10#sho run int gi9 interface gigabitethernet9 description "Uplink sg300-28" switchport trunk allowed vlan add 2-4,6-7 ! sg300-10#sho run int gi8 interface gigabitethernet8 flowcontrol on description "UAP-AC-Lite (Kitchen)" switchport trunk allowed vlan add 4,6-7 switchport trunk native vlan 2 ! sg300-10#
On port 8 I have native vlan 2 set because this is the vlan my AP are on for management which is untagged. I talk to the switches on vlan 9. You see that is untagged on port 9 which is port that connects to my upstream switch sg300-28, that is connected to my pfsense.
If you put the port that connects through the dumb switch to your netgear only on vlan 20, how would you talk to the switch via default vlan 1 which is your lan network..
-
@johnpoz After what you mentioned about trunk port instead of access. I made the following changes below. please see the cmds typed in the screenshot. hopefully, that is correct.
on my cisco switch, port 8 is the AP that is plugged in. on port 1 is the cable that connects from my cisco switch to my dumb switch.
here are some more settings of my cisco switch currently
yes I agree i have more reading / learning to do w/tagged & untagged.what do i need to fix or is that correct?
my normal ssid wireless is acting weird after making those changes, not allowing things to connect etc. so i am not sure if adding the vlan to the cisco switch made it worse or not.
I went to check my APs and it seems like something is off. see the screenshots below. I am not sure what needs to be fixed.
-
@travelmore where is 192.168.0 ??
I thought your lan was 192.168.1/24
Why would your AP be on a 192.168.0 network?
From your cisco - you have 20 trunk only on port 8, how does vlan get to this switch from your pfsense??? What are you not understanding about this?
pfsense - 1U,20T -- netgear -- 1U,20T -- dumbswitch -- 1U,20T - cisco -- 1U,20T -- AP
Your lan is native and untagged.. 192.168.1.x this would be the default vlan on your switch.. You then tag vlan 20 on same lan interface re0.. So your switch that connects to pfsense lan interface would need to be vlan 1 untagged. Vlan 20 tagged.
Now as you pass this traffic to your cisco.. Again vlan 1 untagged and tagged vlan 20.. Your dumb switch is stupid he doesn't know anything about tags, but you still have to tag the traffic as it gets sent to your dumb switch.. Then as it enters the cisco, the cisco needs to know that untagged traffic is vlan 1, and that tagged traffic on 20 goes where, etc..
So on the port your AP connected to vlan 1 would be untagged, and vlan 20 would be tagged.
Just at a loss to where/why your AP are on this 192.168.0 network?? Yeah that isn't going to work..
-
@johnpoz Okay good catch. that is weird i scrolled up and looked at the pics and they do show
the 192.168.1 address. i didn't change anything in those settings the only thing i did was change those commands on the cisco switch.
how does something like that even change? -
@travelmore did you manually set IPs on our AP.. If not then they get their IP via dhcp.. So what dhcp server on vlan 1 do you have handing out a 192.168.0.x address??
-
@johnpoz thats the thing, i didnt' mess w/the APs at all. the only thing i did after we figured out that disabling and re-enabling that vlan20 on the pf sense fixed it our issue and i could then poing the 20.1 vlan, then i changed the settings on the cisco and ever since then i cant remote into the cisco switch and stuff w/the APs started acting wonky.
so to answer your question what DHCP server on vlan 1 do i have handing out 192.168.0.x address. I don't, everything comes from PF sense and from what I can tell there isn't anything in a 168.1 address.
i looked in my routes on pf sense and i don't even see a 168.1.
So i used IP scanner and I found this:
i didn't plug any new device in today. and i checked my netgear switch is still good. i have no clue where that device is or how it even got plugged in because no one plugged anything like that in. but that device in the pic even shows its like not on. I pulled the power on my cisco switch. maybe that will help once it reboots.
in unifi, on networks, there was a setting that said global switch settings, and DHCP snooping was enabled. I unchecked that box. maybe that was it.
-
@travelmore Again, the problem with vlan20 was that you never applied the changes you made. You can't just click save and think you're done, you have to then click "apply changes" to actually apply them. Bouncing the port is what actually applied the changes.
You have a netgear router running dd-wrt somewhere on your network. Probably using it as an AP only but the dhcp server on it is enabled.
Find that mac address. Do a sh mac add on the cisco and see what port it shows up on.
If that doesn't work, disconnect things until the dhcp server stops giving out addresses and locate from there. -
@jarhead hey I will but I just tried plugging into my Netgear switch and I can't even connect to it. I am on my phone on mobile typing this out. I unplugged said device but still nothing.
I am at loss. When I did the Cisco commands on the switch as shown above I did write to save the changes so I don't know what happened.The only thing plugged in and on is my pihole, modem, pfsense PC, switches and APs that went rogue.
I can get into my pihole via directly and see it's still live and not handing out dhcp.
I can ping my pf sense box from there.
I rebooted pf sense and it's fine I can still ping it from my pihole. My pihole can ping my pfsense ip and the pf sense vlan20 up, just fine.
Now I am not sure what to type in the switch that needs to be looked at or done.
There is no rogue device on my network but I did see a frontier said pop up last night that I'm wondering if it is interfering (doubtful but one can hope).
I rebooted the switch lastnight.
What commands should I even type in the Cisco switch at this point?I can't connect to wireless devices or plug into my Netgear switch and connect to anything, just shows connected then says no internet.
I can connect to my Netgear via ip when plugged into the switch but it doesn't show that I have a hardwired connection.
Edit: I just called the isp and there is an outage in my area and they said it started late last night and don't know when it will be fixed or what caused it.
-
@travelmore said in Cant ping vlan on pf sense from any device?:
shown above I did write to save the changes so I don't know what happened.
A command on a switch is instant, now if you rebooted the switch before you wrote those to mem, then it would load its previous saved config.
To your netgear config.. You show you had its port 8 tagged on 20.. Any device connected to that port would have to be set to understand the tag.
What did you have the pvid set on port 8 of your netgear? if 20 then untagged traffic entering the port would be vlan 20. But traffic leaving the port towards you device would be tagged 20, and you device would need to understand that tag..
-
@johnpoz hi, currently, I cannot connect to wireless, nor can I connect to internet hard wired from my switch.
Earlier the ISP said they had an outage which is fine but I am trying to still get this resolved or at least make sure I have everything configured correctly. The ISP still has the outage but I am trying my best to get this fixed on my end.Forgive me, I don't understand your question about what I had setup on port 8 on my Netgear. Port 4 is what pf sense plugs into on my Netgear. Port 8 is just a PC for testing purposes and currently right now for connecting to the switch to view the settings.
the current setting on my Netgear is exactly the same pic you shared in the last post. I am sorry i can't upload pics from my phone for some reason.
The Cisco switch has the same settings as the last recent post with it, where it showed trunk access etc. The specific post was I believe 6:15pm, yesterday where I started off the post stating "after what you mentioned about trunk port... etc"
That post shows my current Cisco config settings. If something from that needs to be changed or checked I'll gladly connect and try to adjust it if I know the commands neededbyt unfortunately I can't upload a picture.Thank you for your patience and help with this as I am still trying to work my way through this. I tried resetting the access points and that didn't seem to help anything.
I'm at a loss honestly and am trying to confirm Netgear switch and Cisco switch are properly configured then see what needs to be fixed.
Idk what to do next. I've been at this for a while and it's hard to only type this on my phone.
-
@travelmore said in Cant ping vlan on pf sense from any device?:
Port 8 is just a PC for testing purposes and currently right now for connecting to the switch to view the settings.
How would that work with vlan 20 tagged... Did you tell the pc to look for a tag?
Just at a loss to what your not getting.. What what is confusing about this??
pfsense - 1U,20T -- netgear -- 1U,20T -- dumbswitch -- 1U,20T - cisco -- 1U,20T -- AP
This shows you exactly what the ports on pfsense or switch connected should be set for.
Pfsense lan is native untagged.. this would be vlan 1 on your switch... So the port connected pfsense, port 4 on your netgear should be vlan 1U, 20T and pvid should be 1 as well.
POrt on your netgear that will end up on your cisco same way 1U, 20 tagged..
Port that connects to your dumb switch on cisco, in cisco world this would be a trunk, and you would allow the vlans you want 20..l pvid still 1.. nothing to change there.
Port that connects to your AP on your cisco, again same thing vlan 1 Untagged, vlan 20 tagged this is a trunk on cisco..
What are you not understanding - so I can come at it a different way.. This is pretty basic stuff here.. If there is no tag, this is a native vlan on a switch.. Normally 1 for example is the default for switches. You can only have 1 untagged vlan on a port. If you carry another network it has to be tagged.
For vlan 20 traffic to get from pfsense to your cisco you have to have all the physical ports that connect the switches set to understand that 20 is tagged, not tagged is vlan 1, etc.