LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2003, 10:44 PM   #1
ToTLaugher
LQ Newbie
 
Registered: Sep 2003
Location: Massachusetts
Distribution: RedHat 9
Posts: 6

Rep: Reputation: 0
dhclient not getting an address


I'm trying to install a belkin f5d6050 usb wireless device on my Rh9 system. I'm using the atmelwlandriver from the sourceforge project. Ecerything builds fine, iwconfig shows the device finding my WAP, and the router shows the f5d6050 MAC in its associations list. Everything looks good until I try to run dhclient to get an IP address from the router. I get:

Internet Software Consortium DHCP Client V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit www isc org/products/DHCP

Listening on LPF/eth0/00:30:f1:10:33:37
Sending on LPF/eth0/00:30:f1:10:33:37
Sending on Socket/fallback
bogus UDP packet length: 1540
bogus UDP packet length: 1540
bogus UDP packet length: 1540
bogus UDP packet length: 1540
bogus UDP packet length: 1540
bogus UDP packet length: 1540
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Since this is my first Linux box, I'm not sure what from this output is normal and correct, and what is indicative of a problem. Is the "Sending on Socket/fallback" normal, or a bad thing. I'm guessing bogus UDP packet length is bad. I assume the DHCPDISCOVER messages are a vain attempt to find a DHCPOFFER, which isn't happening.

Can anyone interpret the output for me and give me some suggestions for things to try.

Thanks.
 
Old 10-04-2003, 02:51 AM   #2
techguy2
LQ Newbie
 
Registered: Mar 2003
Location: Virginia
Distribution: RedHat 7.0 2.2
Posts: 10

Rep: Reputation: 0
ToTLaugher in order to get dhcp working correctly you need to have a file set up to issue dhcpd.leases in my copy of rh6,7 the file is created by touch /var/lib/dhcp/dhcpd.leases this will create the file to store the lease data which would be issued to the clients. Then you would have to issue chmod 755 /var/lib/dhcp/dhcpd.leases in order to give it the correct permissions to operate at the root level. try running dhcpd -f to see where your lease file should be placed, it may not be in the same location as listed above. I am pretty new at this too but i have been able to get dhcp to work without a problem. Also if you are using your linux box as a gateway you will need to edit your dhcpd.conf file and enter the subnet info from you service provider. this would be entered as ex; subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.5;
}

issue the /sbin/ifconfig command to find out what is your internet isp ip address is and then get a subnet calculator to determine the network address by inputing the ip address from the ifconfig command and the netmask.

replace 192.168.0.1 192.168.0.5 with the range of ip addressed and the netmask and the subnet 192.168.0.0 with the proper subnet network address. hope it works!
 
Old 10-06-2003, 07:59 AM   #3
ToTLaugher
LQ Newbie
 
Registered: Sep 2003
Location: Massachusetts
Distribution: RedHat 9
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Techguy2. I know lots of people who've got hdcp running just fine. That what baffles me. its not a problem with the leases file or permissions - I checked that.

Does anyone have an example of the output from dhclient when it works? Can anyone tell me what is good and what is bad about the output I am seeing?
 
Old 11-08-2003, 11:03 AM   #4
streetpc
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.1 FR (dualboot XP)
Posts: 3

Rep: Reputation: 0
Angry


I have the same problem (Mandrake 9.1 - Modem: USB Motorolla SB4100), but the solution given here does not work
I get this:
Quote:
[streetpc@localhost streetpc]$ su
Password:
[root@localhost streetpc]# touch /var/lib/dhcp/dhcpd.leases
[root@localhost streetpc]# chmod 755 /var/lib/dhcp/dhcpd.leases
[root@localhost streetpc]# dhclient eth0
Internet Software Consortium DHCP Client V3.0pl2
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/eth0/00:0c:76:35:bb:56
Sending on LPF/eth0/00:0c:76:35:bb:56
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
So what ? Did I make something wrong ?
The Internet Connection Manager indicates a connection "eth0 - DHCP" but there is no IP address...
 
Old 11-08-2003, 12:52 PM   #5
phz
LQ Newbie
 
Registered: Oct 2003
Location: Norway
Distribution: 98SE, 2000, MS-DOS6.22, Trustix1.5, Slackware 9.1
Posts: 23

Rep: Reputation: 15
Is that ur only network device? I had a similar problem a week ago. After hours of frustration i found that dhclient tried to connect through my other ethernet card (i have two) which was not connected to the router, lol.

Last edited by phz; 11-08-2003 at 12:53 PM.
 
Old 11-08-2003, 02:25 PM   #6
streetpc
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.1 FR (dualboot XP)
Posts: 3

Rep: Reputation: 0
Thx for yur answer.
I'm wrong:
in fact, I have ONE Eth. Card (Eth0) the I must use
the "modprobe CDCEther" to get Eth1
and when I type dhclient eth1
I get 2 lines DHCLIENTXXXXX (whose one with "/fallback" [if this can help ;-P])
and "Expiring in xxxx seconds" (about 5K/6K sec.)...
I am on Mandrake 9.1, so (is it because of that ?) I haven't the file
/etc/network/interfaces
as said in some tutorials...

PLEASE HELP ME !!
IT'S BEEN 5 HOURS I'M SEARCHING !!
<= remind !
 
Old 11-09-2003, 05:03 AM   #7
streetpc
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.1 FR (dualboot XP)
Posts: 3

Rep: Reputation: 0
1) My SB4100 Modem is now plugged on USB AND Ethernet, without any result
If I plug it only on USb, WIndows XP can't access to the Internet...

2) If this can help, there are the results of "dmesg" and "ifconfig" commands here
 
  


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
how to request a specific ip address with dhclient hypexr Linux - Networking 4 09-15-2005 10:07 PM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
dhclient ip address disagrees length shpung Linux - Wireless Networking 2 02-27-2005 12:12 PM
How to get new ip address w/dhclient pbr Linux - Networking 2 11-10-2004 02:36 PM
Can't receive Dynamic IP address in FC2 with dhclient neolith_god Fedora 1 05-31-2004 09:17 PM

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

All times are GMT -5. The time now is 11:50 AM.

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