差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版 前次修改
下次修改
前次修改
tech:debian_net_tips [2022/01/23 19:22] jonathantech:debian_net_tips [2022/01/23 21:38] (目前版本) jonathan
行 46: 行 46:
 : :
 </file> </file>
-  - 使用 ifup 啟動 wifi 網卡, 指令類似以下<cli>+  - 啟動 wpa_supplicant 服務<cli>
 systemctl restart wpa_supplicant systemctl restart wpa_supplicant
-ifup wlp0s20f3+</cli> 
 +  - 重啟網路服務<cli> 
 +systemctl restart networking.service 
 +</cli> 
 +  - 驗證是否正常連上 WiFi AP<cli> 
 +wpa_cli -i wlp0s20f3 status 
 +</cli>如果正確連上應該類似以下的訊息<cli> 
 +root@nuc:~# wpa_cli -i wlp0s20f3 status 
 +bssid=28:6c:07:68:fe:89 
 +freq=0 
 +ssid=ichiayi 
 +id=0 
 +mode=station 
 +wifi_generation=5 
 +pairwise_cipher=CCMP 
 +group_cipher=TKIP 
 +key_mgmt=WPA2-PSK 
 +wpa_state=COMPLETED 
 +ip_address=192.168.31.251 
 +address=04:ea:56:87:58:34 
 +uuid=14ea0bcc-c7f5-592c-ba49-159bbe31e49d
 </cli> </cli>
   - 使用 ip addr show wlp0s20f3 就可看到目前的設定<cli>   - 使用 ip addr show wlp0s20f3 就可看到目前的設定<cli>
行 54: 行 74:
 3: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 3: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
     link/ether 04:ea:56:87:58:34 brd ff:ff:ff:ff:ff:ff     link/ether 04:ea:56:87:58:34 brd ff:ff:ff:ff:ff:ff
-    inet 192.168.11.5/24 scope global wlp0s20f3 +    inet 192.168.31.251/24 brd 192.168.31.255 scope global dynamic wlp0s20f3 
-       valid_lft forever preferred_lft forever +       valid_lft 39290sec preferred_lft 39290sec 
-    inet6 2001:b011:380c:360d:6ea:56ff:fe87:5834/64 scope global dynamic mngtmpaddr +    inet6 fe80::6ea:56ff:fe87:5834/64 scope link 
-       valid_lft 576sec preferred_lft 576sec +
-    inet6 fe80::6ea:56ff:fe87:5834/64 scope link+
        valid_lft forever preferred_lft forever        valid_lft forever preferred_lft forever
 </cli> </cli>
行 74: 行 92:
 </cli> </cli>
 </note> </note>
 +
 +<WRAP center round alert 60%>
 +**針對在 PVE 環境將 WiFi 網卡加入 Bridge 並沒有設定成功**
 +  * 目前似乎是 **bridging does not work with WiFi** (主要是 VM 要使用 WiFi Bridge 的問題)
 +  * 找尋的相關資料如下: 
 +    * https://unix.stackexchange.com/questions/363332/how-do-i-configure-a-network-interface-bridge-from-wifi-to-ethernet-with-debian
 +    * https://pve.proxmox.com/wiki/WLAN
 +    * https://forum.proxmox.com/threads/wlan-doesnt-stay-in-bridge.49978/
 +    * https://blog.csdn.net/qq_19905867/article/details/114118476
 +    * https://www.reddit.com/r/Proxmox/comments/pttmr2/can_i_use_proxmox_with_only_wifi_broken_ethernet/
 +</WRAP>
  
 ===== 參考網址 ===== ===== 參考網址 =====
  • tech/debian_net_tips.1642936925.txt.gz
  • 上一次變更: 2022/01/23 19:22
  • jonathan