Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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?
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...
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.
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 !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.