PVE配置WIFI网卡
原创大约 1 分钟
操作环境说明,本操作基于proxmox-ve: 8.1.0实操
# root@:~# pveversion -v
proxmox-ve: 8.1.0 (running kernel: 6.5.11-7-pve)
pve-manager: 8.1.3 (running version: 8.1.3/b46aac3b42da5d15)
背景介绍
我的硬件上有一个无线WIFI6网卡,无线网卡的好处是硬件设备可以放在弱电箱,电视后面等位置而无需有线网卡连接。甚至可以手机共享WIFI使用。
操作步骤
lspci | grep -i wi-fi
81:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
lspci -vvv | grep -i -A 50 wi-fi
81:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
Subsystem: Intel Corporation Wi-Fi 6 AX200
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
apt update
apt install firmware-iwlwifi -y
modprobe iwlwifi
ethtool -i wlp1xxs0
driver: iwlwifi
version: 6.2.16-3-pve
firmware-version: 72.daa05125.0 cc-a0-72.ucode
expansion-rom-version:
bus-info: 0000:81:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
ip link show
## 第一步骤
apt update
apt install wpasupplicant iw wireless-tools -y
## 配置配置文件
#nano /etc/wpa_supplicant/config
#wpa_passphrase "<wifi_ssid>" "<password>" >> /etc/wpa_supplicant/config
如果遇到特殊字符 可以用 "" '' '\@' 进行处理
ctrl_interface=/run/wpa_supplicant
update_config=1
network={
ssid="GUEST"
psk="xxxx"
priority=5
}
network={
ssid="<wifi_ssid>"
#psk="<password>"
psk=b21a97a3f83a3437c1230f0d92675dd82217b32bd8ffcdb422c0659f42d99569
}
vim /etc/network/interfaces
auto wlp1xxs0
iface wlp1xxs0 inet dhcp
wpa-conf /etc/wpa_supplicant/config
ifup wlp1xxs0
iwlist wlp129s0 scan | grep ESSID
#主动连接wifi
wpa_supplicant -B -i wlp1xxs0 -c /etc/wpa_supplicant/config
iwconfig
iwlist wlp1xxs0 channel
iw dev