LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-28-2008, 05:05 PM   #1
oopsdude
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian 4.0 Etch
Posts: 8

Rep: Reputation: 0
DHCP via router on Debian fails, XP works fine


Hello all,

I just installed Debian and have hooked up eth0 to a Netgear wireless router (I'm using wired until I get my wireless drivers to work). Whenever I run dhclient, ifup eth0, /etc/init.d/networking restart, or anything at all to request a DHCP address, I get this:

Quote:
Listening on LPF/eth0/00:1e:68:38:73:56
Sending on LPF/eth0/00:1e:68:38:73:56
Sending on Socket/fallback
DHCPDISOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISOVER on eth0 to 255.255.255.255 port 67 interval 14
... (and so on)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I also have an XP box, also hooked up through eth0 to the router. DHCP on that machine works just dandy. The Windows command ipconfig /all tells me that the DHCP server is 10.0.0.1, the address of my router.

ping 10.0.0.1 gives this:

Quote:
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.6 icmp_seq=2 Destination Host Unreachable
From 10.0.0.6 icmp_seq=3 Destination Host Unreachable
From 10.0.0.6 icmp_seq=4 Destination Host Unreachable
... (and so on)
/etc/network/interfaces reads in part:

Quote:
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth0
Also, for some reason, occasionally I see ifup eth0 run on boot, and it connects successfully. But then when X starts up, it somehow... disconnects? The "Network Tools" utility says only about 15KB were sent. I'm not sure what to call it, since Debian still claims my connection is active. But I'm in the same situation as if DHCP had failed. And it wouldn't make sense for a lease to expire that quickly. Perhaps it's a separate issue.

Any help would be greatly appreciated! Thanks in advance.

Last edited by oopsdude; 08-28-2008 at 05:19 PM.
 
Old 08-28-2008, 07:06 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. check your cable
2. check the setup of your router - it may be configured to only accept requests from certain MAC numbers, or it may be set to dispense static addresses and you have no static address assigned to your Linux box.
 
Old 08-28-2008, 07:31 PM   #3
oopsdude
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian 4.0 Etch
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks, I'm checking my router setup just in case, but I think both those issues are addressed by the fact that the Internet works fine when I boot into XP. Perhaps I wasn't clear; I have an XP box connected to the router, and another box that dual-boots Debian and XP. Both XPs connect to the Internet with no problems. Debian is the only one with DHCP issues. Since Debian and XP share the MAC address of my Ethernet card, I think we can eliminate that proposal. Unless I'm missing something.

Thanks in advance again!
 
Old 08-28-2008, 09:13 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Quote:
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
auto eth0
I wonder if it doesn't like the fact that eth0 is defined as both allow-hotplug and allow-auto? Try commenting out the auto line and see if that changes it.
 
Old 08-28-2008, 09:18 PM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I would suggest removing the "allow-hotplug" line since that's only needed if your NIC is removable (like a PCMCIA type) - I can't see how it would otherwise affect your system though.

What is the NIC as determined by matching entries in 'lspci' and 'lspci -n'? It is possible that the wrong driver is loaded so it's best to track the driver from the VendorID:ProductID numbers.

And just to check one more time using 'ifconfig', try:

ifdown eth0
ifconfig eth0 up 10.0.0.6 netmask 255.255.255.0

then try that ping again.

I also forgot - when you have that trouble, can you log into the router via the other computer and check the active leases? Some routers are a bit stupid and require you to drop the lease - most however drop the lease as soon as the cable is disconnected or the computer powered down or else they hand out a new lease anyway.

Last edited by pinniped; 08-28-2008 at 09:21 PM.
 
Old 08-28-2008, 10:04 PM   #6
oopsdude
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian 4.0 Etch
Posts: 8

Original Poster
Rep: Reputation: 0
I tried commenting out the auto line, the allow-hotplug line and then both just for good measure, but nothing changed.

I tried ifdown eth0 and got this:
Quote:
There is already a pid file /var/run/dhclient.eth0.pid with pid 3976
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
... (blah blah blah, copyright stuff)

Listening on LPF/eth0/00:1e:68:38:73:56
Sending on LPF/eth0/00:1e:68:38:73:56
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.0.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
So apparently it's aware of the router, at least; just not able to connect to it? I tried ifconfig eth0 up 10.0.0.6 netmask 255.255.255.0 as well and got this:

Quote:
SIOCSIFADDR: No such device
up: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
lspci gives me:
Quote:
...
03:00.0 Network controller: Broadcom Corporation Unknown device 4328 (rev 03)
And lscpi -n gives me:
Quote:
...
03:00.0 0280: 14e4:4328 (rev 03)
Is that what you're looking for? If not, I'll be happy to give any other information.
 
Old 08-28-2008, 11:31 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Have you tried "ifup --force eth0"?

Guess I don't have much else to offer.

Last edited by Quakeboy02; 08-28-2008 at 11:33 PM.
 
Old 08-29-2008, 01:10 AM   #8
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
The bit you posted:

03:00.0 0280: 14e4:4328 (rev 03)

That's your Wireless gizmo. The posts I have dug up all say "use ndiswrapper" which means installing ndiswrapper and setting up the WinDuhs driver.

Have another try at identifying the wired network device.

The other lines you posted like:
SIOCSIFADDR: No such device
indicate that the driver is not working for whatever reason (usually missing firmware, but in some cases the wrong driver loads as already mentioned). At least we've established that the DHCP messages are probably misleading because your NIC isn't actually working.

Can you also post the output of:
dmesg|grep eth
 
Old 09-02-2008, 07:51 PM   #9
oopsdude
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian 4.0 Etch
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your help guys, finally got ndiswrapper working (on Ubuntu) and everything works great now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Vista fails to print when going to CUPS. XP works fine. yah0m Linux - Software 1 08-09-2008 08:54 AM
Wireless router and works, signal strong, DHCP IP issued fine. No access to web nikos3.14 Linux - Wireless Networking 3 04-24-2008 03:26 AM
rdc:/ KDE ioslave fails, rdesktop works fine utahnix Suse/Novell 0 02-04-2008 08:51 PM
dhcp works fine with router but NOT without nazdrowie Linux - Networking 5 11-06-2004 02:51 PM
DHCP fails, static IP partially works bigRez Linux - Networking 1 04-20-2004 06:23 PM


All times are GMT -5. The time now is 07:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration