LinuxQuestions.org
Review your favorite Linux distribution.
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-14-2009, 09:46 AM   #1
pthalo
LQ Newbie
 
Registered: Jan 2009
Location: Hungary
Distribution: Debian Lenny, Ubuntu Karmic Koala
Posts: 9

Rep: Reputation: 0
No DHCPOFFERS received. No working leases in persistent database - sleeping.


I recently installed Ubuntu on my windows computer, so now I have a debian computer and an ubuntu computer and they're both set up to access the internet with a wired connection. The debian one works fine, but the ubuntu one either connects to the internet or it doesn't. Sometimes if I run sudo ifup -a, sudo ifdown -a, sudo ifup-a, sudo ifdown -a (etc) for a while, it will eventually connect, but never on the first try. I've tried sudo dhclient eth0 too.

/etc/network/interfaces looks like this on both computers:

Code:
auto lo
iface lo inet loopback
iface eth0 inet dhcp

auto eth0
sudo ifup -a gives me:

Code:
Listening on LPF/eth0/00:1a:a0:9f:73:ee
Sending on   LPF/eth0/00:1a:a0:9f:73:ee
DHCPDISCOVER  on  eth0  to 255.255.255.255  port 67  interval  7
DHCPDISCOVER  on  eth0  to 255.255.255.255  port 67  interval  9
DHCPDISCOVER  on  eth0  to 255.255.255.255  port 67  interval  17
DHCPDISCOVER  on  eth0  to 255.255.255.255  port 67  interval  12
DHCPDISCOVER  on  eth0  to 255.255.255.255  port 67  interval  8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

and then sudo ifdown -a:

Code:
Listening on LPF/eth0/00:1a:a0:9f:73:ee
Sending on   LPF/eth0/00:1a:a0:9f:73:ee
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
This is odd. Anyway, usually I have to do this a few times before it finally does communicate with the router, (and sometimes it'll connect without me having to do anything), but today it just won't, no matter what I do.

After ifup -a, even though it doesn't work,

ping 192.168.1.1 gives me:
Code:
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 169.254.10.214 icmp_seq=1 Destination Host Unreachable
but after ifdown -a, pinging results in:
Code:
connect: Network is unreachable

sudo dhclient eth0 seems to do the same thing as ifup.

The ubuntu computer never had problems connecting to the internet when it was the windows computer, and when it does connect, the router gives it the same IP address it used to give it when it was the windows computer.

I think I'm on my fiftieth ifup ifdown dance, so it's time to try something else.

Last edited by pthalo; 10-14-2009 at 09:54 AM.
 
Old 10-14-2009, 10:03 AM   #2
pthalo
LQ Newbie
 
Registered: Jan 2009
Location: Hungary
Distribution: Debian Lenny, Ubuntu Karmic Koala
Posts: 9

Original Poster
Rep: Reputation: 0
Also, from dmesg:

Code:
[  3662.253282] e1000e 0000:00:19.0:  irq  25 for MSI/MSI-X
[  3662.308072] e1000e 0000:00:19.0:  irq  25 for MSI/MSI-X
[  3662.309158] ADDRCONF(NETDEV_UP): eth0: link is not ready
 
Old 10-14-2009, 10:24 AM   #3
pthalo
LQ Newbie
 
Registered: Jan 2009
Location: Hungary
Distribution: Debian Lenny, Ubuntu Karmic Koala
Posts: 9

Original Poster
Rep: Reputation: 0
well, after about an hour trying "ifup -a" and it not working so "ifdown -a" and then "ifup -a" again:

Code:
pthalo@pthalo-desktop:~$ sudo ifup -a
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1a:a0:9f:7e:ee
Sending on   LPF/eth0/00:1a:a0:9f:7e:ee
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER of 192.168.1.11 from 192.168.1.1
DHCPREQUEST of 192.168.1.11 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.11 from 192.168.1.1
bound to 192.168.1.11 -- renewal in 105160 seconds.
this is wonderful, it means my problem is solved for today. But my question is still open because I'm going to have to do this again tomorrow, when I turn my computer on next.
 
Old 10-15-2009, 11:32 AM   #4
pthalo
LQ Newbie
 
Registered: Jan 2009
Location: Hungary
Distribution: Debian Lenny, Ubuntu Karmic Koala
Posts: 9

Original Poster
Rep: Reputation: 0
I still need help with this. i'm still getting "ADDRCONF(NETDEV_UP): eth0: link is not ready" in dmesg, and can't connect to the internet.
 
  


Reply

Tags
dhcp, ifdown, ifup, networking, ubuntu910


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 DHCPOFFERS received. No working leases in persistent database - sleeping. maati1980 Linux - Wireless Networking 7 09-27-2010 10:24 PM
No DHCPOFFERS received ryedunn Linux - Wireless Networking 1 09-27-2008 01:22 PM
ipw2100 on debian testing - No working leases - sleeping joffa Linux - Wireless Networking 1 06-11-2007 08:56 AM
ipw2100 on debian testing - No working leases - sleeping joffa Linux - Wireless Networking 1 04-14-2007 01:20 AM
NO DHCPOFFERS received ekdya Debian 7 04-27-2006 04:09 AM


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

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