diff --git a/pages/linux/iw-dev.md b/pages/linux/iw-dev.md new file mode 100644 index 0000000000..d464dce877 --- /dev/null +++ b/pages/linux/iw-dev.md @@ -0,0 +1,33 @@ +# iw dev + +> Show and manipulate wireless devices. +> For a list of channels, frequencies and reg information: . +> More information: . + +- Set device to monitor mode (interface must be down first. See also `ip link`): + +`sudo iw dev {{wlp}} set type monitor` + +- Set device to managed mode (interface must be down first): + +`sudo iw dev {{wlp}} set type managed` + +- Set device WiFi channel (device must first be in monitor mode with the interface up): + +`sudo iw dev {{wlp}} set channel {{channel_number}}` + +- Set device WiFi frequency in Mhz (device must first be in monitor mode with the interface up): + +`sudo iw dev {{wlp}} set freq {{freq_in_mhz}}` + +- Show all known station info: + +`iw dev {{wlp}} station dump` + +- Create a virtual interface in monitor mode with a specific MAC address: + +`sudo iw dev {{wlp}} interface add "{{vif_name}}" type monitor addr {{12:34:56:aa:bb:cc}}` + +- Delete virtual interface: + +`sudo iw dev "{{vif_name}}" del` diff --git a/pages/linux/iw.md b/pages/linux/iw.md index 23626751de..8ef8dbb43f 100644 --- a/pages/linux/iw.md +++ b/pages/linux/iw.md @@ -1,7 +1,8 @@ # iw > Show and manipulate wireless devices. -> More information: . +> See also: `iw dev`. +> More information: . - Scan for available wireless networks: @@ -18,3 +19,19 @@ - Show information about the current connection: `iw dev {{wlp}} link` + +- List all physical and logical wireless network interfaces: + +`iw dev` + +- List all wireless capabilities for all physical hardware interfaces: + +`iw phy` + +- List the kernel's current wireless regulatory domain information: + +`iw reg get` + +- Display help for all commands: + +`iw help`