LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 09-25-2006, 10:01 AM   #1
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Rep: Reputation: 30
ndiswrapper: dhcpcd wlan0 doesn't attach IP!


Hi!
I'm using ndiswrapper for my BCM4318 card. I have a wireless network, I turned off all the encryption so I can be sure, it's not the encryption problem, why I can't conenct to it. Router doesn't broadcast ESSID. I have used the same windows driver, to connect to other wireless networks, and it has worked. now, when I do:
Code:
iwconfig wlan0 essid Q6Z
iwconfig wlan0:
Code:
wlan0     IEEE 802.11g  ESSID:"Q6Z"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:11:2C:F6:A3:A6
          Bit Rate=54 Mb/s   Tx-Power:25 dBm
          RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:off
          Power Management: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
then I do dhcpcd wlan0, and after two seconds it returns to shell, as usualy, but when I do, iwconfig wlan0, I get the same output and I didn't get IP:
Quote:
wlan0 IEEE 802.11g ESSID:"Q6Z"
Mode:Managed Frequency:2.462 GHz Access Point: 00:11:2C:F6:A3:A6
Bit Rate=54 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption keyff
Power Managementff
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
Strage.. I don't understand why the router doesn't attach me IP.. any suggestions? Thank you!
 
Old 09-25-2006, 11:16 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Try looking in the ifconfig output. Iwconfig never reports the IP address, only the wireless configuration settings. Actually, if you get back to the console in a couple of seconds, it probably did work as dhcpcd has something like a 60 second timeout.
 
Old 09-25-2006, 11:38 AM   #3
Leisy
Member
 
Registered: Sep 2006
Location: Brno, Czech Republic
Distribution: Fedora
Posts: 56

Rep: Reputation: 15
try dhclient wlan0(if you have it) and paste here output of that command
 
Old 09-25-2006, 01:31 PM   #4
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
Quote:
root@+:/# iwconfig wlan0 essid Q6Z
root@+:/# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"Q6Z"
Mode:Managed Frequency:2.462 GHz Access Point: 00:14:6C:F6:12:A6
Bit Rate=54 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption key:off
Power Management: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
There is no IP now:
Quote:
root@+:/# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:14:A4:58:86:E8
UP BROADCAST RUNNING 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)
Interrupt:4 Memory:e2000000-e2002000

root@+:/# dhcpcd wlan0
OK, I got the IP!!, but...:
Quote:
root@+:/# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:14:A4:58:86:E8
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:590 (590.0 b) TX bytes:650 (650.0 b)
Interrupt:4 Memory:e2000000-e2002000

root@+:/# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8012ms
I can't even ping the router.. And now for the weardest part!! it doesn't look like anything has been transmitted/recived, but I DID get an IP, so how is it posible?! ifconfig shows only 3 devices, so I can't be using other device!!
Quote:
root@+:/# iwconfig wlan0
wlan0 IEEE 802.11g ESSID:"Q6Z"
Mode:Managed Frequency:2.462 GHz Access Point: 00:14:6C:F6:12:A6
Bit Rate=54 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption key:off
Power Management: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
I'm really lost here..

and here is the dhclient output:
Quote:
root@+:/# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
Thanks!
 
Old 09-25-2006, 03:54 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
OK, as Windowsish as this sounds, reboot your computer and try from a fresh start. You shouldn't just get an IP address without running either dhcpcd or dhclient. Also, only run dhcpcd or dhclient. Do NOT run both. Finally, turn on the SSID broadcast of your access point as that really helps in some cases.
 
Old 09-25-2006, 05:24 PM   #6
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
Thanks! Well, it gets more stranger. I set my router to broadcast ESSID. After I re-booted, I had to load ndiswrapper module, after I did that, the wlan0 device showed in iwconfig and ifconfig list. then I did, iwlist wlan0 scanning, it returned: wlan0 No scan results. Thats strange, because router is like 2 feet away from me. Then I wanted to make sure that I set ESSID broadcast, so I plugged in the cable that goes directly to router, went to http://192.168.1.1, but the broadcast was enabled.
Then I did iwlist wlan0 scanning again, and then it returned multiple networks. Now when I plug the wire off, it still scanns and it finds networks as it should. Then I did dhcpcd wlan0, and I got the IP again, but still can't ping the router. Another strange thing is that when I do dhcpcd wlan0, network card light blinks, like it should when sending/reciving, but when I do ping 192.168.1.1, it doesn't blink.. I have a NETGEAR WGT624 Wireless Router and Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller, if it helps.. I think I never have been this confused
 
Old 09-25-2006, 05:34 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Check the output of route -n and make sure the gateway is pointing at your router. Also have a look at the contents of /etc/resolv.conf and see if your ISPs DNS servers are listed there.

Finally, it might just be a problem with ping or the router being set up to not respond to pings. Can you surf to any sites at all? If you go to http://www.linuxquestions.org does it work? Or if you go to http://64.179.4.146 do you end up here?
 
Old 09-25-2006, 05:59 PM   #8
Shioni
Member
 
Registered: Mar 2006
Posts: 182

Original Poster
Rep: Reputation: 30
Thank you very much!! Why isn't dhcpcd add thous dns servers to my resolf.conf or aren't the wireless router responsible for DNS name lookup!?
I should have try to ping outsite ip in the first place, I didn't thougt that router wont respond to pings!! I added DNS to resolf.conf and everything is working now!! Thats alot!!

Last edited by Shioni; 09-25-2006 at 06:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't use static IP, can only use DHCPCD wlan0 __spc__ Linux - Wireless Networking 15 03-18-2006 03:50 PM
dhcpcd wlan0 doesn't assign ip address dnaEnhanced Slackware 1 02-01-2006 02:34 PM
dhcpcd wlan0 initialization CanuckFlyboy Linux - Wireless Networking 1 09-02-2004 04:43 AM
dhcpcd kills wlan0 broxys Linux - Wireless Networking 2 07-06-2004 04:03 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM


All times are GMT -5. The time now is 03:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration