wlan connection using iwconfig

31/07/2009 - 10:30 von Tim Frik | Report spam

I want to connect to an wireless access point using iwconfig. The
connection seems to work but ifconfig then indicates that no IP
was assigned to the wireless card (wlan0).

These are the steps I did:

"iwlist wlan0 scan":
wlan0 Scan completed :
Cell 01 - Address: 00:23:04:XXX
Frequency:2.412 GHz (Channel 1)
Qualitys/100 Signal level=-61 dBm Noise level=-88
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s

"iwconfig wlan0 essid BLA"

wlan0 IEEE 802.11g ESSID:"BLA"
Mode:Managed Frequency:2.412 GHz Access Point: 00:23:04:XXX
Bit RateT Mb/s Tx-Power' dBm
Retry min limit:7 RTS thr:off Fragment thr#52 B
Encryption key:off
Link QualityQ/100 Signal level=-78 dBm Noise level=-88 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

"ifconfig wlan0":
wlan0 Link encap:Ethernet HWaddr 00:1B:77:XXX
inet6 addr: fe80::21b:77ff:fe04:32bb/64 Scope:Link
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:416 (416.0 b)

So, it can be seen that wlan0 is connected to the non-encrypted access
point "BLA" but it was not assigned any IP address. On the other hand,
when I connect via kinternet with this access point, wlan0 is also
assigned an IP address, thus the DHCP server of BLA seems to be OK.
It seems that using kinternet the wlan0 connection to BLA is carried
out in a different way.

Any ideas what I'm missing with iwconfig?


Lesen sie die antworten

#1 Holger Petersen
11/08/2009 - 20:26 | Warnen spam
Tim Frik writes:



Any ideas what I'm missing with iwconfig?

perhaps either:

ifconfig wlan0 <some_ip_adress> netmask <some_netmask> broadcast <some_broadcast>

with a valid combination of IP, Mask & Broadcast; followed by some
corresponding "route add default gw <ip_of_gateway>" AND adjusting


dhclient wlan0

which should do all that work!

Just guessing, Holger

Ähnliche fragen