LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-19-2009, 02:28 PM   #1
ehrenbrav
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
No DHCP Offers with Debian


Here's a very vexing problem.

I recently installed Debian on a laptop using a live CD. Now with the same NIC and ethernet connection, I can't get a DHCP offer. I'm running Windows machines off the same cable modem no problem.

I've looked at many FAQs, HOWTOs and forums but cannot seem to resolve this issue. ifconfig reveals eth0, which appears to be functioning normally (it's plugged in).

Using ifdown eth0 and then ifup eth0, I get a series of DHCPDISCOVERs but no DHCPOFFERs. Resetting the cable modem and restarting the computer does not resolve this issue. All the while, my Windows machines work fine.

I suspect it's not a hardware issue since I used the same NIC and ethernet connection to install Debian in the first place. I'd be more than grateful for any advice on how to troubleshoot this issue and can provide the syslog entries if that would help.
 
Old 08-19-2009, 02:44 PM   #2
chris71mach1
LQ Newbie
 
Registered: Apr 2005
Location: DFW
Distribution: Debian
Posts: 17

Rep: Reputation: 1
what are the contents of your /etc/network/interfaces file?
 
Old 08-19-2009, 02:47 PM   #3
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Perhaps we could get you to post the output of the following commands:

ethtool ethX

where X is the number of the interface you are using.

ifconfig


This information will give us something to go on.

Regards,

Fordeck
 
Old 08-19-2009, 03:21 PM   #4
ehrenbrav
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks much - will post results from ethtool and ifconfig a bit later.

etc/network/interfaces doesn't have anything fishy...as I recall:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
 
Old 08-19-2009, 03:30 PM   #5
chris71mach1
LQ Newbie
 
Registered: Apr 2005
Location: DFW
Distribution: Debian
Posts: 17

Rep: Reputation: 1
try using pump to force the interface into a dhcp request:

apt-get install pump
pump -i eth0

hopefully thatll get you some kind of results...
 
Old 08-19-2009, 08:20 PM   #6
ehrenbrav
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Perhaps we could get you to post the output of the following commands:

ethtool ethX

where X is the number of the interface you are using.

HMMM...I DON'T HAVE ETHTOOL ON MY SYSTEM THAT I KNOW OF

ifconfig

HERE'S WHAT IFCONFIG HAS TO SAY:

eth0

Link encap: Ethernet HWaddr 00:0b:db:02:0a:0d
UP BROADCAST MULTICAST MTU: 1500 Metric: 1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collissions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11 Base address:0x6c00

eth1

Link encap: Ethernet HWaddr 00:02:2d:86:ec:ec
inet6 addr: fe80::202:2dff:fe86:ecec/64 Scope:Link
UP BROADCAST MULTICAST MTU: 1500 Metric: 1
RX packets:447 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:32 dropped:0 overruns:0 carrier:0
collissions:0 txqueuelen:1000
RX bytes:73195 (61.4 KiB) TX bytes:22766 (22.2 KiB)
Interrupt:5 Base address:0xe100

eth0:avahi

Link encap: Ethernet HWaddr 00:0b:db:02:0a:0d
inet addr: 169.254.2.49 Bcast:169.254.255.255 Mask: 255.255.0.0
UP BROADCAST MULTICAST MTU: 1500 Metric: 1
Interrupt:11 Base address:0x6c00

lo

Link encap: Local Loopback
inet addr: 127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric: 1
RX packets:72 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collissions:0 txqueuelen:0
RX bytes:6270 (6.1 KiB) TX bytes:6270 (6.1 KiB)

THANKS
 
Old 08-20-2009, 07:54 AM   #7
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Have you tried using dhclient? You could run the following command:

dhclient ethX

where X is the number of the interface you are using. That command will get your machine to try again for a DHCP address. If your not running as root you may need to preface it with 'sudo'.

You might also try running:

mii-tool ethX

This will show your link status. Again these commands need to be ran as the user root.

Regards,

Fordeck
 
Old 08-20-2009, 08:22 PM   #8
ehrenbrav
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
dhclient eth0 resulted in the same thing I'd seen before using ifup eth0...

DHCPDISCOVER on 255.255.255.255 port 67 interval X
blah
blah
blah

No DHCPOFFERS...



mii-tool says there's no link

I checked cat syslog.1 | grep eth0 and found that it says eth0 is fully supported...

The device is:

Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)

I plugged in the ethernet cable to my windows machine and got online no problem.

Any other thoughts on what could be causing this problem? Again, I had no problem installing Debian from the live CD using the same connection...

Thanks again.
 
Old 08-20-2009, 08:47 PM   #9
ehrenbrav
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Intriguing...

I just got it to work by switching to a lower runlevel!

Now it seems to work fine in all runlevels, though I'm not sure if that was something to do with my computer or perhaps my finicky ISP...

Anyway, thanks everyone for your suggestions. Be interested to hear thoughts on what could have been going on...
 
Old 08-20-2009, 09:03 PM   #10
ehrenbrav
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Here's a thought -

I checked the interrupts file and noticed that a bunch of things were assigned to interrupt 11. Here's what the line says:

uhci_hcd:usb1, yenta, yenta, eth0, radeon@pci:0000:01:00.0

Any thoughts if this could have been causing the problem? If so, how would I resolve? Thanks.
 
  


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
No DHCP offers received (wifi ) Wireless detected unable to connect Fedexpress Linux - Newbie 3 08-24-2008 05:28 PM
Send DHCP offers on only one NIC out of two, sarajevo Linux - Networking 7 08-05-2008 03:52 AM
Ubuntu, no DHCP offers recieved. The_Neon_Knight Linux - Wireless Networking 0 10-25-2007 04:34 AM
No DHCP Offers With Madwifi wkuballa Linux - Wireless Networking 5 08-15-2007 12:17 PM
No DHCP offers when VMware is running wkuballa Debian 0 06-25-2007 09:34 AM


All times are GMT -5. The time now is 01:01 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