Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / wireless-tools / | server ip : 104.21.89.46 your ip : 172.69.130.140 H O M E |
Filename | /usr/share/doc/wireless-tools/README.Debian |
Size | 1.6 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:56 |
Last modified | 21-Apr-2012 01:41 |
Last accessed | 06-Jul-2025 22:42 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
/etc/network/interfaces
-----------------------
You can now add extra statements to the iface sections of the files in
/etc/network/interfaces that are specific for wireless interfaces. They are of
the form:
wireless-<function> <value>
After the interface is brought up, such a statement will result in the
execution of the following command:
iwconfig <interface> <function> <value>
Note that there may be some drivers that only accept wireless configuration if
the interface is down. In that case, configuration from /etc/network/interfaces
may fail.
If you bring the interface down, then for each wireless-<function> statement
given it will execute a corresponding iwconfig command that reverts that
function back to sane defaults. For example, if you specified a wireless-key,
if you run ifdown it will set the wireless key to "off".
If you want to specify a nick, nwid or essid with spaces in them, you must not
surround them with quotes.
To specify multiple keys the following statements are also available:
wireless-key<number> <key>
wireless-defaultkey <number>
wireless-keymode restricted|open
To finetune powermanagement the following statments are also available:
wireless-powerperiod <period>
wireless-powertimeout <timeout>
Example:
iface eth0 inet static
address 192.168.1.2
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
wireless-essid Home
wireless-mode ad-hoc
Example of multiple keys:
wireless-key1 0123-4567-89ab-cdef
wireless-key2 12345678
wireless-key3 s:password
wireless-defaultkey 2
wireless-keymode open
-----------------------
You can now add extra statements to the iface sections of the files in
/etc/network/interfaces that are specific for wireless interfaces. They are of
the form:
wireless-<function> <value>
After the interface is brought up, such a statement will result in the
execution of the following command:
iwconfig <interface> <function> <value>
Note that there may be some drivers that only accept wireless configuration if
the interface is down. In that case, configuration from /etc/network/interfaces
may fail.
If you bring the interface down, then for each wireless-<function> statement
given it will execute a corresponding iwconfig command that reverts that
function back to sane defaults. For example, if you specified a wireless-key,
if you run ifdown it will set the wireless key to "off".
If you want to specify a nick, nwid or essid with spaces in them, you must not
surround them with quotes.
To specify multiple keys the following statements are also available:
wireless-key<number> <key>
wireless-defaultkey <number>
wireless-keymode restricted|open
To finetune powermanagement the following statments are also available:
wireless-powerperiod <period>
wireless-powertimeout <timeout>
Example:
iface eth0 inet static
address 192.168.1.2
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
wireless-essid Home
wireless-mode ad-hoc
Example of multiple keys:
wireless-key1 0123-4567-89ab-cdef
wireless-key2 12345678
wireless-key3 s:password
wireless-defaultkey 2
wireless-keymode open