Discussion:
DHCP slow renewal, actually times out but mysteriously still gets an IP
(too old to reply)
Stalks
2004-05-21 19:10:05 UTC
Permalink
I have a small network with 6 public IP addresses. The debian server runs a DHCP server. I've tried
with the 'apt-get install dhcp' and am now using 'apt-get install dhcp3-server'.

When my XP SP1a machine (PC4800 Deluxe with onboard 3COM Gigabit Ethernet) attempts to get an IP via
DHCP, windows actually times out. *but* it *does* get an IP.

For instance ...

<quote>
C:\>ipconfig /release

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :

C:\>ipconfig /renew

Windows IP Configuration

An error occurred while renewing interface Local Area Connection : unable to contact your
DHCP server. Request has timed out.

C:\>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : nooblet.org
Autoconfiguration IP Address. . . : 81.168.82.220
Subnet Mask . . . . . . . . . . . : 255.255.255.248
Default Gateway . . . . . . . . . : 81.168.82.217

C:\>
</quote>

This has the added effect that any startup programs are unable to access the internet, as the
"ipconfig /renew" command takes up to 2mins to time-out, I dont get an IP on boot-up for 2 mins.
Anti-virus complains it cant update its definitions and MSN Messenger gives up connecting. The same
problem is on another XP machine (also SP1a, PC-Chips motherboard with onboard Realtek 100mbps NIC),
but that refuses to startup until it has an IP, therefore sits at a blank desktop for 1 or 2 mins
before loading (which to be honest is actually preffered as that means it has no startup issues with
internet connection).

A workaround would be to issue a static IP to each PC, but I would really like to get this working
as it should.

More info ...

Here is logs from /var/log/syslog concerning an ipconfig /renew from this PC,

# nooblet is the server name, 81.168.82.220 is this PC

# I first restarted the dhcp3-server process
May 21 14:24:13 nooblet dhcpd: Wrote 0 deleted host decls to leases file.
May 21 14:24:13 nooblet dhcpd: Wrote 0 new dynamic host decls to leases file.
May 21 14:24:13 nooblet dhcpd: Wrote 0 leases to leases file.
# ipconfig /release
May 21 14:24:53 nooblet dhcpd: DHCPRELEASE of 81.168.82.220 from 00:0c:6e:70:29:33 via br0 (not found)
# ipconfing /renew (start)
May 21 14:25:00 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:00 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:25:05 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:05 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:25:13 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:13 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:25:30 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:30 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPREQUEST for 81.168.82.220 (0.0.0.0) from 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPACK on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
# ipconfig /renew (end, finally get an ACK)

And my DHCP config ...

(***@nooblet(/var/lib/dhcp)>cat /etc/dhcp3/dhcpd.conf
#
# default options
#

server-identifier nooblet;
default-lease-time 86400;
max-lease-time 86400;
option domain-name "nooblet.org";
option domain-name-servers 81.168.82.217;
option host-name "nooblet";
option routers 81.168.82.217;
option subnet-mask 255.255.255.248;
option time-offset 0;
option time-servers 81.168.82.219;
option netbios-name-servers 81.168.82.219;

#
# dynamically leased ip, will be receiving a further 12 IPs soon but for now there is only one free
#
subnet 81.168.82.216 netmask 255.255.255.248{
range 81.168.82.222;
}

#
# static ip based on mac address
#
host stalks {
hardware ethernet 00:0C:6E:70:29:33;
fixed-address 81.168.82.220;
}
host bambi {
hardware ethernet 00:0D:87:AA:B1:8B;
fixed-address 81.168.82.221;
}


I understand this may be a windows issue, and if you feel I have posted in the wrong newsgroup then
I apologise, I would be grateful if you could point me to the correct group.

--
May the ping be with you ....

Registered Linux user number: 355729
Roberto Sanchez
2004-05-21 22:20:08 UTC
Permalink
Post by Stalks
I have a small network with 6 public IP addresses. The debian server
runs a DHCP server. I've tried
with the 'apt-get install dhcp' and am now using 'apt-get install dhcp3-server'.
When my XP SP1a machine (PC4800 Deluxe with onboard 3COM Gigabit
Ethernet) attempts to get an IP via
DHCP, windows actually times out. *but* it *does* get an IP.
By default, if a DHCP attempt times out, the client will normally
use the last known good address it was given.

-Roberto Sanchez
Steve Allison
2004-05-22 10:20:22 UTC
Permalink
Post by Roberto Sanchez
Post by Stalks
I have a small network with 6 public IP addresses. The debian server
runs a DHCP server. I've tried
with the 'apt-get install dhcp' and am now using 'apt-get install
dhcp3-server'.
When my XP SP1a machine (PC4800 Deluxe with onboard 3COM Gigabit
Ethernet) attempts to get an IP via
DHCP, windows actually times out. *but* it *does* get an IP.
By default, if a DHCP attempt times out, the client will normally
use the last known good address it was given.
-Roberto Sanchez
Does WindowsXP hold onto the last known IP even with a reboot? I
havent a clue about the internal workings of the DHCP protocol.
Looking at the logs,

May 21 14:25:30 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via
br0
May 21 14:25:30 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to
00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via
br0
May 21 14:26:06 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to
00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPREQUEST for 81.168.82.220 (0.0.0.0)
from 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPACK on 81.168.82.220 to
00:0c:6e:70:29:33 via br0

The WinXP machine attempts a DISCOVER, the debian box OFFER's an IP,
but the WinXP machine never accepts it until it sepcifically request's
its last known IP, like you said, which it then immediately
ACKnowledges. Is that correct? Why isn't it accepting the original
OFFERs?

I did some google searching last week about it and some people have
suggested replacing the cable/switch/NIC. I bought a new switch, a
NETGEAR 1gb unmanaged switch, that didnt solve it. Then yesterday
arrived 5 belkin CAT5e snagless patch cables, and I still have the
problem. Would it be possible both onboard NIC's are faulty?

I'm out of idea's, as far as my knowledge goes, everything is set up
correctly, and I was hoping someone here would have a solution.

Heres hoping.

Steve Allison
Roberto Sanchez
2004-05-22 14:30:17 UTC
Permalink
Post by Steve Allison
Post by Roberto Sanchez
Post by Stalks
I have a small network with 6 public IP addresses. The debian server
runs a DHCP server. I've tried
with the 'apt-get install dhcp' and am now using 'apt-get install
dhcp3-server'.
When my XP SP1a machine (PC4800 Deluxe with onboard 3COM Gigabit
Ethernet) attempts to get an IP via
DHCP, windows actually times out. *but* it *does* get an IP.
By default, if a DHCP attempt times out, the client will normally
use the last known good address it was given.
-Roberto Sanchez
Does WindowsXP hold onto the last known IP even with a reboot? I
havent a clue about the internal workings of the DHCP protocol.
Looking at the logs,
I don't know about XP. But, Debian stores its DHCP leases in a
file. When I have shut all my machines down and brought up only
one or two clients, with no DHCP server on the network, the clients
pickup their previous addresses even after the reboot.

-Roberto Sanchez
Shaul Karl
2004-05-22 20:50:08 UTC
Permalink
Post by Roberto Sanchez
Post by Steve Allison
Post by Roberto Sanchez
Post by Stalks
I have a small network with 6 public IP addresses. The debian server
runs a DHCP server. I've tried
with the 'apt-get install dhcp' and am now using 'apt-get install
dhcp3-server'.
When my XP SP1a machine (PC4800 Deluxe with onboard 3COM Gigabit
Ethernet) attempts to get an IP via
DHCP, windows actually times out. *but* it *does* get an IP.
By default, if a DHCP attempt times out, the client will normally
use the last known good address it was given.
-Roberto Sanchez
Does WindowsXP hold onto the last known IP even with a reboot? I
havent a clue about the internal workings of the DHCP protocol.
Looking at the logs,
I don't know about XP. But, Debian stores its DHCP leases in a
file. When I have shut all my machines down and brought up only
one or two clients, with no DHCP server on the network, the clients
pickup their previous addresses even after the reboot.
-Roberto Sanchez
If you are using a

default-lease-time 0;

in /etc/dhcp3/dhcpd.conf then increase it to see if the problem will go
away. Otherwise I haven't a clue.
--
"If you have an apple and I have an apple and we exchange apples then
you and I will still each have one apple. But if you have an idea and I
have an idea and we exchange these ideas, then each of us will have two
ideas." -- George Bernard Shaw (sent by shaulk @ actcom . net . il)
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Stephen Patterson
2004-05-22 22:00:19 UTC
Permalink
Post by Steve Allison
Does WindowsXP hold onto the last known IP even with a reboot? I
havent a clue about the internal workings of the DHCP protocol.
From what I've seen windows 2000 at least appears to hold and reuse its
old IP address unless it can't contact a DHCP server, then it uses a
static IP thats coded into windows.
--
Stephen Patterson http://patter.mine.nu/
***@.patter.mine.nu remove SPAM to reply
Linux Counter No: 142831 GPG Public key: 252B8B37
Caution: breathing may be hazardous to your health.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Rob Sims
2004-05-27 22:10:06 UTC
Permalink
Post by Stalks
# I first restarted the dhcp3-server process
May 21 14:24:13 nooblet dhcpd: Wrote 0 deleted host decls to leases file.
May 21 14:24:13 nooblet dhcpd: Wrote 0 new dynamic host decls to leases file.
May 21 14:24:13 nooblet dhcpd: Wrote 0 leases to leases file.
# ipconfig /release
May 21 14:24:53 nooblet dhcpd: DHCPRELEASE of 81.168.82.220 from 00:0c:6e:70:29:33 via br0 (not found)
# ipconfing /renew (start)
May 21 14:25:00 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:00 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:25:05 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:05 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:25:13 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:13 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:25:30 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:25:30 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPDISCOVER from 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPOFFER on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPREQUEST for 81.168.82.220 (0.0.0.0) from 00:0c:6e:70:29:33 via br0
May 21 14:26:06 nooblet dhcpd: DHCPACK on 81.168.82.220 to 00:0c:6e:70:29:33 via br0
# ipconfig /renew (end, finally get an ACK)
Maybe a firewall is getting in the way or another device is acting as a
DHCP server also. What does the output of iptables -nvL look like?
--
Rob
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...