以下操作基于Debian系統(tǒng)
換源
vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian buster main contrib non-free
deb http://mirrors.aliyun.com/debian buster-proposed-updates main contrib non-free
deb http://mirrors.aliyun.com/debian buster-updates main contrib non-free
deb http://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
安裝ifupdown2
rm /etc/apt/sources.list.d/pve-enterprise.list
echo 'deb http://download./debian/pve buster pve-no-subscription' >> /etc/apt/sources.list.d/pve-no-subscription.list
apt-get update
apt-get install -y ifupdown2
下載vim
apt-get update
apt-get install -y vim
echo "alias vi='vim'" >> ~/.bashrc
source ~/.bashrc
下載wpasupplicant 連接Wi-Fi
apt-get install -y wpasupplicant
編輯/etc/network/interfaces
echo '#allow-hotplug wlp2s0
auto wlp2s0
iface wlp2s0 inet dhcp
wpa-conf /etc/wpa.conf' >> /etc/network/interfaces
搜索Wi-Fi
wpa_cli -i wlp2s0 scan #搜索附件Wi-Fi熱點(diǎn)
wpa_cli -i wlp2s0 scan_result #顯示搜索Wi-Fi熱點(diǎn)
wpa_cli -i wlp2s0 status #當(dāng)前WPA/EAPOL/EAP通訊狀態(tài)
配置Wi-Fi
wpa_passphrase WiFi名稱 WiFi密碼 >> /etc/wpa.conf
cat /etc/wpa.conf
network={
ssid="WiFi名稱"
scan_ssid=1 #表示可以掃描隱藏WiFi
#psk="WiFi密碼"
priority=1 #優(yōu)先級
psk=XXXXXX
}
重啟服務(wù)
/etc/init.d/networking restart
開啟Wi-Fi
ifup wlp2s0
關(guān)閉Wi-Fi
ifdown wlp2s0
cat /etc/network/interfaces
#示例
auto lo
iface lo inet loopback
iface enp3s0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.100.2/24
bridge-ports enp3s0 wlp2s0
bridge-stp off
bridge-fd 0
auto wlp2s0
iface wlp2s0 inet dhcp
wpa-conf /etc/wpa.conf
引用列表:
Proxmox 連接 WIFI 關(guān)于debian命令行怎么連接wifi 隱藏SSID和STA搜索隱藏SSID原理 Linux 使用wpa_supplicant手動(dòng)配置連接wifi wpa_supplicant及wpa_cli使用方法 wpa_supplicant 常用操作
學(xué)習(xí)列表:
pve 安裝ifupdown2 Proxmox VE 6.1從零帶你了解之-- 初始配置與管理 Proxmox VE 6.1從零帶你了解系列 linux 中幾種bond模式詳解 bonging Proxmox VE(PVE) 進(jìn)行網(wǎng)卡直通 ProxmoxVE 開啟硬件直通 openwrt如何添加板載無線網(wǎng)卡 軟路由帶7260AC驅(qū)動(dòng)固件
|