{"id":2218,"date":"2025-08-02T21:58:27","date_gmt":"2025-08-02T13:58:27","guid":{"rendered":"https:\/\/www.madbull.site\/?p=2218"},"modified":"2025-08-04T19:04:10","modified_gmt":"2025-08-04T11:04:10","slug":"pve%e7%8e%af%e5%a2%83%e5%af%b9%e7%bd%91%e5%8f%a3%e5%92%8cwifi%e7%9a%84%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.madbull.site\/?p=2218","title":{"rendered":"PVE\u73af\u5883\u5bf9\u7f51\u53e3\u548cwifi\u7684\u914d\u7f6e"},"content":{"rendered":"\n<p>\u6700\u8fd1\u5165\u624b\u4e86 \u6781\u6469\u5ba2K6\u5c0f\u4e3b\u673a\uff0c\u5b89\u88c5\u4e86PVE8.4.0\u73af\u5883\uff0c\u7f51\u7edc\u786c\u4ef6\u67092\u4e2a\u53cc\u7ede\u7ebf\u7f51\u53e3\uff0c1\u4e2awifi\u7f51\u5361\u3002\u56e0\u4e3a\u5728PVE\u91cc\u5b89\u88c5\u7684\u865a\u62df\u673a\uff0c\u5728\u8bbe\u7f6e\u7f51\u5361\u65f6\uff0c\u9700\u8981\u7ed1\u5b9a\u5728\u7f51\u6865\u4e0a\uff0c\u6240\u4ee5\u8ba1\u5212\u628a\u4e09\u4e2a\u7f51\u5361\u5168\u90e8\u4f5c\u4e3a\u7f51\u6865\uff0c\u521b\u5efa\u865a\u62df\u7f51\u5361\u6765\u8bbe\u7f6e\u7f51\u7edc\u3002\u6240\u4ee5\u5bf9\u7f51\u7edc\u505a\u4e86\u4ee5\u4e0b\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1\u3001\u8bbe\u7f6e\u7f51\u53e3\u540d\u79f0<\/strong><\/h2>\n\n\n\n<p>1.1\u3001\u4f7f\u7528 ip link show \u6216\u8005 ifconfig -a \u627e\u5230\u5404\u4e2a\u7f51\u53e3\u7684MAC\u5730\u5740\u3002<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>1.2\u3001\u521b\u5efa\u914d\u7f6e\u6587\u4ef6 \/etc\/udev\/rules.d\/70-interface.rules \u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>SUBSYSTEM==\"net\", ACTION==\"add\", ATTR{address}==\"xx:xx:xx:xx:xx:xx\", NAME=\"eth0\"\nSUBSYSTEM==\"net\", ACTION==\"add\", ATTR{address}==\"xx:xx:xx:xx:xx:xx\", NAME=\"eth1\"\nSUBSYSTEM==\"net\", ACTION==\"add\", ATTR{address}==\"xx:xx:xx:xx:xx:xx\", NAME=\"wlan0\"<\/code><\/pre>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u5176\u4e2d xx:xx:xx:xx:xx:xx \u662f\u4e09\u4e2a\u7f51\u53e3\u7684MAC\u5730\u5740\uff0c\u8fd9\u6837\u91cd\u542f\u8bbe\u5907\u540e\uff0c\u4e09\u4e2a\u7f51\u53e3\u540d\u5b57\u4f1a\u6539\u6210 eth0 eth1 wlan0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2\u3001\u7ed9 wifi \u589e\u52a0\u5bc6\u7801<\/strong><\/h2>\n\n\n\n<p>\u53ef\u4ee5\u53c2\u8003\u5f80\u671f\u6587\u7ae0\uff1a<a href=\"https:\/\/www.madbull.site\/?p=865\">https:\/\/www.madbull.site\/?p=865<\/a>\uff0c\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2.1\u3001\u9700\u8981\u5b89\u88c5 wpasupplicant wireless-tools iw \u7b49\u5de5\u5177<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>apt install wireless-tools wpasupplicant iw<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\uff0csystemctl enable wpa_supplicant.service<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>2.2\u3001\u8bbe\u7f6ewifi\u5bc6\u7801\uff0c\u521b\u5efa \/etc\/wpa_supplicant\/wpa_supplicant.conf \u6587\u4ef6\uff0c\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\n\nnetwork={\n    ssid=\"yourwifissid\"\n    psk=\"yourwifipassword\"\n    key_mgmt=WPA-PSK\n}<\/code><\/pre>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u5176\u4e2d ssid \u548c psk \u4fee\u6539\u6210 wifi\u7684\u8d26\u53f7\u548c\u5bc6\u7801\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3\u3001\u8bbe\u7f6e\u7f51\u6865\u3001\u589e\u52a0IP\u3001\u63a9\u7801\u3001\u7f51\u5173\u7b49\u914d\u7f6e<\/strong><\/h2>\n\n\n\n<p>3.1\u3001\u4fee\u6539 \/etc\/network\/interfaces\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>auto lo\niface lo inet loopback\n\nauto vmbr0\niface vmbr0 inet static\n        address 192.168.xx.xx\n        netmask 255.255.255.0\n        gateway 192.168.xx.xx\n        bridge-ports eth0\n        bridge-stp off\n        bridge-fd 0\n\nauto vmbr1\niface vmbr1 inet manual\n        bridge-ports eth1\n        bridge-stp off\n        bridge-fd 0\n\nauto wlan0\niface wlan0 inet manual\n    wpa-driver nl80211,wext\n    wpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf\n\nauto vmwifi\niface vmwifi inet static\n        pre-up sleep 5\n        address 192.168.xx.xx\n        netmask 255.255.255.0\n        bridge-ports wlan0\n        bridge-stp off\n        bridge-fd 0\n\nsource \/etc\/network\/interfaces.d\/*<\/code><\/pre>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u66ff\u6362\u914d\u7f6e\u91cc\u7684 xx.xx \u4e3a\u81ea\u5df1\u8bbe\u5b9a\u7684 IP \u548c \u7f51\u5173\u3002<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>3.2\u3001\u91cd\u542f networking \u670d\u52a1\uff0csystemctl restart networking<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6216\u8005\u91cd\u542fPVE\u670d\u52a1\u5668\u6765\u9a8c\u8bc1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u6700\u7ec8\u7ed3\u679c<\/strong><\/h2>\n\n\n\n<p>\u53ef\u4ee5\u6253\u5f00 PVE \u7ba1\u7406\u9875\u9762\uff08\u9ed8\u8ba4\u7aef\u53e3\uff1a8006\uff09\u67e5\u770b\u7f51\u7edc\u8bbe\u5907\u914d\u7f6e\u60c5\u51b5\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div style=\"margin-top:var(--wp--preset--spacing--10);margin-bottom:var(--wp--preset--spacing--10);height:0px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2637\" height=\"530\" src=\"https:\/\/www.madbull.site\/wp-content\/uploads\/2025\/08\/111.png\" alt=\"\" class=\"wp-image-2219\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5165\u624b\u4e86 \u6781\u6469\u5ba2K6\u5c0f\u4e3b\u673a\uff0c\u5b89\u88c5\u4e86PVE8.4.0\u73af\u5883\uff0c\u7f51\u7edc\u786c\u4ef6\u67092\u4e2a\u53cc\u7ede\u7ebf\u7f51\u53e3\uff0c1\u4e2awifi\u7f51\u5361\u3002\u56e0\u4e3a\u5728P [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":450,"comment_status":"open","ping_status":"open","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[135,131],"tags":[237],"class_list":["post-2218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-131","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts\/2218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2218"}],"version-history":[{"count":3,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts\/2218\/revisions"}],"predecessor-version":[{"id":2259,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/posts\/2218\/revisions\/2259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=\/wp\/v2\/media\/450"}],"wp:attachment":[{"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.madbull.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}