LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   dhclient not working (https://www.linuxquestions.org/questions/linux-wireless-networking-41/dhclient-not-working-396026/)

Mr_C 12-23-2005 04:55 PM

dhclient not working
 
Hi all, I have a installed the madwifi-ng drivers for my netgear wg511t card. I've set it up in ad-hoc mode and I connects to another windows pc (which has ICS enabled). The windows icons says I have connected; signal strength excellent...
The problem is that the command "dhclient ath0" returns the following:

Code:

Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

ath0: not found

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.

Help as to why the dhcp client is not functioning.

Hangdog42 12-23-2005 06:04 PM

Two things...First, have a look at the output of iwconfig to make sure that the card is ther. Second, if this is a stock Slackware box, usd dhcpcd instead of dhclient.

Mr_C 12-23-2005 07:38 PM

Ok I did use dhcpcd as well and was in fact issued an ip address. I thought it was dhclient not working. But thats not the problem. I could not ping the other pc. So I reverted to static ips
PC(ICS)1.1.1.1-->slackbox1.1.1.117

Like I said the icons indicate excellenct connectivity but I can't ping whatsoever. Don't understand why.

Code:

root@SOL:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0    no wireless extensions.

sit0      no wireless extensions.

ath0      IEEE 802.11g  ESSID:"sol"  Nickname:"SOL"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:0F:B5:EB:4A:C0
          Bit Rate=11 Mb/s  Tx-Power:19 dBm  Sensitivity=0/3
          Retry:off  RTS thr:off  Fragment thr:off
          Encryption key:3132-3334-3536-6338-3930  Security mode:restricted
          Power Management:off
          Link Quality=22/94  Signal level=-73 dBm  Noise level=-95 dBm
          Rx invalid nwid:2  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

root@SOL:~# ifconfig
ath0      Link encap:Ethernet  HWaddr 00:0F:B5:EB:4A:C0
          inet addr:1.1.1.117  Bcast:1.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::20f:b5ff:feeb:4ac0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:300 (300.0 b)  TX bytes:9334 (9.1 Kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:158 errors:0 dropped:0 overruns:0 frame:0
          TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16002 (15.6 Kb)  TX bytes:16002 (15.6 Kb)

wifi0    Link encap:Ethernet  HWaddr 00:0F:B5:EB:4A:C0
          inet6 addr: fe80::20f:b5ff:feeb:4ac0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16054 errors:0 dropped:0 overruns:0 frame:9063
          TX packets:3670 errors:2 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199
          RX bytes:1095616 (1.0 Mb)  TX bytes:182192 (177.9 Kb)
          Interrupt:11 Memory:e8b80000-e8b90000

root@SOL:~# route
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
1.0.0.0        *              255.0.0.0      U    0      0        0 ath0
loopback        *              255.0.0.0      U    0      0        0 lo
default        *              0.0.0.0        U    0      0        0 ath0
root@SOL:~#


short101 12-24-2005 07:57 PM

you need to set the default gw. (if the windows box is going to share the connection, then it will be the default gw) man route. (i am a bit confused as to why you try to use dhclient for an ad-hoc connection..)

Mr_C 12-24-2005 11:59 PM

You need dhcp for ICS
Actually the problem was two fold:
1-Windows was messed up: I had to download this winsockfix app to reset all winxp network settings
2-The madwifi driver as of 22/12/2005 is broken for ad-hoc.
Have to wait till that gets resolved.

short101 12-25-2005 07:20 AM

hrm, i seem to remember running nat on my box without dhcp..


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