LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-23-2005, 04:55 PM   #1
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
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.

Last edited by Mr_C; 12-23-2005 at 04:56 PM.
 
Old 12-23-2005, 06:04 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
Old 12-23-2005, 07:38 PM   #3
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
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:~#

Last edited by Mr_C; 12-23-2005 at 07:42 PM.
 
Old 12-24-2005, 07:57 PM   #4
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
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..)
 
Old 12-24-2005, 11:59 PM   #5
Mr_C
Member
 
Registered: Jan 2004
Location: Trinidad & Tobago
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
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.
 
Old 12-25-2005, 07:20 AM   #6
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
hrm, i seem to remember running nat on my box without dhcp..
 
  


Reply



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
I need dhclient but there is no one g-string 3 Linux - Networking 2 05-19-2005 03:42 PM
Red Hat 9 and dhclient dx0r515t Linux - Newbie 8 01-14-2005 05:01 PM
dhclient and 2.4.23 townfool Linux - Networking 1 12-16-2003 04:40 PM
DHCLIENT Stops working after upgrade kernel from 2.4.20 to 2.4.22 in Slackware curdanet Linux - Networking 5 11-01-2003 12:57 PM
dhclient helloworld Linux - Networking 2 03-06-2001 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration