Updated 2026/05/12
It is easy to put a wireless interface into monitor mode; however, the Network Manager will immediately change it back to managed mode. To prevent this from occurring, we need to exclude the wireless interface from being managed by the Network Manager, and manage it with Systemd-Networkd:
[device-mac80cc9c81f291-unmanaged]
match-device=mac:80:cc:9c:81:f2:91
mananged=0
[Match]
Name=wlan1
Type=wlan
[Network]
DHCP=ipv4
ctrl_interface=/run/wpa_supplicant
ctrl_interface_group=root
update_config=1
country=US
network={
ssid="network-name"
psk="secret-password"
priority=1
}
To put a wireless interface in monitor mode:
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo ip link set wlan0 up
To check the interface is in monitor mode:
iw wlan0 info
To install WireShark on Debian or the Raspberry Pi OS:
sudo apt update
sudo apt install wireshark
Be sure add your users to the wireshark group:
sudo gpasswd -a <user_name> wireshark