{"id":131,"date":"2025-06-05T10:34:04","date_gmt":"2025-06-05T02:34:04","guid":{"rendered":"https:\/\/anbolt.net\/?p=131"},"modified":"2025-11-05T15:02:40","modified_gmt":"2025-11-05T07:02:40","slug":"armbian%e5%ae%89%e8%a3%85%e6%97%a0%e7%ba%bf%e7%83%ad%e7%82%b9","status":"publish","type":"post","link":"https:\/\/anbolt.net\/index.php\/2025\/06\/05\/armbian%e5%ae%89%e8%a3%85%e6%97%a0%e7%ba%bf%e7%83%ad%e7%82%b9\/","title":{"rendered":"Armbian\u5b89\u88c5\u65e0\u7ebf\u70ed\u70b9"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><strong>\u524d\u671f\u51c6\u5907<\/strong><\/h1>\n\n\n\n<p>\u9996\u5148\u8981\u89e3\u9664NetworkManager\u5bf9wlan0\u7684\u5360\u7528\uff0c\u5148nmcli -s\u8bb0\u4e0bwlan0\u7684mac\u5730\u5740\uff0c\u6bd4\u5982ff:ff:ff:ff:ff:ff\uff0c\u7f16\u8f91\/etc\/NetworkManager\/NetworkManager.conf\uff0c\u6539\u4e00\u4e0b\u4e0b\u9762\u7684\u5b57\u6bb5\uff0c\u628a\u4f60\u7684wlan0\u5212\u4e3aunmanageable-devices<\/p>\n\n\n\n<p><strong>groovy<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>[keyfile]<br>unmanaged-devices=mac:ff:ff:ff:ff:ff:ff<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6700\u540e\u91cd\u542fNetworkManager\u751f\u6548<\/p>\n\n\n\n<p><strong>routeros<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo service NetworkManager restart<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u914d\u7f6eWiFi<\/strong><\/h1>\n\n\n\n<p>\u7136\u540e\u6211\u4eec\u5b89\u88c5hostapd\u3001bridge-utils<\/p>\n\n\n\n<p><strong>mipsasm<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo apt-get install hostapd bridge-utils -y<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>hostapd\u8d1f\u8d23\u53d1\u5c04WiFi\uff0c\u5148\u7f16\u8f91\u4ed6\u7684\u914d\u7f6e\u6587\u4ef6\/etc\/default\/hostapd\uff0c\u53bb\u6389\u4e0b\u9762\u8fd9\u884c\u6ce8\u91ca\u5e76\u4fee\u6539<\/p>\n\n\n\n<p><strong>ini<\/strong><\/p>\n\n\n\n<p>Copy successfully<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>DAEMON_CONF=&#8221;\/etc\/hostapd\/hostapd.conf&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u518d\u7f16\u8f91\u4ed6\u7684\u914d\u7f6e\u6587\u4ef6\/etc\/hostapd\/hostapd.conf\uff0c\u6211\u628a\u6211\u7684\u914d\u7f6e\u7c98\u8d34\u4e00\u4e0b<\/p>\n\n\n\n<p><strong>ini<\/strong><\/p>\n\n\n\n<p>Copy successfully<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<\/td><td>interface=wlan0<br>bridge=br0<br>driver=nl80211<br>ssid=Armbian<br>hw_mode=g<br>channel=7<br>wmm_enabled=0<br>macaddr_acl=0<br>auth_algs=1<br>ignore_broadcast_ssid=0<br>wpa=2<br>wpa_passphrase=1234567890<br>wpa_key_mgmt=WPA-PSK<br>wpa_pairwise=TKIP<br>rsn_pairwise=CCMP<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6700\u540e\u542f\u52a8hostapd<\/p>\n\n\n\n<p><strong>css<\/strong><\/p>\n\n\n\n<p>Copy successfully<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo systemctl start hostapd.service &amp;&amp; sudo systemctl enable hostapd.service<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6253\u5f00\u4f60\u7684\u624b\u673a\u641c\u7d22WiFi\u8bd5\u8bd5\uff0c\u80fd\u4e0d\u80fd\u641c\u5230WiFi\u3002\u641c\u5230\u5c31\u884c\u4e86\uff0c\u8fde\u4e0d\u4e0a\u7684\uff0c\u56e0\u4e3awlan0\u5565\u90fd\u4e0d\u662f\uff0c\u4e0b\u9762\u8981\u505a\u6865\u63a5\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u914d\u7f6eeth0\u548cwlan0\u6865\u63a5<\/strong><\/h1>\n\n\n\n<p>\u7f16\u8f91\/etc\/network\/interfaces\uff0c\u6211\u76f4\u63a5\u8d34\u51fa\u6211\u5b8c\u6574\u7684\u914d\u7f6e<\/p>\n\n\n\n<p><strong>apache<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<\/td><td>source \/etc\/network\/interfaces.d\/*<br><br>auto lo br0<br>iface lo inet loopback<br><br>allow-hotplug wlan0<br>iface wlan0 inet manual<br><br># eth0 connected to the ISP router<br>allow-hotplug eth0<br>iface eth0 inet manual<br><br># Setup bridge<br>auto br0<br>iface br0 inet dhcp<br>bridge_ports eth0 wlan0<br>bridge_stp off<br>bridge_maxwait 0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u91cd\u542f\u751f\u6548<\/strong><\/h1>\n\n\n\n<p><strong>ebnf<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>reboot<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5230\u6b64\u7ed3\u675f~<\/p>\n\n\n\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a\uff08\u53c2\u8003\uff1a<a href=\"https:\/\/www.jianshu.com\/p\/0193cc44b725\">Failed to start hostapd.service: Unit hostapd.service is masked &#8211; \u7b80\u4e66 (jianshu.com)<\/a>\uff09<\/p>\n\n\n\n<p>$sudo systemctl unmask hostapd<br>$sudo systemctl enable hostapd<br>$sudo systemctl start hostapd<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u671f\u51c6\u5907 \u9996\u5148\u8981\u89e3\u9664NetworkManager\u5bf9wlan0\u7684\u5360\u7528\uff0c\u5148nmcli -s\u8bb0\u4e0bwlan0\u7684mac\u5730 &#8230; <a title=\"Armbian\u5b89\u88c5\u65e0\u7ebf\u70ed\u70b9\" class=\"read-more\" href=\"https:\/\/anbolt.net\/index.php\/2025\/06\/05\/armbian%e5%ae%89%e8%a3%85%e6%97%a0%e7%ba%bf%e7%83%ad%e7%82%b9\/\" aria-label=\"\u9605\u8bfb Armbian\u5b89\u88c5\u65e0\u7ebf\u70ed\u70b9\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/comments?post=131"}],"version-history":[{"count":1,"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/posts\/131\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/media?parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/categories?post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anbolt.net\/index.php\/wp-json\/wp\/v2\/tags?post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}