{"id":2921,"date":"2020-01-07T22:52:52","date_gmt":"2020-01-07T22:52:52","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2921"},"modified":"2020-01-07T22:52:52","modified_gmt":"2020-01-07T22:52:52","slug":"ubiquiti-set-dhcp-from-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ubiquiti-set-dhcp-from-command-line\/","title":{"rendered":"Ubiquiti set DHCP from command line"},"content":{"rendered":"\n<p>Edit the &#8220;\/tmp\/system.cfg&#8221; <\/p>\n\n\n\n<p>Change the line that contains &#8220;dhcpc.status=disabled&#8221; to<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dhcpc.status=enabled<\/pre>\n\n\n\n<p>add the following lines<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dhcpc.1.devname=br0         \ndhcpc.1.fallback=192.168.1.20\ndhcpc.1.fallback_netmask=255.255.255.0\ndhcpc.1.status=enabled\n<\/pre>\n\n\n\n<p>Save and exit and save changes<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/etc\/rc.d\/rc.softrestart save<\/pre>\n\n\n\n<p>Log into the GUI and verify everything looks correct.  Under the network tab it was still showing that it had a static address, although it pulled a DHCP IP.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit the &#8220;\/tmp\/system.cfg&#8221; Change the line that contains &#8220;dhcpc.status=disabled&#8221; to dhcpc.status=enabled add the following lines dhcpc.1.devname=br0 dhcpc.1.fallback=192.168.1.20 dhcpc.1.fallback_netmask=255.255.255.0 dhcpc.1.status=enabled Save and exit and save changes \/usr\/etc\/rc.d\/rc.softrestart save Log into the GUI and verify everything looks correct. Under the network tab &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ubiquiti-set-dhcp-from-command-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,129],"tags":[528,8,744,855,131,132],"class_list":["post-2921","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubiquiti","tag-airmax","tag-command-line-2","tag-dhcp","tag-system-cfg","tag-ubiquiti-2","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=2921"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2921\/revisions"}],"predecessor-version":[{"id":2923,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2921\/revisions\/2923"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}