{"id":476,"date":"2013-08-02T00:09:05","date_gmt":"2013-08-01T16:09:05","guid":{"rendered":"http:\/\/blog.marvelplanet.tk\/?p=476"},"modified":"2013-08-02T00:09:05","modified_gmt":"2013-08-01T16:09:05","slug":"raspberry-wlan0-ifconfig-fail","status":"publish","type":"post","link":"https:\/\/marvelliu.space\/?p=476","title":{"rendered":"raspberry wlan0 ifconfig fail"},"content":{"rendered":"<p>\u6811\u8393\u6d3e\u7684wifi\u7f51\u5361\u603b\u662f\u4e0a\u4e0d\u4e86\u7f51\uff0c\u641e\u4e86\u5f88\u4e45\u90fd\u627e\u4e0d\u5230\u89e3\u51b3\u529e\u6cd5<\/p>\n<p>\u63d0\u793a\u9519\u8bef\u662f\u5f53\u8fd0\u884cifconfig wlan0\u5206\u914dip\u65f6\u51fa\u9519\uff1a<\/p>\n<p>[20014.112395] wlan0: deauthenticating from xxx by local choice (reason=3)<\/p>\n<p>\u4f46\u662flsusb\u65f6\u53d1\u73b0\u8bbe\u5907\u8fd8\u5728\uff0c\u5e94\u8be5\u4e0d\u662f\u7535\u6e90\u7684\u95ee\u9898\uff0c\u767e\u601d\u4e0d\u5f97\u5176\u89e3<\/p>\n<p>google\u4e86\u5f88\u4e45\u7ec8\u4e8e\u53d1\u73b0\u5f53\u524d\u5c45\u7136\u6709wpa\u7684\u8fdb\u7a0b\uff08\u6211\u7684wlan0\u662f\u65e0\u5bc6\u7801\u7684\uff09<br \/>\npi@raspberrypi ~ $ ps aux|grep wpa<br \/>\nroot      2071  0.0  0.3   5952   860 ?        Ss   23:47   0:00 \/sbin\/wpa_supplicant -s -B -P \/var\/run\/wpa_supplicant.wlan0.pid -i wlan0 -W -D nl80211,wext -c \/etc\/wpa_supplicant\/wpa_supplicant.conf<br \/>\nroot      2153  0.0  0.1   2276   380 ?        Ss   23:47   0:00 \/sbin\/wpa_cli -B -P \/var\/run\/wpa_action.wlan0.pid -i wlan0 -p \/var\/run\/wpa_supplicant -a \/sbin\/wpa_action<br \/>\npi        2726  0.0  0.3   3544   868 pts\/1    S+   23:51   0:00 grep &#8211;color=auto wpa<\/p>\n<p>\u6240\u4ee5\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u6740wpa<br \/>\npi@raspberrypi ~ $ <strong>sudo killall wpa_supplicant<\/strong><\/p>\n<p>\u53d1\u73b0\u91cd\u65b0\u8fde\u63a5ap\u5c31\u6ca1\u95ee\u9898\u4e86<br \/>\n[  322.419859] wlan0: RX AssocResp from 4c:e6:76:a3:d5:82 (capab=0x401 status=0 aid=4)<br \/>\n[  322.435926] wlan0: associated<\/p>\n<p>\u8c28\u614e\u6000\u7591\u662f\u56e0\u4e3a \/etc\/network\/interface\u4e2d\u51fa\u73b0\u7684\u4e00\u6bb5wpa\u7684\u95ee\u9898\uff1a<\/p>\n<p>allow-hotplug wlan0<br \/>\niface wlan0 inet manual<br \/>\n<strong>wpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/strong><br \/>\n\u90a3\u4e48\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u5c06\u5176\u6ce8\u91ca\u6389\u5373\u53ef\u3002\u3002\u3002<\/p>\n<p>iface default inet dhcp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6811\u8393\u6d3e\u7684wifi\u7f51\u5361\u603b\u662f\u4e0a\u4e0d\u4e86\u7f51\uff0c\u641e\u4e86\u5f88\u4e45\u90fd\u627e\u4e0d\u5230\u89e3\u51b3\u529e\u6cd5 \u63d0\u793a\u9519\u8bef\u662f\u5f53\u8fd0\u884cifconfig wlan0\u5206\u914dip\u65f6\u51fa\u9519\uff1a [20014.112395] wlan0: deauthenticating from xxx by local choice (reason=3) \u4f46\u662flsusb\u65f6\u53d1\u73b0\u8bbe\u5907\u8fd8\u5728\uff0c\u5e94\u8be5\u4e0d\u662f\u7535\u6e90\u7684\u95ee\u9898\uff0c\u767e\u601d\u4e0d\u5f97\u5176\u89e3 google\u4e86\u5f88\u4e45\u7ec8\u4e8e\u53d1\u73b0\u5f53\u524d\u5c45\u7136\u6709wpa\u7684\u8fdb\u7a0b\uff08\u6211\u7684wlan0\u662f\u65e0\u5bc6\u7801\u7684\uff09 pi@raspberrypi ~ $ ps aux|grep wpa root 2071 0.0 0.3 5952 860 ? Ss 23:47 0:00 \/sbin\/wpa_supplicant -s -B -P \/var\/run\/wpa_supplicant.wlan0.pid -i wlan0 -W -D nl80211,wext -c \/etc\/wpa_supplicant\/wpa_supplicant.conf root 2153 0.0 0.1 2276 380 ? Ss 23:47 0:00 \/sbin\/wpa_cli -B -P &hellip; <a href=\"https:\/\/marvelliu.space\/?p=476\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;raspberry wlan0 ifconfig fail&#8221;<\/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":[21],"tags":[30],"class_list":["post-476","post","type-post","status-publish","format-standard","hentry","category-tech","tag-raspberrypi"],"_links":{"self":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476"}],"version-history":[{"count":1,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":477,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions\/477"}],"wp:attachment":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}