[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wireless-tools not working.



Celejar wrote:
On Fri, 30 May 2008 12:51:52 +1000
Tony R Quilkey <trq@iinet.net.au> wrote:

Pretty new to this, running sid.

Hi!

Using the following wifi configuration within my /etc/network/interfaces file fails.

...

auto wlan0
iface wlan0 inet static
     address 192.168.10.2
     netmask 255.0.0.0
     network 192.168.10.255
     gateway 192.168.10.1
     wireless-mode managed
     wireless-essid TSP
     wireless-key AC45FE23ED3EDF51A78CDE45F1
     dns-nameservers 192.168.10.100
     dns-search thorpesystems.local

The only related message I seem to be able to find in /var/log/dmesg is this....

ADDRCONF(NETDEV_UP): wlan0: link is not ready

After doing 'ifup wlan0', what is the result of 'ifconfig wlan0' and
'iwconfig wlan0'?

Tony.

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


Thanks for taking a look Celejar,

The following output is when I've started the machine without the script in /etc/rc.local.

~ # sudo ifup wlan0
ifup: interface wlan0 already configured

~ # sudo ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:1c:f0:89:f5:10
          inet addr:192.168.10.2  Bcast:192.255.255.255  Mask:255.0.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

~ # sudo iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:""
          Mode:Managed  Frequency:2.412 GHz  Access Point:
Not-Associated
          Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2346 B
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Note, If I restart the machine after placing my script in /etc/rc.local this is the outcome.

~ # sudo ifup wlan0
ifup: interface wlan0 already configured

~ # sudo ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:1c:f0:89:f5:10
          inet addr:192.168.10.2  Bcast:192.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::21c:f0ff:fe89:f510/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:175 errors:0 dropped:0 overruns:0 frame:0
          TX packets:199 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36915 (36.0 KiB)  TX bytes:20839 (20.3 KiB)

~ # sudo iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"TSP"
Mode:Managed Frequency:2.437 GHz Access Point: 00:1C:F0:3A:F2:DC
          Bit Rate=1 Mb/s   Tx-Power=27 dBm
          Retry limit:24   RTS thr:off   Fragment thr=2346 B
          Encryption key:AC45-FE23-ED3E-DF51-A78C-DE45-F3
          Link Quality=29/100  Signal level=-64 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Also note that this doesn't seem to work when I simply call the script in /etc/rc.local directly then try to ifup wlan0, I need to actually restart the machine for it to take effect.

Thanks,
Tony.


Reply to: