ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller

    IT Discussion
    unifi dhcp option 43 microsoft windows server guide how to
    5
    10
    30.4k
    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.
    • JaredBuschJ
      JaredBusch
      last edited by

      For whatever reason, you are stuck using a Windows Server based domain controller with the typical DHCP/DNS/AD roles.

      Now you get a bunch of shiny new UniFi devices from Ubiquiti and you think it would be just awesome if they would find the UniFi controller by themselves.

      Well this is simple to do. You jsut need to setup DHCP option 43 to point to the IP address of your controller.

      Pop open the DHCP configuration and expand the tree until you see Scope Options
      RIght click on it and choose Configure Options
      0_1520802982000_9d8c9536-ef10-4d78-baa7-7c239fd908f5-image.png

      Scroll down the list to option 043 Vendor Specific Info
      0_1520803098375_5710fe89-263c-4d36-bb39-3114e1a3b0d2-image.png

      In the Binary section, you will have to enter the IP address of your UniFi controller IN HEX.
      So pop over to your favorite IP to HEX converter. I like this one: https://www.browserling.com/tools/ip-to-hex
      Pop in your IP address and click convert
      0_1520803319378_b0fe63b6-574b-45e2-bb44-8b608a899625-image.png
      Like magic.
      0_1520803370962_879b8d05-d5f1-4593-8bb7-0cb5157c4205-image.png

      Prepend a 0104 in front of the result, 0104cff4df0d in my example here. Then enter the hex into the Binary field and click ok.
      0_1520803572397_9bfd3b7f-168a-4bef-b0f9-df49ec467681-image.png

      There you go. Now reboot your UniFi device and it will find tis way to your controller.
      0_1520802890994_52c304a9-0456-43ce-b127-eb355a991691-image.png

      1 Reply Last reply Reply Quote 6
      • J
        JackCPickup
        last edited by

        Was it not working at all without doing this?

        We've been installing loads of Ubiquiti in our schools and never had to do this. Great to know though, thanks.

        JaredBuschJ 1 Reply Last reply Reply Quote 1
        • JaredBuschJ
          JaredBusch @JackCPickup
          last edited by

          @jackcpickup said in Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller:

          Was it not working at all without doing this?

          We've been installing loads of Ubiquiti in our schools and never had to do this. Great to know though, thanks.

          This just makes it magic. No need for the app or anything else to make it show up in the controller.

          If your controller is on the same subnet, you don’t need this.

          1 Reply Last reply Reply Quote 2
          • crustachioC
            crustachio
            last edited by

            Excellent, thanks for this. I had recently heard about this option 43 but didn't really know what it was about. I'll try this... now, actually! Need to set up a spare AC mesh anyway.

            1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce
              last edited by

              Does this work regardless of your routers and switches or does it only work if using an EdgeMax your UniFi server is connected to?

              I'm asking because of this bit:
              0_1520873141442_54c3ed0e-44d0-4890-aadc-bd2165c777c4-image.png

              dbeatoD JaredBuschJ 2 Replies Last reply Reply Quote 0
              • dbeatoD
                dbeato @Obsolesce
                last edited by

                @tim_g said in Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller:

                Does this work regardless of your routers and switches or does it only work if using an EdgeMax your UniFi server is connected to?

                I'm asking because of this bit:
                0_1520873141442_54c3ed0e-44d0-4890-aadc-bd2165c777c4-image.png

                You can use it on any router that supports that DHCP option. I have it on a Sonicwall so far.

                ObsolesceO 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @Obsolesce
                  last edited by

                  @tim_g said in Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller:

                  Does this work regardless of your routers and switches or does it only work if using an EdgeMax your UniFi server is connected to?

                  I'm asking because of this bit:
                  0_1520873141442_54c3ed0e-44d0-4890-aadc-bd2165c777c4-image.png

                  This has nothing to do with your router. It is about the DHCP server.

                  If you have an EdgeRouter and you are using it as the DHCP server, then there is aspot for UniFi Controller that does Option 43 there.

                  Still option 43, just how you
                  0_1520873679782_fb70f738-2672-498c-8461-15020191bb55-image.png

                  ObsolesceO 1 Reply Last reply Reply Quote 0
                  • ObsolesceO
                    Obsolesce @dbeato
                    last edited by

                    @dbeato said in Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller:

                    @tim_g said in Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller:

                    Does this work regardless of your routers and switches or does it only work if using an EdgeMax your UniFi server is connected to?

                    I'm asking because of this bit:
                    0_1520873141442_54c3ed0e-44d0-4890-aadc-bd2165c777c4-image.png

                    You can use it on any router that supports that DHCP option. I have it on a Sonicwall so far.

                    I use DHCP from Windows Server, so that's where I'd set option 43. The way I read that is it won't work unless you have an EdgeMax router in the mix.

                    1 Reply Last reply Reply Quote 0
                    • ObsolesceO
                      Obsolesce @JaredBusch
                      last edited by

                      @jaredbusch

                      I see, so just setting option 43 on whatever DHCP server you use is all you need. Nothing hardware specific is required on the network.

                      JaredBuschJ 1 Reply Last reply Reply Quote 1
                      • JaredBuschJ
                        JaredBusch @Obsolesce
                        last edited by

                        @tim_g said in Use DHCP option 43 on Windows Server to tell UniFi devices how to find the controller:

                        @jaredbusch

                        I see, so just setting option 43 on whatever DHCP server you use is all you need. Nothing hardware specific is required on the network.

                        Correct

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post