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

    OPT1 needs LAN DNS access

    Scheduled Pinned Locked Moved General pfSense Questions
    109 Posts 5 Posters 19.6k Views 6 Watching
    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.
    • L Offline
      lewis @johnpoz
      last edited by

      @johnpoz
      Wait, you might have something.
      Yes, the client I was testing from has a /16.
      This is a test from another client with a /24.

      # nmap -sP 10.0.0.0/24
      Starting Nmap 6.40 ( http://nmap.org ) at 2021-12-28 08:28 MST
      Nmap scan report for 10.0.0.1
      Host is up (0.00023s latency).
      Nmap scan report for 10.0.0.29
      Host is up (0.00066s latency).
      Nmap scan report for 10.0.0.30
      Host is up (0.00066s latency).
      Nmap scan report for 10.0.0.52
      Host is up (0.00052s latency).
      Nmap scan report for 10.0.0.211
      Host is up (0.00062s latency).
      Nmap scan report for 10.0.0.212
      Host is up (0.012s latency).
      Nmap scan report for 10.0.0.214
      Host is up (0.00052s latency).
      Nmap done: 256 IP addresses (7 hosts up) scanned in 14.86 seconds
      
      # nmap -sP 192.168.254.0/24
      Starting Nmap 6.40 ( http://nmap.org ) at 2021-12-28 08:28 MST
      Nmap scan report for 192.168.254.1
      Host is up (0.00029s latency).
      Nmap scan report for 192.168.254.2
      Host is up (0.00043s latency).
      Nmap scan report for 192.168.254.10
      Host is up (0.013s latency).
      Nmap scan report for 192.168.254.11
      Host is up (0.21s latency).
      Nmap scan report for 192.168.254.16
      Host is up (0.24s latency).
      Nmap done: 256 IP addresses (5 hosts up) scanned in 26.94 seconds
      
      
      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        Yup, that would do it! Fix the mask on that client.

        1 Reply Last reply Reply Quote 1
        • L Offline
          lewis @johnpoz
          last edited by

          @johnpoz

          Wow, good catch folks!

          It just happens that my go to Linux client and the Windows machine I'm on have a /16 because of some other work I was doing a while back.

          Changing them both back to /24 fixes the problem :).

          It was something tiny I wasn't seeing at this point. Now I'm able to reach devices on the 192.168.254.1 network.

          L 1 Reply Last reply Reply Quote 1
          • L Offline
            lewis @lewis
            last edited by lewis

            And I think I used the wrong term about gateways above causing you some confusion. What I meant was the static ip4 config per interface.

            This was like making a single character coding mistake and it takes a week to find that one thing that broke everything.

            Thank you very much for sticking to this and helping me.

            J 1 Reply Last reply Reply Quote 1
            • J Offline
              jsmiddleton4 @lewis
              last edited by

              Did you leave the AP IP as DHCP?

              I thought AP's needed Static IP.

              If the AP is an AP I thought all of the stuff like DNS/DHCP was managed by the actual router. DNS/DHCP info passes from the PFSense router though the AP.

              I have Asus AX86U with RMerlin's FW as an AP. But I did my PFSense LAN as a Bridge.

              Glad its working of course. Just trying to connect the dots.

              johnpozJ L 2 Replies Last reply Reply Quote 0
              • stephenw10S Offline
                stephenw10 Netgate Administrator
                last edited by

                Yeah adding a gateway to an internal interface because you want clients on that subnet to use it as their gateway is a common setup mistake. If you hang around the forum for a while you will see people do that and it causes a number of fun problems. 😉

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

                  @jsmiddleton4 said in OPT1 needs LAN DNS access:

                  thought AP's needed Static IP.

                  Why would that be? The IP on the AP is only used for management of the AP.. How it gets that IP makes no difference, and its not used in any fashion where anything other than management would need to talk to that IP.

                  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

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jsmiddleton4 @johnpoz
                    last edited by

                    @johnpoz

                    So you can find the AP when needing to access it for setup.

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      lewis @jsmiddleton4
                      last edited by

                      @jsmiddleton4 said in OPT1 needs LAN DNS access:

                      Did you leave the AP IP as DHCP?
                      I thought AP's needed Static IP.
                      If the AP is an AP I thought all of the stuff like DNS/DHCP was managed by the actual router. DNS/DHCP info passes from the PFSense router though the AP.
                      I have Asus AX86U with RMerlin's FW as an AP. But I did my PFSense LAN as a Bridge.
                      Glad its working of course. Just trying to connect the dots.

                      I had changed the AP to DHCP client to test it getting the correct network settings. It gets a static IP from the pfsense DHCP server and the AP clients get their DHCP settings from pfsense as well. All are static in fact so I can keep track of what is on the networks.

                      J 1 Reply Last reply Reply Quote 1
                      • J Offline
                        jsmiddleton4 @lewis
                        last edited by jsmiddleton4

                        @lewis

                        A+B=C. The IP for the AP stays the same.

                        Mine is assigned a static IP of its own yet outside the DHCP range of PFSense DHCP server.

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S Offline
                          stephenw10 Netgate Administrator
                          last edited by

                          Yeah a real AP (acting as only an AP) is a layer 2 device, it doesn't actually need an IP at all. Though not having one is very inconvenient if you ever want to change anything.

                          L J 2 Replies Last reply Reply Quote 1
                          • L Offline
                            lewis @stephenw10
                            last edited by

                            I have DHCP set on all networks so that I can see new devices when they pop up. I then nab their MAC address and create a static DHCP entry.

                            For me, it's just a convenient way to keep track of things. If a MAC changes for some reason, like a vm rebuild for example, I just update the MAC in my DHCP static list.

                            johnpozJ 1 Reply Last reply Reply Quote 1
                            • J Offline
                              jsmiddleton4 @stephenw10
                              last edited by

                              @stephenw10

                              And if you need to access the AP directly as in LAN cable to the AP. While a static IP assigned via the router gets to nearly the same place, the IP stays the same, if for some reason the router is out of the picture, good luck accessing the AP without a factory reset turning the AP back into a router.

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

                                @lewis said in OPT1 needs LAN DNS access:

                                I then nab their MAC address and create a static DHCP entry.

                                Yeah I pretty much do the same thing, anything on my network other then guest devices normally have a reservation..

                                I'm not really a big fan of the term "static dhcp" maybe I am old school, its a dhcp reservation for me ;)

                                Any time someone says static - what comes to my mind is setting the IP on the device directly.

                                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

                                J 1 Reply Last reply Reply Quote 1
                                • J Offline
                                  jsmiddleton4 @johnpoz
                                  last edited by

                                  @johnpoz said in OPT1 needs LAN DNS access:

                                  I'm not really a big fan of the term "static dhcp" maybe I am old school, its a dhcp reservation for me ;)
                                  Any time someone says static - what comes to my mind is setting the IP on the device directly.

                                  That is of course correct. My bad....

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

                                    @jsmiddleton4 its not you - pfsense calls it static as well..

                                    notyou.jpg

                                    Its not the term is "wrong" exactly - its just it can be a bit confusing if not spelled out exactly that it was via dhcp or set on the device, etc. Especially for us old timers that grew up with the term reservation for years and years..

                                    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
                                    • L Offline
                                      lewis @jsmiddleton4
                                      last edited by

                                      @jsmiddleton4 said in OPT1 needs LAN DNS access:

                                      @stephenw10

                                      And if you need to access the AP directly as in LAN cable to the AP. While a static IP assigned via the router gets to nearly the same place, the IP stays the same, if for some reason the router is out of the picture, good luck accessing the AP without a factory reset turning the AP back into a router.

                                      Before doing a reset, you should still be able to see the AP in the wireless list no matter its LAN IP is by using a wireless laptop. Then you could access the AP's admin page since if would be the laptops gateway IP.

                                      L J 2 Replies Last reply Reply Quote 0
                                      • L Offline
                                        lewis @lewis
                                        last edited by

                                        Maybe it's a reserved static DHCP IP :).

                                        It really is reserved but once reserved, it's outside of the DHCP pool making it static within the DHCP server LOL.

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jsmiddleton4 @lewis
                                          last edited by

                                          @lewis

                                          Giving the AP its own static IP eliminates any variables including if a DHCP server is up and running. I like eliminating variables.

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

                                            @jsmiddleton4 said in OPT1 needs LAN DNS access:

                                            including if a DHCP server is up and running

                                            This is a misconception as well - dhcp server being offline doesn't stop clients from working that had already gotten a lease. It only prevents clients from getting a new IP or renewing their lease. If you have no new clients coming on to the network.

                                            If your lease was say 4 days, worse case scenario your lease would be at 2 days when dhcp goes offline - you would have then 2 days to notice your dhcp server is offline before clients started dropping off when their lease expired ;)

                                            Setting a reservation, or call it a static mapping you will has way more advantages then setting the IP on the device itself. You can now change options like dns,ntp, domain or gateway or even the mask or even the IP range being used without having to actually touch a client and make these changes.

                                            With the use of reservations - I can easy change a devices IP without having to mess with it. Say its a pain in the ass on stuff like iot or printers are big example. Where you have to go through some arcane menu system using up down arrows and such on the little menu on the printer. If I want my printer IP to be something different, just change the reservation and reboot the printer - bobs your uncle its now on the new ip.

                                            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

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