我已使用以下三个命令成功将 WiFi 适配器设置为监控模式:
sudo ip link set wlan0 down
sudo iw wlan0 set monitor control
sudo ip link set wlan0 up
但重启后它似乎被重置回“非监控”(管理?)模式。我该如何防止这种情况发生?
这是我的/etc/netplan/50-cloud-init.yaml
:
network:
ethernets:
enp2s0:
addresses:
- 10.0.0.10/24
gateway4: 10.0.0.1
nameservers:
addresses:
- [[REMOVED]
[[REMOVED]]:
match:
macaddress: [[REMOVED]]
set-name: wlan0
version: 2