﻿{"id":171,"date":"2018-06-26T18:04:23","date_gmt":"2018-06-26T15:04:23","guid":{"rendered":"http:\/\/xn--e1agicip.xn--90ais\/?p=171"},"modified":"2018-10-10T17:38:05","modified_gmt":"2018-10-10T14:38:05","slug":"wi-fi-point-orange-pi-zero","status":"publish","type":"post","link":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/2018\/06\/26\/wi-fi-point-orange-pi-zero\/","title":{"rendered":"\u0422\u043e\u0447\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 WI-FI \u043d\u0430 Orange PI ZERO"},"content":{"rendered":"<p><code>sudo nano \/etc\/network\/interfaces<\/code><br \/>\n\u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0435\u043a\u0441\u0442<br \/>\n<code>auto lo br0<br \/>\niface lo inet loopback<\/code><\/p>\n<p><code># wireless wlan0<br \/>\nallow-hotplug wlan0<br \/>\niface wlan0 inet manual<\/code><\/p>\n<p><code># eth0 connected to the ISP router<br \/>\nallow-hotplug eth0<br \/>\niface eth0 inet manual<\/code><\/p>\n<p><code># Setup bridge<br \/>\niface br0 inet static<br \/>\nbridge_ports wlan0 eth0<br \/>\naddress <strong>&lt;\u0430\u0434\u0440\u0435\u0441 OrangePiZero&gt;<\/strong><br \/>\nnetmask 255.255.255.0<br \/>\nnetwork <strong>&lt;\u0430\u0434\u0440\u0435\u0441 \u0448\u043b\u044e\u0437\u0430&gt;<\/strong><br \/>\ngateway <strong>&lt;\u0430\u0434\u0440\u0435\u0441 \u0448\u043b\u044e\u0437\u0430&gt;<\/strong><br \/>\ndns-nameservers <strong>&lt;\u0430\u0434\u0440\u0435\u0441 \u0448\u043b\u044e\u0437\u0430&gt;<\/strong><br \/>\npost-up service hostapd restart<\/code><\/p>\n<p>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0444\u0430\u0439\u043b<br \/>\n<code>sudo nano \/etc\/hostapd.conf<\/code><br \/>\n\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c<br \/>\n<code>ssid=<strong>&lt;\u0438\u043c\u044f \u0442\u043e\u0447\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430&gt;<\/strong><br \/>\ninterface=wlan0<br \/>\nhw_mode=g<br \/>\nchannel=6<br \/>\nbridge=br0<br \/>\ndriver=nl80211<br \/>\nlogger_syslog=0<br \/>\nlogger_syslog_level=0<br \/>\nwmm_enabled=1<br \/>\nwpa=3<br \/>\npreamble=1<br \/>\nwpa_passphrase=<strong>&lt;\u041f\u0410\u0420\u041e\u041b\u042c&gt;<\/strong><br \/>\nwpa_key_mgmt=WPA-PSK<br \/>\nwpa_pairwise=TKIP<br \/>\nrsn_pairwise=CCMP<br \/>\nauth_algs=1<br \/>\nmacaddr_acl=0<br \/>\nignore_broadcast_ssid=0<br \/>\nnoscan=1<br \/>\ncountry_code=RU<\/code><br \/>\n\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0442\u043e\u0447\u043a\u0438<br \/>\n<code>sudo nano \/etc\/rc.local<\/code><br \/>\n\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0438<br \/>\n<code>sleep 10<br \/>\n\/bin\/su root -c \"\/usr\/bin\/screen -dmS wifi \/usr\/sbin\/hostapd \/etc\/hostapd.conf\"<br \/>\nexit 0<\/code><\/p>\n<p>\u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f<br \/>\n<code>reboot<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo nano \/etc\/network\/interfaces \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 auto lo br0 iface lo inet loopback # wireless wlan0 allow-hotplug wlan0 iface wlan0 inet manual # eth0 connected to the ISP router allow-hotplug eth0 iface eth0 inet manual # Setup bridge iface br0 inet static bridge_ports wlan0 eth0 address &lt;\u0430\u0434\u0440\u0435\u0441 OrangePiZero&gt; netmask 255.255.255.0 network &lt;\u0430\u0434\u0440\u0435\u0441 \u0448\u043b\u044e\u0437\u0430&gt; gateway &lt;\u0430\u0434\u0440\u0435\u0441 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/posts\/171"}],"collection":[{"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":5,"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/posts\/171\/revisions\/176"}],"wp:attachment":[{"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xn--e1agicip.xn--90ais\/index.php\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}