Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Cant ping vlan on pf sense from any device?

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    39 Posts 3 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @TravelMore
      last edited by johnpoz

      @travelmore said in Cant ping vlan on pf sense from any device?:

      tried pinging 192.168.20.1 from pf sense and still failed.

      what IP is that suppose to be? That should be I would assume pfsense IP address on vlan 20?

      I still don't see where you setup ssid to vlan 20? If your trying to ping pfsense IP from the switch. What is the switches svi, I would assume that would be on its vlan 1, for it to ping pfsense 20.1 IP it would have to have a default route. So from its IP on vlan 1, it could talk to pfsense to get to pfsense 20.1 IP.

      Example: Here is a switch that is in my AV cabinet.. IT's management IP is on vlan 9.. It has a router to get to other networks that talk to pfsense..IP on the "lan" this is switches vlan 9, untagged.. Here is it pinging pfsense IP address on my vlan 4, which is my psk wifi vlan.

      switch.jpg

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      T 1 Reply Last reply Reply Quote 0
      • T
        TravelMore @johnpoz
        last edited by TravelMore

        @johnpoz yes that is correct. the 192.168.20.1, see pic below. Now when i looked at videos on how to set this stuff up, they never said add a gateway, they had me go to DHCP right after which i will also share below. From my understanding, the 168.20.1 is the 'vlan20 router' IP.
        as some mentioned it, then they showed setting up the DHCP scope for that vlan20. shown below.
        61146b4e-4137-4cb1-aed1-e646824db637-image.png
        for reference here is the vlan20 dhcp settings.
        c5751a66-4f39-4339-abe3-4bcde11e26d1-image.png

        to answer your question "I still don't see where you setup ssid to vlan 20? "
        honestly, i am not sure i did that, i don't think i did because I've shared everything that i have done so far. If i need to do that where (pf sense, unifi, cisco, netgear and what do i need to do)
        here are the unifi settings if that helps.

        c8cd5f12-4b12-48da-a043-ee55dc3b1143-image.png

        bcd6243f-ea35-4c97-a95a-ef6f1c1d76c9-image.png
        here is a cisco snippet after you shared that screenshot.
        20325fa4-a651-4dd7-8b3a-3a16d9cf88df-image.png

        johnpozJ J 2 Replies Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @TravelMore
          last edited by

          @travelmore I sure hope you don't want any actual speed on your APs - that switch is mostly just fast ethernet (100mbps)...

          And you have all ports other than 8 in vlan 1.. What port is your AP connected too?

          So your lan is 192.168.1/24 your vlan 20 is 192.168.20/24

          If you do not assign a SSID to your vlan network, then it would just be on your normal untagged network that the AP management is on.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          T 1 Reply Last reply Reply Quote 0
          • T
            TravelMore @johnpoz
            last edited by

            @johnpoz It is all just old equipment I use for home use so no i do not care about speed. it supports my wireless devices just fine. My AP is connected to port 8 on my cisco switch.
            Yes correct on pf sense, my lan1 is 192.168.1/24 your vlan 20 is 192.168.20/24.

            I do not know how to assign a SSID to my vlan network. i do not know if i do that only unifi (if so how).

            If i have to set anything up in Pf sense for this aside from what I already shared. I am not sure. As in PF Sense there is a wireless interface which i have nothing setup.
            47eee872-3332-46ec-b9c2-8e2eefd0056d-image.png
            e8595a73-eecc-402b-8b6f-2b9d53f8d6da-image.png

            here is the firewall block rule.
            a730e52e-6c49-47c2-9645-089064c7022f-image.png

            here is the firewall allow rule
            d212550d-4da4-4591-9b1e-88184e6ca37f-image.png

            I was under the impression that I had to be able to ping 192.168.20.1 (pf sense vlan20 IP) from a device on my network (PC on netgear switch, or from cisco switch etc. for it to even see that and get a response). Then i was informed (from others) to try and ping 20.1 IP from pf sense itself and i couldn't etc.

            What else do i need to do to get all of this working?

            Thank you again for helping me. I really appreciate it.

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @TravelMore
              last edited by johnpoz

              @travelmore said in Cant ping vlan on pf sense from any device?:

              Then i was informed (from others) to try and ping 20.1 IP from pf sense itself and i couldn't etc.

              If pfsense can not ping its own IP - then yeah something is clearly wrong. I would fix that before you worry about anything else.. Rules wouldn't have anything to do with pfsense not being able to ping its own IPs.. Clearly something is not correct if pfsense can not ping its own IP, be a native IP directly on the interface, or a vlan interface.

              Did you actually assign an interface for your vlan?

              assignment.jpg

              I already posted how to set ssid to a vlan in unifi..

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • T
                TravelMore
                last edited by

                @johnpoz yes I believe i did assign an interface to my vlan. this is what i see below.
                8369d771-31cc-4860-9382-344a405d70b0-image.png

                then this is the vlan section
                e9a008fd-634b-4cae-bc31-2762baf16985-image.png

                1c24081b-c978-494b-b937-4fba5ff34f9c-image.png

                then this is the plan dhcp setup (just incase for reference)b7a8d0f1-32b2-4f58-a2aa-67b41f2e7fb7-image.png

                here is the DHCP setup for vlan20 settings. i did just notice, that in this setting, i did not setup my DNS server as my pihole so idk if that is what the issue is? (i did not change it i left it be as the screenshot below and asked here incase it would be the issue)
                737fcef8-f04f-4b1d-873a-aa39e3c2d010-image.png

                for the unifi wifi part i went back and looked at your settings and made an adjustment to mine. please see below. I went to wifi, then hit create new wifi network, named it smart bulbs w/a password. I do not know if what i did was correct but I'm trying. When i did click on my default network, the vlan only network is grayed out (pic below) and so that is why i created a new network.
                d6a08ae9-1355-4b1c-8a48-e92ecde6cbe8-image.png

                new network created called smart bulbs w/password.
                1d3856a2-7b69-47a7-9398-661097b98667-image.png

                here is networks over view:
                ef5b0721-8f87-404c-9460-1cc3b4a93a20-image.png

                here is wifi over view
                877f7609-89b6-418b-8f93-2c56d5df9c28-image.png

                johnpozJ 1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @TravelMore
                  last edited by

                  @travelmore but pfsense can not ping itself? something is serious wrong then.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    TravelMore @johnpoz
                    last edited by

                    @johnpoz here is the actual pf sense box IP, it can ping itself but when it comes to the vlan20 IP i sent for it 20.1. it cannot.
                    247e4e12-c9a1-4123-a855-6b5cbc8c7622-image.png

                    a30a4709-5f55-4fd7-9e88-8bf15781c08a-image.png

                    johnpozJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @TravelMore
                      last edited by

                      @travelmore well something is wrong.. You should be able to ping pfsense own IP address.. Not sure how its going to work if it can not even talk to itself..

                      I would disable and re-enable the network interface..

                      What does your routing table look like? Here are my two tagged vlans in the route table, and me pinging them.

                      ping.jpg

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        TravelMore @johnpoz
                        last edited by TravelMore

                        @johnpoz well, i disabled the interface and pinged it (just for measure) and got the results below.
                        695be9e6-600c-4ddc-80b9-d02d4c520302-image.png

                        THEN I enabled the interface as you suggested. Tried pinging it again and got this
                        3a00f701-6233-4bf7-a20a-2265db4a998e-image.png

                        then after seeing that progress, i went to my cisco switch and tried to ping, no luck.
                        6c734ef5-5121-4474-9129-1fd992d646cd-image.png
                        then i tried to ping from my pihole that is physically connected to port 2 on my netgear switch (only on vlan1) and i could ping the 20.1 IP, see below.
                        ec6ad4e6-c9b8-4ac8-ac2a-47d43dac9bd4-image.png

                        here is the routing table, to note, there is nothing past the IPV6 Routes table.
                        380d012e-e951-4a0a-90c4-b1465ef0b12d-image.png

                        Since we are making progress it seems by just disabling and renableing that interface, what are the next steps to get this to the end goal of vlan20 on my wireless AP?

                        Again, thank you so much for all your help.

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @TravelMore
                          last edited by johnpoz

                          @travelmore well I already went over why your switch might not be able to ping it. What is the route table look like on your switch.

                          So do clients that connect to your ssid on vlan 20, get an IP? When you created that new ssid and assigned it to your smart bulbs network, I saw that you created a smart bulbs network vlan only, I assume you set the vlan ID to 20.

                          But I don't see where you stated what port you connected your AP to your 2960, nor do I see any ports on the 2960 that you posted that are tagged for vlan 20 going to your AP. Nor any ports on vlan 20 that are the uplink through your dumb switch back to your netgear switch, etc.

                          pfsense - 1U,20T -- netgear -- 1U,20T -- dumbswitch -- 1U,20T - cisco -- 1U,20T -- AP
                          

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            TravelMore @johnpoz
                            last edited by TravelMore

                            @johnpoz so literally on port8 on my netgear switch is the AP that my smart bulb vlan is plugged into. yes, i did set the vlan on the unifi to vlan20. I do not have anything on this smart vlan except for the smart bulbs if i can ever get them connected. on my phone i tried connecting my phone to the smart bulb wifi and it said failed to obtain IP address. and here is a pic below.
                            3129867c-a5eb-4acf-a931-822cb20f4e28-image.png

                            johnpozJ 1 Reply Last reply Reply Quote 0
                            • J
                              Jarhead @TravelMore
                              last edited by Jarhead

                              @travelmore said in Cant ping vlan on pf sense from any device?:

                              61146b4e-4137-4cb1-aed1-e646824db637-image.png

                              I still have to ask, are you sure you're actually applying any settings you make??
                              That image still shows the "apply changes" button and it shouldn't.

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                TravelMore @Jarhead
                                last edited by

                                @jarhead yes i dont know why it said that but it did.
                                here is a pic of pf sense pinging 20.1 IP
                                625e4621-c5ed-4574-be8c-e2dca031231d-image.png

                                and here is that interface settings page w/no message at the top
                                7e518d5b-9e5e-46cb-b166-30baef49ca92-image.png

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jarhead @TravelMore
                                  last edited by

                                  @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.

                                  1 Reply Last reply Reply Quote 0
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator @TravelMore
                                    last edited by johnpoz

                                    @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

                                    netgear.jpg

                                    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.

                                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                                    If you get confused: Listen to the Music Play
                                    Please don't Chat/PM me for help, unless mod related
                                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      TravelMore @johnpoz
                                      last edited by

                                      @johnpoz and @Jarhead I checked. I think after we disabled and re-enabled that interface that fixed that issue because I see this now.
                                      c15a6e5f-6c58-4717-b7f2-eeac28af0371-image.png

                                      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.

                                      johnpozJ 1 Reply Last reply Reply Quote 0
                                      • johnpozJ
                                        johnpoz LAYER 8 Global Moderator @TravelMore
                                        last edited by

                                        @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
                                        

                                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                                        If you get confused: Listen to the Music Play
                                        Please don't Chat/PM me for help, unless mod related
                                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          TravelMore @johnpoz
                                          last edited by TravelMore

                                          @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
                                          060ef36f-340c-4cb4-bacc-385a7517060e-image.png

                                          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.
                                          2585b920-254d-4655-9cb1-c06d780843a0-image.png

                                          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 write

                                          then 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.

                                          johnpozJ 1 Reply Last reply Reply Quote 0
                                          • johnpozJ
                                            johnpoz LAYER 8 Global Moderator @TravelMore
                                            last edited by johnpoz

                                            @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..

                                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                                            If you get confused: Listen to the Music Play
                                            Please don't Chat/PM me for help, unless mod related
                                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                                            T 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.