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

    How to use DHCP with PFSense & UniFi AC Access Point?

    Scheduled Pinned Locked Moved DHCP and DNS
    17 Posts 3 Posters 3.8k 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.
    • M
      mbc0
      last edited by

      Hi,

      As the title suggests what would be the correct method for using pfSense with an AC Lite Access Point? The only reason I need to work this out is because I want to add a description to the wireless devices on pfSense and the only way I can do that is to add a static lease to be able to add a description to the wireless device. The issue with that is I can have the same device with different IP's on pfSense and on the UniFI?

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        Just disable DHCP on the Ubiquity equipment and let pfSense take care of handing out DHCP to the wireless clients, it works I do it.

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        M 1 Reply Last reply Reply Quote 0
        • M
          mbc0 @NogBadTheBad
          last edited by

          @nogbadthebad Many Thanks for your reply :-)

          Would you mean like this?

          alt text

          1 Reply Last reply Reply Quote 0
          • M
            mbc0
            last edited by

            https://1drv.ms/u/s!AjnJhtmhYMJlht9DCu2gBOFoCLccUA

            1 Reply Last reply Reply Quote 0
            • NogBadTheBadN
              NogBadTheBad
              last edited by

              Yup thats what I do

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                So you also have a USG? How exactly are you connecting to pfsense? You can not run dhcpd on unifi unless you have something other than just 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.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • NogBadTheBadN
                  NogBadTheBad
                  last edited by

                  Me John ?

                  I thought you had to at least define a single network under settings -> Networks.

                  Andy

                  1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mbc0 @NogBadTheBad
                    last edited by

                    I have a UniFi AC Lite connected directly into 1 port of a 4 port NIC in my Gen8 Microserver running pfSense is that not correct?

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

                      If you don't have a USG you can not run dhpd on unifi anway..

                      Your going to have to give some more detail

                      The issue with that is I can have the same device with different IP's on pfSense and on the UniFI?

                      Huh? Yeah your wireless devices would be on a different network than your wired? Do you have a bridge setup where your wifi interface is on same network as your wired 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.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • M
                        mbc0
                        last edited by

                        ah, so this is good as I want pfSense to handle everything :-)

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

                          Can you please give some more details.

                          Your lan network is what? Your wireless network is what - you only have 1? Or do you have multiple ssid on different vlans.

                          You have a client it gets what for IP exactly? What issue are you having with that IP? You want it to be the same as when you plug that device into a wire? Not understand what the issue is here.

                          with different IP's on pfSense and on the UniFI?

                          This doesn't make a lot of sense.. Unless you had some other device running dhcp and handing out wrong address pool in the same network, or something doing nat? Same IP your wireless controller shows for a device will be the same IP pfsense shows for it, etc.

                          example... Here is my dhcp lease on pfsense for my IPad

                          192.168.4.210 0c:51:01:8c:19:ae (Apple) Johns-Air2 2018/07/24 03:43:09 2018/07/26 03:43:09

                          Here is what unfi shows for it.
                          0_1532430221658_johnsipad.png

                          You notice same IP, same mac, etc. So could you point out what your seeing that your having a problem with or what your trying to accomplish exactly that is not working, etc.

                          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.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • M
                            mbc0
                            last edited by

                            Hi,

                            The issue was when looking at pfSense I was trying to make it easy to identify what clients are connected but the only way I could find to do that was by assigning a static IP to each device and then adding a description. By doing this I found that devices connected to pfSense had the assigned static IP but that same device had a different IP on my AC Lite. By disabling DHCP on the Unifi pfSense is now assigning the Static IP and UniFi now shows the same IP so as far as I can see it is now resolved.

                            My Setup is an HP Gen8 Microserver with a 4port NIC, 1 Port goes to a Modem, 1 Port goes to a Switch for the local lan and 1 other goes to the UniFi AC Lite

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

                              And what is running dhcpd... The AP can not run dhcpd? Pretty sure need USG to do that, since that is why it lists (usg) next to it, etc.

                              Yeah says right on the controller need usg to run dhcpd

                              0_1532430433010_dhdcpd.png

                              Is it possible your client just got a different lease you had something else running dhcp on this layer 2? Maybe another VM?

                              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.7.2, 24.11

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mbc0 @johnpoz
                                last edited by

                                @johnpoz You are right, it does have usg next to DHCP as per the picture link I added but changing it to none has resolved my issue so I am not really sure ? The only other VM's I have are Windows/Linux Desktops

                                1 Reply Last reply Reply Quote 0
                                • NogBadTheBadN
                                  NogBadTheBad
                                  last edited by

                                  The Ubiquity GUI does have quite a bit of cruft if you only have access-points and a controller.

                                  Not even sure why you need to create a network at all if your not using a switch.

                                  Andy

                                  1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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

                                    you can use these networks for putting your AP on a specific vlan for management even without a switch or usg I do believe. But agreed most users with just some AP and the controller have zero use for any of settings under network. And can just leave it at default even if running a different network address space.

                                    As to turning it off fixing any perceived issue I find it highly unlikely... Turn it back on and show us what you think the problem is.. If you feel that is the cause of the problem.

                                    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.7.2, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • NogBadTheBadN
                                      NogBadTheBad
                                      last edited by

                                      If you have a windows client do an ipconfig /all if you enable it again.

                                      That should tell you the host that's acting as a dhcp server.

                                      Andy

                                      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

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