Content deleted Content added
No edit summary |
No edit summary |
||
(57 intermediate revisions by 46 users not shown) | |||
Line 1:
{{Short description|Deprecated WiFi utilities for Linux}}
{{Infobox
| name = Wireless Tools
| logo =
| caption =
| collapsible =
Line 21:
| genre = Network utilities
| license = [[GNU General Public License|GNU GPL]]
| website = [
}}
'''Wireless tools for Linux''' is a
== Adoption ==
Line 31:
== Frontends ==
Due to the relative complexity of requiring several separate commands for one task (e.g. iwlist and iwconfig to find and sync with a wireless access point), some<ref>[[Linux Journal]] Marcel Gagne's ''Cooking With Linux'' 2005-07-28 edition, http://www.linuxjournal.com/node/8355/print</ref> recommend using frontends provided by [[GNOME]] and [[KDE]], or an application called NetGo, to manipulate these settings.
== Alternatives ==
The Linux kernel authors consider wireless tools package deprecated;<ref>[[Arch Linux]] wiki, https://wiki.archlinux.org/index.php/Wireless_network_configuration#Manual_setup</ref> the alternative being the more recent <code>iw</code> utility.<ref>iw utility homepage, https://wireless.wiki.kernel.org/en/users/documentation/iw</ref><ref>Replacing iwconfig with iw, https://wireless.wiki.kernel.org/en/users/documentation/iw/replace-iwconfig</ref> Especially the <code>iw dev wlan0 scan</code> output provides many additional details over the <code>iwlist scan</code> output.<ref>Xmodulo tutorial, http://xmodulo.com/manage-wifi-connection-command-line.html</ref>
== Package tools ==
=== ifrename ===
ifrename allows to rename wireless network interfaces based on various static criteria to assign a consistent name to each interface.
Line 38 ⟶ 42:
By default, interface names are dynamic, and each [[network card|network adapter]] is assigned the first available name (eth0, eth1...) while the order network interfaces are created may vary. Now ifrename allows the user to decide what name a network interface will have. It can use a variety of selectors to match interface names to the network interfaces on the system, the most common selector is the interface [[MAC address]].
ifrename must be run before interfaces are brought up, which is why it's mostly useful in various scripts ([[init]], [[hotplug]]) but is seldom used directly by the user. By default it renames all present system interfaces using mappings defined in <code>/etc/iftab</code>.
=== iwconfig ===
iwconfig is used to display and change the parameters of the network interface which are specific to the wireless operation (e.g. interface name, [[frequency]], [[Service set identifier|SSID]]). It may also be used to display the wireless statistics (extracted from <code>/proc/net/wireless</code>).
In the free [[Berkeley Software Distribution]] [[UNIX]] operating systems, the role of iwconfig is performed by an expanded [[ifconfig]] command.
Line 47 ⟶ 51:
==== Sample <code>iwconfig</code> output ====
The following command displays information about the currently associated wireless network.
<
$ iwconfig eth1
eth1 IEEE 802.11g ESSID:"OSU_PUB"
Mode:Managed Frequency:2.427 GHz Access Point: 00:0D:9D:C6:38:2D
Bit Rate=48 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Line 59 ⟶ 62:
Rx invalid nwid:0 Rx invalid crypt:860 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:39 Missed beacon:8
</
=== iwevent ===
Line 76 ⟶ 79:
==== Sample <code>iwlist</code> output ====
The following screen dialog shows the result of scanning for nearby wireless access points.
<
$ iwlist eth1 scan
eth1 Scan completed :
Cell 01 - Address: 00:12:17:46:E6:AF
ESSID:"
Mode:Master
Channel:1
Encryption key:off
Bit Rate:2 Mb/s
Bit Rate:5.5 Mb/s
Line 101 ⟶ 103:
Quality=82/100 Signal level=-48 dBm
Extra: Last beacon: 36ms ago
</
This scan yields only one nearby wireless access point. Helpful information in this scan includes [[ESSID]], the type of network, and signal quality.
Line 114 ⟶ 116:
The information gathered is the same as that available in <code>/proc/net/wireless</code>: quality of the link, signal strength and noise level. This information is updated each time a new packet is received, so each address of the list adds some overhead in the driver. Note that this functionality works only for nodes part of the current wireless cell, you can not monitor access points you are not associated with (you can use Scanning for that) and nodes in other cells. In Managed mode, in most case packets are relayed by the access point, in this case you will get the signal strength of the access point. For those reasons this functionality is mostly useful in [[Wireless ad hoc network|ad hoc]] and master mode.
=== wpa_supplicant/hostapd ===
<code>wpa_supplicant</code> and <code>hostapd</code> come as a pair of complementary client and host for wireless access points.
That is hostapd allows us to create access points from the command line, which allows one to share one's internet connection wirelessly, while wpa_supplicant allows us to scan and to connect to access points as a client in order to get onto the Internet.
== See also ==
* [[NdisWrapper]]
* [[NetworkManager]]
== External links ==
* [http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html Wireless Tools for Linux homepage] and [http://rpmfind.net/linux/rpm2html/search.php?query=wireless-tools RPM find for wireless-tools]
*[[Manpage]]s:
** {{man|8|ifrename|die.net}}
** {{man|8|
** {{man|8|
** {{man|8|
** {{man|8|
** {{man|8|
** {{man|8|
** {{man|8|
== References ==
Line 136 ⟶ 142:
{{Linux}}
[[Category:Linux
[[Category:
[[Category:Internet Protocol based network software]]
[[Category:Routing]]
[[Category:Linux-only free software]]
|