Linux command
iw-dev 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo iw dev [wlp] set type monitor
Example
sudo iw dev [wlp] set type managed
Example
sudo iw dev [wlp] set channel [channel_number]
Example
sudo iw dev [wlp] set freq [freq_in_mhz]
Example
iw dev [wlp] station dump
Example
sudo iw dev [wlp] interface add "[vif_name]" type monitor addr [12:34:56:aa:bb:cc]
Delete
sudo iw dev "[vif_name]" del
说明
iw dev is a subcommand of iw for manipulating wireless network interfaces. It controls interface modes, channels, frequencies, and manages virtual interfaces. Monitor mode allows passive packet capture. Managed mode is for normal client connections. The interface typically must be brought down (ip link set down) before changing modes.
参数
- set type _MODE_
- Set interface mode: managed, monitor, ibss, mesh, etc.
- set channel _NUM_
- Set wireless channel number
- set freq _MHZ_
- Set wireless frequency in MHz
- station dump
- Show connected station information
- interface add _NAME_ type _MODE_
- Create virtual interface
- del
- Delete interface
- scan
- Trigger scan for networks
FAQ
What is the iw-dev command used for?
iw dev is a subcommand of iw for manipulating wireless network interfaces. It controls interface modes, channels, frequencies, and manages virtual interfaces. Monitor mode allows passive packet capture. Managed mode is for normal client connections. The interface typically must be brought down (ip link set down) before changing modes.
How do I run a basic iw-dev example?
Run `sudo iw dev [wlp] set type monitor` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does set type _MODE_ do in iw-dev?
Set interface mode: managed, monitor, ibss, mesh, etc.