{"id":2781,"date":"2019-11-11T20:21:49","date_gmt":"2019-11-11T20:21:49","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=2781"},"modified":"2019-11-11T20:21:50","modified_gmt":"2019-11-11T20:21:50","slug":"ubiquiti-airmax-set-radio-to-use-dhcp-from-command-line","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/ubiquiti-airmax-set-radio-to-use-dhcp-from-command-line\/","title":{"rendered":"Ubiquiti AirMax &#8211; Set radio to use DHCP from command line"},"content":{"rendered":"\n<p>Gain access to radio via ssh<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh ubnt@192.168.1.20<\/pre>\n\n\n\n<p>open up the \/tmp\/system.cfg<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/tmp\/system.cfg<\/pre>\n\n\n\n<p>Delete the following line.  To move the cursor to the following line and type &#8220;dd&#8221; and vi will delete the whole line.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dhcpc.status=disabled   <\/pre>\n\n\n\n<p>Add the following 5 lines.  Hit &#8220;i&#8221; to enter vi insert mode.  <br>br0 should be correct interface in most scenarios.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dhcpc.1.devname=br0          <br>dhcpc.1.fallback=192.168.1.20         <br>dhcpc.1.fallback_netmask=255.255.255.0<br>dhcpc.1.status=enabled      <br>dhcpc.status=enabled        <\/pre>\n\n\n\n<p>Save the file by hitting esc and then &#8220;:wq&#8221; followed by Return\/Enter<\/p>\n\n\n\n<p>Save the config changes and reboot the radio so it pulls an address.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/etc\/rc.d\/rc.softrestart save &amp;&amp; reboot<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Gain access to radio via ssh ssh ubnt@192.168.1.20 open up the \/tmp\/system.cfg vi \/tmp\/system.cfg Delete the following line. To move the cursor to the following line and type &#8220;dd&#8221; and vi will delete the whole line. dhcpc.status=disabled Add the following &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/ubiquiti-airmax-set-radio-to-use-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":[129],"tags":[528,8,744,221,131,132],"class_list":["post-2781","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","tag-airmax","tag-command-line-2","tag-dhcp","tag-ssh","tag-ubiquiti-2","tag-ubnt"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2781","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=2781"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2781\/revisions"}],"predecessor-version":[{"id":2782,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/2781\/revisions\/2782"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=2781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=2781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=2781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}