home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / doc / wireless-tools / README.Debian < prev    next >
Encoding:
Text File  |  2009-11-26  |  1.6 KB  |  55 lines

  1. /etc/network/interfaces
  2. -----------------------
  3.  
  4. You can now add extra statements to the iface sections of the files in
  5. /etc/network/interfaces that are specific for wireless interfaces. They are of
  6. the form:
  7.  
  8.     wireless-<function> <value>
  9.  
  10. After the interface is brought up, such a statement will result in the
  11. execution of the following command:
  12.  
  13.     iwconfig <interface> <function> <value>
  14.  
  15. Note that there may be some drivers that only accept wireless configuration if
  16. the interface is down. In that case, configuration from /etc/network/interfaces
  17. may fail.
  18.  
  19. If you bring the interface down, then for each wireless-<function> statement
  20. given it will execute a corresponding iwconfig command that reverts that
  21. function back to sane defaults.  For example, if you specified a wireless-key,
  22. if you run ifdown it will set the wireless key to "off".
  23.  
  24. If you want to specify a nick, nwid or essid with spaces in them, you must not
  25. surround them with quotes.
  26.  
  27. To specify multiple keys the following statements are also available:
  28.  
  29.     wireless-key<number> <key>
  30.     wireless-defaultkey <number>
  31.     wireless-keymode restricted|open
  32.  
  33. To finetune powermanagement the following statments are also available:
  34.  
  35.     wireless-powerperiod <period>
  36.     wireless-powertimeout <timeout>
  37.  
  38. Example:
  39.  
  40. iface eth0 inet static
  41.     address 192.168.1.2
  42.     network 192.168.1.0
  43.     netmask 255.255.255.0
  44.     broadcast 192.168.1.255
  45.     wireless-essid Home
  46.     wireless-mode ad-hoc
  47.  
  48. Example of multiple keys:
  49.  
  50.     wireless-key1 0123-4567-89ab-cdef
  51.     wireless-key2 12345678
  52.     wireless-key3 s:password
  53.     wireless-defaultkey 2
  54.     wireless-keymode open
  55.