LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   more madwifi + atheros troubles DHCP! (https://www.linuxquestions.org/questions/linux-wireless-networking-41/more-madwifi-atheros-troubles-dhcp-429932/)

jb2006 03-30-2006 04:23 AM

more madwifi + atheros troubles DHCP!
 
well a few weeks back i posted a message on here because i had trouble with actually configuring madwifi + wpa_supplicant but now i have DHCP problems!

so i've set it all up, added the key to the wpa_supplicant.conf file, type "iwconfig ath0" and sure enough im happy with what outputs.

Quote:

ath0 IEEE 802.11g ESSID:"XXXXXX"
Mode:Managed Frequency:2.457 GHz Access Point: 00:11:50:39:AF:F6
Bit Rate:54 Mb/s Tx-Power:17 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX Security mode:restricted
Power Management:off
Link Quality=61/94 Signal level=-34 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


so yeah it appears to be working, so now i need to configure DHCP.
i typed: dhclient ath0
it said
Quote:

ath0: not found
so i typed: dhcpcd ath0 then dhclient ath0
and i got this:
Quote:

Listening on Socket/ath0
Sending on Socket/ath0
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
whats up with that, is it something to do with my router.
My router is a Belkin Wireless-G Router 54-Mbps

JunctaJuvant 03-30-2006 09:22 AM

AFAIK dhcpcd and dhclient are two different programs that do the same thing, so you only need to run one of them. Try executing "ifconfig" and if ath0 is not in the output, try "ifconfig ath0 up" and then try "dhclient ath0".
Hope that helps.


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