mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 22:15:42 +02:00
Iw-dev: add page iw: information link {dev, phy, reg, help examples} (#14133)
* Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
5499b1cf34
commit
32cae5420e
2 changed files with 51 additions and 1 deletions
33
pages/linux/iw-dev.md
Normal file
33
pages/linux/iw-dev.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# iw dev
|
||||
|
||||
> Show and manipulate wireless devices.
|
||||
> For a list of channels, frequencies and reg information: <https://wireless.docs.kernel.org/en/latest/en/developers/documentation/channellist.html>.
|
||||
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
|
||||
|
||||
- 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`
|
|
@ -1,7 +1,8 @@
|
|||
# iw
|
||||
|
||||
> Show and manipulate wireless devices.
|
||||
> More information: <https://manned.org/iw>.
|
||||
> See also: `iw dev`.
|
||||
> More information: <https://wireless.docs.kernel.org/en/latest/en/users/documentation/iw.html>.
|
||||
|
||||
- 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`
|
||||
|
|
Loading…
Add table
Reference in a new issue