{"id":2217,"date":"2021-12-30T09:09:33","date_gmt":"2021-12-30T01:09:33","guid":{"rendered":"https:\/\/www.wjxy.net.cn\/?p=2217"},"modified":"2023-10-04T06:31:47","modified_gmt":"2023-10-03T22:31:47","slug":"proxmox-vepve%e8%bf%9e%e6%8e%a5wifi%e5%8f%8a%e4%b8%80%e4%ba%9b%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wjxy.net.cn\/?p=2217","title":{"rendered":"Proxmox VE(PVE)\u8fde\u63a5WiFi\u53ca\u4e00\u4e9b\u914d\u7f6e"},"content":{"rendered":"<h2>\u4ee5\u4e0b\u64cd\u4f5c\u57fa\u4e8eDebian\u7cfb\u7edf<br \/>\n\u6362\u6e90<\/h2>\n<p><code>vi \/etc\/apt\/sources.list<br \/>\ndeb http:\/\/mirrors.aliyun.com\/debian buster main contrib non-free<br \/>\ndeb http:\/\/mirrors.aliyun.com\/debian buster-proposed-updates main contrib non-free<br \/>\ndeb http:\/\/mirrors.aliyun.com\/debian buster-updates main contrib non-free<br \/>\ndeb http:\/\/mirrors.aliyun.com\/debian-security\/ buster\/updates main non-free contrib<code><br \/>\n<\/code><\/code><\/p>\n<h2><code><code>\u5b89\u88c5ifupdown2<br \/>\n<\/code><\/code><\/h2>\n<p><code><code><code>rm \/etc\/apt\/sources.list.d\/pve-enterprise.list<br \/>\necho 'deb http:\/\/download.proxmox.com\/debian\/pve buster pve-no-subscription' &gt;&gt; \/etc\/apt\/sources.list.d\/pve-no-subscription.list<br \/>\napt-get update<br \/>\napt-get install -y ifupdown2<\/code><\/code><\/code><\/p>\n<h2><strong>\u4e0b\u8f7dwpasupplicant\u8fde\u63a5Wi-Fi<\/strong><\/h2>\n<p><code>apt-get install -y wpasupplicant<\/code><\/p>\n<h2>\u7f16\u8f91\/etc\/network\/interfaces<\/h2>\n<p><code>echo '#allow-hotplug wlp2s0<br \/>\nauto wlp2s0<br \/>\niface wlp2s0 inet dhcp<br \/>\nwpa-conf \/etc\/wpa.conf' &gt;&gt; \/etc\/network\/interfaces<\/code><\/p>\n<h2>\u641c\u7d22Wi-Fi<\/h2>\n<p><code>wpa_cli -i wlp2s0 scan         \u3000     #\u641c\u7d22\u9644\u4ef6Wi-Fi\u70ed\u70b9<br \/>\nwpa_cli -i wlp2s0 scan_result \u3000      #\u663e\u793a\u641c\u7d22Wi-Fi\u70ed\u70b9<br \/>\nwpa_cli -i wlp2s0 status              #\u5f53\u524dWPA\/EAPOL\/EAP\u901a\u8baf\u72b6\u6001<\/code><\/p>\n<h2>\u914d\u7f6eWi-Fi<\/h2>\n<p><code>wpa_passphrase WiFi\u540d\u79f0 WiFi\u5bc6\u7801 &gt;&gt; \/etc\/wpa.conf<\/code><\/p>\n<p>cat \/etc\/wpa.conf<\/p>\n<p>network={<br \/>\nssid=&#8221;WiFi\u540d\u79f0&#8221;<br \/>\nscan_ssid=1 #\u8868\u793a\u53ef\u4ee5\u626b\u63cf\u9690\u85cfWiFi<br \/>\n#psk=&#8221;WiFi\u5bc6\u7801&#8221;<br \/>\npriority=1 #\u4f18\u5148\u7ea7<br \/>\npsk=XXXXXX<br \/>\n}<\/p>\n<p>\u91cd\u542f\u670d\u52a1<\/p>\n<p><code>\/etc\/init.d\/networking restart<\/code><\/p>\n<h2>\u5f00\u542fWi-Fi<\/h2>\n<p><code>ifup wlp2s0<\/code><\/p>\n<h2>\u5173\u95edWi-Fi<\/h2>\n<p><code>ifdown wlp2s0<\/code><\/p>\n<p>cat \/etc\/network\/interfaces<\/p>\n<p>#\u793a\u4f8b<br \/>\n<code>auto lo<br \/>\niface lo inet loopback<\/code><\/p>\n<p>iface enp3s0 inet manual<\/p>\n<p>auto vmbr0<br \/>\niface vmbr0 inet static<br \/>\naddress 192.168.100.2\/24<br \/>\nbridge-ports enp3s0 wlp2s0<br \/>\nbridge-stp off<br \/>\nbridge-fd 0<\/p>\n<p>auto wlp2s0<br \/>\niface wlp2s0 inet dhcp<br \/>\nwpa-conf \/etc\/wpa.conf<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<br \/>\n\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300cAstrologer__\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<br \/>\n\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/blog.csdn.net\/qq_19905867\/article\/details\/114118476<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u4e0b\u64cd\u4f5c\u57fa\u4e8eDebian\u7cfb\u7edf \u6362\u6e90 vi \/etc\/apt\/sources.list deb http:\/\/m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2217"}],"collection":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2217"}],"version-history":[{"count":2,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2217\/revisions"}],"predecessor-version":[{"id":2219,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/2217\/revisions\/2219"}],"wp:attachment":[{"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjxy.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}