Advertisement
Guest User

Untitled

a guest
Jan 13th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.76 KB | None | 0 0
  1. alex@GB-BXA8-5557:~$ sudo iw wlan0 link
  2. [sudo] password for alex:
  3. Usage: iw [options] command
  4. Options:
  5. --debug enable netlink debugging
  6. --version show version (3.17)
  7. Commands:
  8. help [command]
  9. Print usage for all or a specific command, e.g.
  10. "help wowlan" or "help wowlan enable".
  11.  
  12. event [-t] [-r] [-f]
  13. Monitor events from the kernel.
  14. -t - print timestamp
  15. -r - print relative timstamp
  16. -f - print full frame for auth/assoc etc.
  17.  
  18. features
  19.  
  20.  
  21. commands
  22. list all known commands and their decimal & hex value
  23.  
  24. phy
  25. list
  26. List all wireless devices and their capabilities.
  27.  
  28. phy <phyname> info
  29. Show capabilities for the specified wireless device.
  30.  
  31. dev
  32. List all network interfaces for wireless hardware.
  33.  
  34. dev <devname> info
  35. Show information for this interface.
  36.  
  37. dev <devname> del
  38. Remove this virtual interface
  39.  
  40. dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
  41. phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*]
  42. Add a new virtual interface with the given configuration.
  43. Valid interface types are: managed, ibss, monitor, mesh, wds.
  44.  
  45. The flags are only used for monitor interfaces, valid flags are:
  46. none: no special flags
  47. fcsfail: show frames with FCS errors
  48. control: show control frames
  49. otherbss: show frames from other BSSes
  50. cook: use cooked mode
  51. active: use active mode (ACK incoming unicast packets)
  52.  
  53. The mesh_id is used only for mesh mode.
  54.  
  55. dev <devname> ibss join <SSID> <freq in MHz> [HT20|HT40+|HT40-|NOHT|5MHZ|10MHZ] [fixed-freq] [<fixed bssid>] [beacon-interval <TU>] [basic-rates <rate in Mbps,rate2,...>] [mcast-rate <rate in Mbps>] [key d:0:abcde]
  56. Join the IBSS cell with the given SSID, if it doesn't exist create
  57. it on the given frequency. When fixed frequency is requested, don't
  58. join/create a cell on a different frequency. When a fixed BSSID is
  59. requested use that BSSID and do not adopt another cell's BSSID even
  60. if it has higher TSF and the same SSID. If an IBSS is created, create
  61. it with the specified basic-rates, multicast-rate and beacon-interval.
  62.  
  63. dev <devname> ibss leave
  64. Leave the current IBSS cell.
  65.  
  66. dev <devname> station dump
  67. List all stations known, e.g. the AP on managed interfaces
  68.  
  69. dev <devname> station set <MAC address> mesh_power_mode <active|light|deep>
  70. Set link-specific mesh power mode for this station
  71.  
  72. dev <devname> station set <MAC address> vlan <ifindex>
  73. Set an AP VLAN for this station.
  74.  
  75. dev <devname> station set <MAC address> plink_action <open|block>
  76. Set mesh peer link action for this station (peer).
  77.  
  78. dev <devname> station del <MAC address>
  79. Remove the given station entry (use with caution!)
  80.  
  81. dev <devname> station get <MAC address>
  82. Get information for a specific station.
  83.  
  84. dev <devname> survey dump
  85. List all gathered channel survey data
  86.  
  87. dev <devname> mesh leave
  88. Leave a mesh.
  89.  
  90. dev <devname> mesh join <mesh ID> [[freq <freq in MHz> <HT20|HT40+|HT40-|NOHT>] [basic-rates <rate in Mbps,rate2,...>]], [mcast-rate <rate in Mbps>] [beacon-interval <time in TUs>] [dtim-period <value>] [vendor_sync on|off] [<param>=<value>]*
  91. Join a mesh with the given mesh ID with frequency, basic-rates,
  92. mcast-rate and mesh parameters. Basic-rates are applied only if
  93. frequency is provided.
  94.  
  95. dev <devname> mpath dump
  96. List known mesh paths.
  97.  
  98. dev <devname> mpath set <destination MAC address> next_hop <next hop MAC address>
  99. Set an existing mesh path's next hop.
  100.  
  101. dev <devname> mpath new <destination MAC address> next_hop <next hop MAC address>
  102. Create a new mesh path (instead of relying on automatic discovery).
  103.  
  104. dev <devname> mpath del <MAC address>
  105. Remove the mesh path to the given node.
  106.  
  107. dev <devname> mpath get <MAC address>
  108. Get information on mesh path to the given node.
  109.  
  110. dev <devname> scan [-u] [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [ssid <ssid>*|passive]
  111. Scan on the given frequencies and probe for the given SSIDs
  112. (or wildcard if not given) unless passive scanning is requested.
  113. If -u is specified print unknown data in the scan results.
  114. Specified (vendor) IEs must be well-formed.
  115.  
  116. dev <devname> scan trigger [freq <freq>*] [ies <hex as 00:11:..>] [meshid <meshid>] [lowpri,flush,ap-force] [ssid <ssid>*|passive]
  117. Trigger a scan on the given frequencies with probing for the given
  118. SSIDs (or wildcard if not given) unless passive scanning is requested.
  119.  
  120. dev <devname> scan dump [-u]
  121. Dump the current scan results. If -u is specified, print unknown
  122. data in scan results.
  123.  
  124. reg get
  125. Print out the kernel's current regulatory domain information.
  126.  
  127. reg set <ISO/IEC 3166-1 alpha2>
  128. Notify the kernel about the current regulatory domain.
  129.  
  130. dev <devname> auth <SSID> <bssid> <type:open|shared> <freq in MHz> [key 0:abcde d:1:6162636465]
  131. Authenticate with the given network.
  132.  
  133.  
  134. dev <devname> connect [-w] <SSID> [<freq in MHz>] [<bssid>] [key 0:abcde d:1:6162636465]
  135. Join the network with the given SSID (and frequency, BSSID).
  136. With -w, wait for the connect to finish or fail.
  137.  
  138. dev <devname> disconnect
  139. Disconnect from the current network.
  140.  
  141. dev <devname> link
  142. Print information about the current link, if any.
  143.  
  144. dev <devname> offchannel <freq> <duration>
  145. Leave operating channel and go to the given channel for a while.
  146.  
  147. dev <devname> cqm rssi <threshold|off> [<hysteresis>]
  148. Set connection quality monitor RSSI threshold.
  149.  
  150.  
  151. phy <phyname> wowlan show
  152. Show WoWLAN status.
  153.  
  154. phy <phyname> wowlan disable
  155. Disable WoWLAN.
  156.  
  157. phy <phyname> wowlan enable [any] [disconnect] [magic-packet] [gtk-rekey-failure] [eap-identity-request] [4way-handshake] [rfkill-release] [tcp <config-file>] [patterns [offset1+]<pattern1> ...]
  158. Enable WoWLAN with the given triggers.
  159. Each pattern is given as a bytestring with '-' in places where any byte
  160. may be present, e.g. 00:11:22:-:44 will match 00:11:22:33:44 and
  161. 00:11:22:33:ff:44 etc.
  162. Offset and pattern should be separated by '+', e.g. 18+43:34:00:12 will match '43:34:00:12' after 18 bytes of offset in Rx packet.
  163.  
  164. The TCP configuration file contains:
  165. source=ip[:port]
  166. dest=ip:port@mac
  167. data=<hex data packet>
  168. data.interval=seconds
  169. [wake=<hex packet with masked out bytes indicated by '-'>]
  170. [data.seq=len,offset[,start]]
  171. [data.tok=len,offset,<token stream>]
  172.  
  173. phy <phyname> coalesce show
  174. Show coalesce status.
  175.  
  176. phy <phyname> coalesce disable
  177. Disable coalesce.
  178.  
  179. phy <phyname> coalesce enable <config-file>
  180. Enable coalesce with given configuration.
  181. The configuration file contains coalesce rules:
  182. delay=<delay>
  183. condition=<condition>
  184. patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
  185. delay=<delay>
  186. condition=<condition>
  187. patterns=<[offset1+]<pattern1>,<[offset2+]<pattern2>,...>
  188. ...
  189. delay: maximum coalescing delay in msec.
  190. condition: 1/0 i.e. 'not match'/'match' the patterns
  191. patterns: each pattern is given as a bytestring with '-' in
  192. places where any byte may be present, e.g. 00:11:22:-:44 will
  193. match 00:11:22:33:44 and 00:11:22:33:ff:44 etc. Offset and
  194. pattern should be separated by '+', e.g. 18+43:34:00:12 will
  195. match '43:34:00:12' after 18 bytes of offset in Rx packet.
  196.  
  197.  
  198. dev <devname> roc start <freq> <time in ms>
  199.  
  200.  
  201. wdev <idx> p2p stop
  202.  
  203.  
  204. wdev <idx> p2p start
  205.  
  206.  
  207. phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
  208. Set a bitmap of allowed antennas to use for TX and RX.
  209. The driver may reject antenna configurations it cannot support.
  210.  
  211. dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
  212. Specify transmit power level and setting type.
  213.  
  214. phy <phyname> set txpower <auto|fixed|limit> [<tx power in mBm>]
  215. Specify transmit power level and setting type.
  216.  
  217. phy <phyname> set distance <auto|distance>
  218. Enable ACK timeout estimation algorithm (dynack) or set appropriate
  219. coverage class for given link distance in meters.
  220. To disable dynack set valid value for coverage class.
  221. Valid values: 0 - 114750
  222.  
  223. phy <phyname> set coverage <coverage class>
  224. Set coverage class (1 for every 3 usec of air propagation time).
  225. Valid values: 0 - 255.
  226.  
  227. phy <phyname> set netns <pid>
  228. Put this wireless device into a different network namespace
  229.  
  230. phy <phyname> set retry [short <limit>] [long <limit>]
  231. Set retry limit.
  232.  
  233. phy <phyname> set rts <rts threshold|off>
  234. Set rts threshold.
  235.  
  236. phy <phyname> set frag <fragmentation threshold|off>
  237. Set fragmentation threshold.
  238.  
  239. dev <devname> set channel <channel> [HT20|HT40+|HT40-]
  240. phy <phyname> set channel <channel> [HT20|HT40+|HT40-]
  241. dev <devname> set freq <freq> [HT20|HT40+|HT40-]
  242. dev <devname> set freq <control freq> [20|40|80|80+80|160] [<center freq 1>] [<center freq 2>]
  243. phy <phyname> set freq <freq> [HT20|HT40+|HT40-]
  244. Set frequency/channel the hardware is using, including HT
  245. configuration.
  246.  
  247. phy <phyname> set name <new name>
  248. Rename this wireless device.
  249.  
  250. dev <devname> set mcast_rate <rate in Mbps>
  251. Set the multicast bitrate.
  252.  
  253. dev <devname> set peer <MAC address>
  254. Set interface WDS peer.
  255.  
  256. dev <devname> set noack_map <map>
  257. Set the NoAck map for the TIDs. (0x0009 = BE, 0x0006 = BK, 0x0030 = VI, 0x00C0 = VO)
  258.  
  259. dev <devname> set 4addr <on|off>
  260. Set interface 4addr (WDS) mode.
  261.  
  262. dev <devname> set type <type>
  263. Set interface type/mode.
  264. Valid interface types are: managed, ibss, monitor, mesh, wds.
  265.  
  266. dev <devname> set meshid <meshid>
  267. dev <devname> set monitor <flag>*
  268. Set monitor flags. Valid flags are:
  269. none: no special flags
  270. fcsfail: show frames with FCS errors
  271. control: show control frames
  272. otherbss: show frames from other BSSes
  273. cook: use cooked mode
  274. active: use active mode (ACK incoming unicast packets)
  275.  
  276. dev <devname> set mesh_param <param>=<value> [<param>=<value>]*
  277. Set mesh parameter (run command without any to see available ones).
  278.  
  279. dev <devname> set power_save <on|off>
  280. Set power save state to on or off.
  281.  
  282. dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>*] [ht-mcs-<2.4|5> <MCS index>*] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*] [sgi-2.4|lgi-2.4] [sgi-5|lgi-5]
  283. Sets up the specified rate masks.
  284. Not passing any arguments would clear the existing mask (if any).
  285.  
  286. dev <devname> get mesh_param [<param>]
  287. Retrieve mesh parameter (run command without any to see available ones).
  288.  
  289. dev <devname> get power_save <param>
  290. Retrieve power save state.
  291.  
  292.  
  293. Commands that use the netdev ('dev') can also be given the
  294. 'wdev' instead to identify the device.
  295.  
  296. You can omit the 'phy' or 'dev' if the identification is unique,
  297. e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)
  298.  
  299. Do NOT screenscrape this tool, we don't consider its output stable.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement