{"id":786,"date":"2020-05-14T16:47:34","date_gmt":"2020-05-14T20:17:34","guid":{"rendered":"https:\/\/blog.pelleys.com\/?p=786"},"modified":"2022-05-30T10:27:48","modified_gmt":"2022-05-30T12:57:48","slug":"unifi-adoption-with-devices-on-separate-subnet-from-unifi-controller","status":"publish","type":"post","link":"https:\/\/blog.pelleys.com\/?p=786","title":{"rendered":"UniFi Adoption with Devices on Separate Subnet from UniFi Controller"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is, as always, is maybe more of an  aide-m\u00e9moire for me, but may be helpful if someone else is searching for a solution&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the scenario: My UniFi devices are on a separate subnet from my UniFi Controller. The problem, if you will, with this configuration is that when a UniFi device looks for the UniFi Controller is that is cannot find the Controller on a different subnet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are a number of ways that this can be resolved (other than putting the Controller on the same subnet) as documented in <a href=\"https:\/\/help.ui.com\/hc\/en-us\/articles\/204909754-UniFi-Device-Adoption-Methods-for-Remote-UniFi-Controllers\">UniFi &#8211; Device Adoption Methods for Remote UniFi Controllers<\/a>. The option that I took, or maybe it is two options, is:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>I configured my DNS server with an alias that allows <code>unifi<\/code> to resolve to the UniFi Controller. That way when a device restarts (such as after a reboot, power loss) it can find the controller when it boots and executes the <code>set-inform http:\/\/unifi:8080\/inform<\/code>. The hostname <code>unifi<\/code> will resolve to my UniFi Controller.<\/li><li>In my DHCP configuration (on pfSense), I added DHCP Option 43. You have to add <code>01:04<\/code> to the <em>hex<\/em> version of the IP address of your UniFi Controller. Browserling has a page to convert the IP address to hex: <a href=\"https:\/\/www.browserling.com\/tools\/ip-to-hex\">Convert IP Address to Hex Format<\/a>.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">One important thing to remember: If you <strong>statically <\/strong>set the IP addresses of your UniFi devices you will not get the DHCP Option 43 provided to the devices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is, as always, is maybe more of an aide-m\u00e9moire for me, but may be helpful if someone else is searching for a solution&#8230; Here is the scenario: My UniFi devices are on a separate subnet from my UniFi Controller. &hellip; <a href=\"https:\/\/blog.pelleys.com\/?p=786\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-786","post","type-post","status-publish","format-standard","hentry","category-things-i-would-like-to-remember","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/posts\/786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=786"}],"version-history":[{"count":0,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=\/wp\/v2\/posts\/786\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pelleys.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}