Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

DHCP issue

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
red.13
Posts: 1
Joined: 2005-05-10 07:43

DHCP issue

#1 Post by red.13 »

Hello all!

Some time ago I installed Debian Sarge on my machine (there was WinXP installed also). Everything worked very nicely (the whole installation used DHCP and I have to say I didn't have to interfere) thus after the installation I got a fancy, new Debian. Everything was fine till one day when my net wouldn't simply start. Deriving my knowledge from the internet I did following things:

1. 'Pinged' localhost - everything seems OK

Code: Select all

19 packets transmitted, 19 received, 0% packet loss, time 17990ms
rtt min/avg/max/mdev = 0.024/0.026/0.031/0.006 ms
2. Output of my 'ifconfig':

Code: Select all

eth0      Link encap:Ethernet  HWaddr 00:0A:5E:52:8E:8A
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:5
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:1710 (1.6 KiB)
          Interrupt:10 Base address:0xd000

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:286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:19132 (18.6 KiB)  TX bytes:19132 (18.6 KiB)
3. When executing route I see a blank table.

4. /etc/network/interfaces

Code: Select all

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
5. During '/etc/init.d/networking restart' and system boot:

Code: Select all

Listening on LPF/eth0/00:0a:5e:52:8e:8a
Sending on   LPF/eth0/00:0a:5e:52:8e:8a
Sending on   Socket/fallback/fallback-net
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database.

Exiting.
DHCP and net works on my WinXP so I am quite sure it's some Linux issue. I will be thankful for any response.

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

Do you have access to the DHCP server? Does the logs of that say anything interesting?
Try to configure your interface to have a static IP. Does is work that way?

User avatar
samefab
Posts: 2
Joined: 2005-05-19 22:13
Location: Lille, France

#3 Post by samefab »

I had a problem with my livebox. with DHCP, DNS didn't work after about 15 minutes. I've just turn my config to static config and now I'haven't any more problems.

nab
Posts: 1
Joined: 2005-06-01 11:40

#4 Post by nab »

Hi, do you still have your problem when you turn back your config with DHCP? Because I had the same problem once, I'm under Debian sid, and there was a problem with the new "dhcp3-client", so I just removed it and replaced it by the old one "dhcp-client", and everything went well.

Hope this will help, let me know.

User avatar
Terje
Posts: 117
Joined: 2005-03-25 12:38

#5 Post by Terje »

Don't know where you are from or how your provider gives ip adresses, but here in Belgium I'm with a provider that gives you 1 IP/payment. I had the same problem a few times too till I found out that Windows XP didn't release my IP and so the DHCP server didn't wanne give a new one.

Do you also have the same problem after your pc was off for an hour or 2?

When you close down Windows XP just go to the cmd line ->execute cmd and type ipconfig /release

Then reboot and go to your linux installation.
Registered Linux user number 391283.

Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity.

Post Reply