DISTRIBUTIONS.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. Distribution specific notes on Wireless Configuration
  2. -----------------------------------------------------
  3. ***** HELP *****
  4. If people send me information about the specifics of each
  5. distribution, I'll try to collect that here. Don't forget to mention
  6. to which distribution those instructions apply, the tool used (if any)
  7. and the files modified.
  8. Actually, the people packaging my tools for a specific
  9. distribution have a moral obligation to send me the exact detailed
  10. instructions of what they have done. I will list in the wireless.7
  11. man page only distributions that give me an official answer.
  12. ***** HELP *****
  13. -----
  14. INTRODUCTION
  15. ------------
  16. The tools enable users to change the card settings at run time
  17. (when running iwconfig, for example). However, most users want the
  18. card to be configured either at boot time or when the card is
  19. activated in the system.
  20. Each distribution has its own configuration scripts, and
  21. therefore is slightly different. Some distributions even add some
  22. graphical setup tool (nice). This file describe the procedure for a
  23. few of them.
  24. Note : if you install the Pcmcia package in source form from
  25. the official Linux-Pcmcia web site (as opposed to precompiled by a
  26. distribution, please use the PCMCIA method).
  27. Please remember : I don't use your distribution, and I have
  28. absolutely no clue about how your distribution works. I'm just
  29. collecting random information here without beeing able to verify it.
  30. -----
  31. WIRELESS DRIVERS
  32. ----------------
  33. Most Linux wireless drivers support Wireless Extensions, and
  34. therefore may be configure via Wireless Tools and the methods
  35. described in this file.
  36. However, a few drivers have no support or limited support for
  37. Wireless Extensions (like read only). In those cases, these are your
  38. options :
  39. o read the driver documentation.
  40. o use the driver specific interface or tools to
  41. configure the card, and try to integrate that in your distribution.
  42. o implement Wireless Extension support in the driver.
  43. In some cases, there are easier workaround. Different version
  44. of the driver may add Wireless Extension (often alongside the
  45. proprietary method). In some other case, there may be another driver
  46. supporting the same card and with support for Wireless Extensions.
  47. Some Linux wireless drivers don't export all wireless settings
  48. via Wireless Extensions, not even through iwpriv. Those setting may be
  49. available through the driver specific interface. Refer to previous
  50. section for workarounds.
  51. ---------------------------------------------------------------------
  52. PCMCIA METHOD
  53. -------------
  54. (Contributed by Jean Tourrilhes <jt@hpl.hp.com>)
  55. This method work for *all* distributions.
  56. For Pcmcia cards, it is possible to overwrite the Pcmcia
  57. configuration files of the distribution with the original Pcmcia
  58. configuration files from the Pcmcia package (/etc/pcmcia/*). If you
  59. install the Pcmcia package in source form from the official
  60. Linux-Pcmcia web site, this will be done automatically.
  61. Once this is done, you can no longer use the specific tools
  62. and configuration files of the distribution, and are required to use
  63. Pcmcia style of configuration (see Pcmcia Howto).
  64. In such a case, Wireless configuration is done through
  65. wireless.opts, and documented in the file PCMCIA.txt.
  66. ---------------------------------------------------------------------
  67. DEBIAN 2.2 (and earlier)
  68. ----------
  69. (Contributed by Jean Tourrilhes <jt@hpl.hp.com>)
  70. Debian 2.2 (and earlier) doesn't support any Wireless
  71. Configuration. You are required to use the Pcmcia method. Also, the
  72. Wireless Tools package is not part of the standard packages.
  73. ---------------------------------------------------------------------
  74. DEBIAN 3.0 (and later)
  75. ----------
  76. (Contributed by Guus Sliepen <guus@sliepen.eu.org>)
  77. Debian also has another way of configuring network devices,
  78. controlled by /etc/network/interfaces. Users can add a wireless
  79. interface to /etc/network/interfaces, using the standard options to
  80. set the address and such, but the wireless-tools package adds new
  81. option statements that can be used to configure keys, channel,
  82. etcetera.
  83. From the README.Debian script that comes with wireless-tools:
  84. /etc/network/interfaces
  85. -----------------------
  86. You can now add extra statements to the iface sections of the files in
  87. /etc/network/interfaces that are specific for wireless interfaces. They
  88. are of the form:
  89. wireless-<function> <value>
  90. Before the interface is brought up, such a statement will result in the
  91. execution of the following command:
  92. iwconfig <interface> <function> <value>
  93. Example:
  94. iface eth0 inet static
  95. address 192.168.1.2
  96. network 192.168.1.0
  97. netmask 255.255.255.0
  98. broadcast 192.168.1.255
  99. wireless-essid Home
  100. wireless-mode ad-hoc
  101. The current Debian script support all arguments present in
  102. wireless.opts apart from Nickname. You can check this in the script
  103. /etc/network/if-pre-up.d/wireless-tool.
  104. You will need of course to install the Wireless Tools package
  105. if it's not already done, which is part of the standard package list
  106. (use dselect, dpkg, apt or anything you like to get it).
  107. -----
  108. (Contributed by Joey Hess <joey@dragon.kitenet.net>)
  109. /etc/network/interfaces is much more flexible than it appears. It can probably
  110. do everything pcmcia schemes can do, and more. Here is part of mine:
  111. auto wlan0
  112. mapping wlan0
  113. script /usr/local/bin/ifscheme-mapping
  114. iface wlan0-home inet static
  115. address 192.168.1.5
  116. gateway 192.168.1.1
  117. netmask 255.255.255.0
  118. wireless-mode ad-hoc
  119. wireless-essid wortroot
  120. wireless-nick dragon
  121. wireless-channel 1
  122. iface wlan0-away inet dhcp
  123. wireless-mode managed
  124. Now I can type 'ifscheme -s away' when I leave home, rather like
  125. cardctl scheme.
  126. The ifscheme script is at http://bugs.debian.org/154444. If the request in
  127. bug #154442 is implemented, it will become very flexible indeed..
  128. Debian will hopefully be using this same file eventually for pcmcia network
  129. devices too. It's already doable but takes a little work. This is all rather
  130. rough and badly documented so far.
  131. You can also do mapping based on the MAC address, if you want specific
  132. configuration on specific card. See
  133. /usr/share/doc/ifupdown/examples/get-mac-address.sh and the stanza in
  134. /usr/share/doc/ifupdown/examples/network-interfaces.gz that uses it.
  135. This comes back to the problem I alluded to with mapping scripts not
  136. being "nestable" yet, and bug #154442. You can do what you want today,
  137. but you may need to write your own mapping script which uses a
  138. combination of MAC address and scheme info to return a stanza name to
  139. ifupdown.
  140. -----
  141. (Contributed by Jean Tourrilhes <jt@hpl.hp.com>)
  142. The 'ifscheme' scripts mentionned above are now available in
  143. Debian Sarge, in the 'ifscheme' package.
  144. The MAC address based mapping mentioned above is deprecated,
  145. you should use 'ifrename' to assign a consistent interface name to
  146. each of your network interface. This is documented in
  147. HOTPLUG.txt. This enable the combination of MAC address identification
  148. of interfaces with scheme multi-configuration.
  149. -----
  150. If you need automatic wireless configuration, you can look at
  151. the following packages :
  152. o ifupdown-roaming :
  153. http://panopticon.csustan.edu/thood/ifupdown-roaming.html
  154. o waproamd
  155. http://0pointer.de/lennart/projects/waproamd/
  156. ---------------------------------------------------------------------
  157. SuSE 8.0 and later
  158. --------
  159. (Contributed by Christian Zoz <zoz@suse.de>)
  160. All network configuration is done in the directory
  161. /etc/sysconfig/network. It does not matter if it's a build in NIC or
  162. PCMCIA, USB, etc. The files network.opts and wireless.opts in
  163. /etc/pcmcia are not used any longer. There is /sbin/ifup to set up all
  164. kind of network interface.
  165. There is a file /etc/sysconfig/network/wireless where you may
  166. set most of the options of iwconfig in seperate variables (they are
  167. named like the options). Additionally you may use
  168. WIRELESS_IWCONFIG_OPTIONS e.g. for setting key 2, 3 or 4 or
  169. unsupported iwconfig commands. This file is documented and its
  170. settings are used for any wlan NIC.
  171. Configuration of wireless variable looks like :
  172. WIRELESS_ESSID="<essid>"
  173. Every variable from file wireless may be used in the interface
  174. configuration files /etc/sysconfig/network/ifcfg-* as well. As
  175. expectable this overwrites the global setting in wireless. For
  176. sophisticated use of the ifcfg-* files read 'man ifup'.
  177. Hint for PCMCIA and USB users:
  178. You need not to use the iterface name for the configuration as
  179. this may vary from one plugin to another. You may use a description of
  180. your hardware instead (ifcfg-<MACADDRESS> or ifcfg-pcmcia-1 for card
  181. in Slot 1)
  182. Some of the variables can be set with YaST2 as well.
  183. If you miss the 'schemes' functionality from the pcmcia-cs
  184. packages use the tool SCPM (System Configuration Profile Management)
  185. instead. This extends the pcmcia schemes to the whole system
  186. configuration. Read 'info scpm'. Since SuSE 8.1 there also is a YaST2
  187. modul for SCPM.
  188. ---------------------------------------------------------------------
  189. RED-HAT 7.2
  190. -----------
  191. (Grabbed from various source - Google is your friend)
  192. Configuration is done in the file :
  193. /etc/sysconfig/network-scripts/ifcfg-ethN
  194. Where 'ethN' is the name of the wireless interface (such as
  195. eth0, eth1, ...).
  196. The following lines may be added in this file :
  197. MODE=<mode>
  198. ESSID="<essid>"
  199. RATE=<rate>
  200. TXPOWER=<txpower>
  201. KEY="<key>"
  202. The full list of configuration can be found in the file :
  203. /etc/sysconfig/network-scripts/ifup-wireless
  204. Note that Brad Allison has other tips for 7.2 :
  205. http://jackal.dnsalias.com:8080/public/misc/wireless/wireless.html
  206. ---------------------------------------------------------------------
  207. RED-HAT 7.3 and later
  208. -----------
  209. (Cut'n'pasted from Brad Allison web page)
  210. http://jackal.dnsalias.com:8080/public/misc/wireless/wireless.html
  211. If you are running RedHat 7.3, I would tell you to simply run
  212. /usr/bin/redhat-config-network and click "Devices", Click "Add", then
  213. select "Wireless Connection". You can find the full instructions in
  214. RedHat's Customization Guide for RH7.3 in Chapter 6, Network
  215. Configuration: Wireless Connection.
  216. http://www.redhat.com/docs/manuals/linux/
  217. http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-network-config-wireless.html
  218. However, according to the Errata: The version of the Red Hat
  219. Network Administration Tool that shipped with Red Hat Linux 7.3 did
  220. not include wireless connection in the configuration wizard. An
  221. enhancement errata will be released soon with this feature. You can
  222. download the newest version of redhat-config-network from rpmfind.net.
  223. http://www.redhat.com/docs/errata/RHL-7.3-Manual/
  224. http://www.rpmfind.net/linux/rpm2html/search.php?query=redhat-config-network&submit=Search+...
  225. -----
  226. (Grabbed from various source - Google is your friend)
  227. The current graphical user interface support :
  228. ESSID, Mode, Freq, Channel, Rate, Key
  229. Compared to Red-Hat 7.2, the Wireless Setting in the
  230. configuration file have change to include the WIRELESS_ prefix :
  231. WIRELESS_MODE=<mode>
  232. WIRELESS_ESSID='<essid>'
  233. WIRELESS_ENC_KEY='<key>'
  234. The underlying configuration files and configurations options
  235. seems to be indentical to what is done in Mandrake 8.2 (or vice
  236. versa), so please check the section below. This allow configuration of
  237. additional wireless settings not available in the GUI.
  238. -----
  239. (Extrapolated from web page of Martin Pot <m.t.pot@ieee.org>)
  240. http://ii.net/~mpot/wireless/router.cgi
  241. Red-Hat 7.3 also seem to support configuration in
  242. wireless.opts to some extent. But for compatibility with the network
  243. admin tools, I would still recommend to use the above method.
  244. Red-Hat 7.3 seems to load wvlan_cs for Orinoco cards and
  245. friends. The above web page explain how to switch it to orinoco_cs.
  246. ---------------------------------------------------------------------
  247. RED-HAT 9.0 and later
  248. -----------
  249. (Cut'n'pasted from Dax Kelson web page)
  250. http://www.gurulabs.com/RedHatLinux9-review.html
  251. A little known fact is that newer versions of RHL support
  252. multiple network profiles. This is useful for machines that commonly
  253. plug into different networks (think laptops). The easy way to create
  254. network profiles is to use the redhat-config-network command. The
  255. question then becomes, what happens when you type "ifup eth0"? The
  256. behavior wasn't defined in previous versions, however, now in RHL 9
  257. the following behavior is defined;
  258. search path for:
  259. # ifup $DEV
  260. is:
  261. /etc/sysconfig/networking/profiles/$CURRENT_PROFILE/ifcfg-$DEV
  262. /etc/sysconfig/networking/profiles/default/ifcfg-$DEV
  263. /etc/sysconfig/network-scripts/ifcfg-$DEV
  264. A cool trick is to boot your RHL box directly into a profile
  265. from the GRUB boot screen. To do this, create a separate
  266. /etc/boot/grub.conf entry for each network profile, and in each entry
  267. add the kernel argument netprofile=profilename.
  268. -----
  269. I'm pretty certain the profile scheme above also apply to
  270. wireless settings, which is good news...
  271. ---------------------------------------------------------------------
  272. MANDRAKE 8.2 and later
  273. ------------
  274. (Grabbed from various source - Google is your friend)
  275. Configuration is done in the file :
  276. /etc/sysconfig/network-scripts/ifcfg-ethN
  277. Where 'ethN' is the name of the wireless interface (such as
  278. eth0, eth1, ...).
  279. The following lines may be added in this file :
  280. WIRELESS_MODE=<mode>
  281. WIRELESS_ESSID=<essid>
  282. WIRELESS_NWID=<nwid>
  283. WIRELESS_FREQ=<freq/channel>
  284. WIRELESS_SENS=<sensitivity>
  285. WIRELESS_RATE=<rate>
  286. WIRELESS_ENC_KEY=<keys>
  287. WIRELESS_RTS=<rts>
  288. WIRELESS_FRAG=<frag>
  289. WIRELESS_IWCONFIG=<iwconfig command>
  290. WIRELESS_IWSPY=<iwspy command>
  291. WIRELESS_IWPRIV=<iwpriv command>
  292. Most likely, you only need to add a few of those lines and not
  293. all of them. The script doing the configuration and where you can
  294. check the details is :
  295. /etc/network/network-scripts/ifup-wireless
  296. You will of course need the Wireless Tools package :
  297. rpm -Uvh wireless-tools-XX-Xmdk.XXX.rpm
  298. Mandrake can also have wireless setting added to its
  299. Auto-Install procedure :
  300. http://members.shaw.ca/mandrake/drakx/8.2/HTML/section4-13.html
  301. -----
  302. (in e-mail from Thierry Vignaud <tvignaud@mandrakesoft.com>)
  303. You may use the following tool :
  304. o drakconnect
  305. You may read the following documentation :
  306. o ifcfg
  307. ---------------------------------------------------------------------
  308. Have fun...
  309. Jean