DHCP issue

Kernels & Hardware, configuring network, installing services

DHCP issue

Postby red.13 » 2005-05-10 09:07

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.
red.13
 
Posts: 1
Joined: 2005-05-10 07:43

Postby lacek » 2005-05-10 14:37

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?
lacek
Moderator Team Member
 
Posts: 769
Joined: 2004-03-11 18:49
Location: Budapest, Hungary

Postby samefab » 2005-05-19 22:25

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.
User avatar
samefab
 
Posts: 2
Joined: 2005-05-19 22:13
Location: Lille, France

Postby nab » 2005-06-01 12:04

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.
nab
 
Posts: 1
Joined: 2005-06-01 11:40

Postby Terje » 2005-06-01 12:30

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.
User avatar
Terje
 
Posts: 124
Joined: 2005-03-25 12:38


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable