LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   dhcpcd ath0 fails, works for eth0 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/dhcpcd-ath0-fails-works-for-eth0-402603/)

Josh328 01-12-2006 03:59 PM

dhcpcd ath0 fails, madwifi problem
 
so i was successfully browsing wirelessly using the madwifi-ng driver for my atheros chip. however, i ran some suse 10 updates (including a kernel upgrade) and now things are messed up. after getting a strange error when trying to create ath0, i reinstalled madwifi-ng. it worked.. now i'm able to scan for access points and even connect to them. however, 'dhcpcd ath0' times out every time. 'dhcpcd eth0' works just fine; in fact i'm using it now. any ideas?! can i somehow reset dhcpcd?

here is my output when trying to connect using wlanassistant. dhcpcd times out when doing this manually too...

Code:

ACTION: CONNECT.
ifup: /sbin/ifconfig ath0 up
iwconfig_set: /usr/sbin/iwconfig ath0 essid hayden_wireless2 mode managed channel 6 key open xxxxxxxxxxxxxxxxxxxxxxxxxx
iwconfig_ap: /usr/sbin/iwconfig ath0 ap 00:90:4B:34:40:BC
ifconfig_dhcp: /sbin/dhcpcd -nd ath0
...file '/var/run/dhcpcd-ath0.pid' does not exist - no DHCP lease present.
CONNECTION FAILED.

after scanning and connecting to the access point manually...
Code:

delilah:/home/josh # iwconfig ath0
ath0      IEEE 802.11g  ESSID:""
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4B:34:40:BC
          Bit Rate:0 kb/s  Tx-Power:18 dBm  Sensitivity=0/3
          Retry:off  RTS thr:off  Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX  Security mode:restricted
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:2106  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

delilah:/home/josh # dhcpcd ath0

...and it simply never responds.. well, it eventually just times out.

maybe things are connecting as i thought they were.. notice the link quality.
now, if i run 'iwconfig ath0', i get the same results, only it thinks it's 802.11a now, when it's really g.


thanks for the help,
josh

Josh328 01-12-2006 04:33 PM

this may also help...

Code:

delilah:/home/josh # tail -f /var/log/messages
...
Jan 12 16:31:04 delilah kernel: ath0: no IPv6 routers present
Jan 12 16:32:04 delilah dhcpcd[13747]: timed out waiting for a valid DHCP server response


big_mac126 01-13-2006 02:16 PM

madwifi is known to have problems with dhcp (namely with wpa_supplicant)...I'm not sure if that also applies to what ur doing.

http://www.thinkwiki.org/wiki/Wpa_su...nt#For_WPA-PSK
Quote:

NOTE!
At the moment there is a problem within the madwifi driver or wpa_supplicant passing dhcp. Thatīs why I use a fixed IP.

There are two patches one for wpa_supllicant (http://hostap.epitest.fi/bugz/show_bug.cgi?id=63) and one for madwifi
(http://article.gmane.org/gmane.linux...fi.devel/1275). Each one is supposed to work.

sharadshankar 01-15-2006 09:35 PM

hey dude i'm having a similar problem on my ubuntu. I'm using realtek rtl8185. I also get no ip-v6 routers found. I'm pretty sure there is something messed up with that. I'm gonna do more digging and see what i can find.

Josh328 01-21-2006 06:07 PM

hmm.. ok.. mine scans just fine.. just the DHCP fails. i'm not using WPA either.

Thanks for the responses.. let me know what you find.

Josh

avirup dasgupta 02-01-2006 04:34 AM

For some reason,

#ifup ath0

worked for me

I am using FC4.madwifi latest cvs,dwl-520

(Did someone try upgrading the dhclient ?)

shaoyu 02-07-2006 09:00 PM

ath0: no IPv6 routers present
 
Hi, all,
I am having the same problem with FC4 and Madwifi drive.
iwconfig sees the AP, and the AP sees the MAC address, but I simply could not get a dhcp address.
The dmesg reports this: "ath0: no IPv6 routers present".

Is there any expert out there that can help?

Thanks

Mr_C 02-07-2006 10:45 PM

Quote:

Code:

delilah:/home/josh # iwconfig ath0
ath0      IEEE 802.11g  ESSID:""
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4B:34:40:BC
          Bit Rate:0 kb/s  Tx-Power:18 dBm  Sensitivity=0/3
          Retry:off  RTS thr:off  Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX  Security mode:restricted
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:2106  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

delilah:/home/josh # dhcpcd ath0



why is it you have no essid?
iwconfig ath0 essid ssid_name


All times are GMT -5. The time now is 07:49 PM.