> "need"? I'm not an expert but it's more along the lines of "want", isn't
> it?
Yeah ok, request that IP address.
>
> From my log:
> DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
> DHCPOFFER from 192.168.22.1
> DHCPREQUEST on eth1 to 255.255.255.255 port 67
> DHCPACK from 192.168.22.1
>
> at that point, the DHCP server said, "yes, here's your old IP of
> 192.168.22.105 back". I think the DHCP server can also say DHCPNAK ("that
> IP is not currently available") at which point your client either gives up,
> or says "OK, give me anything you've got"
What log is that from? Router or PC? PC running what because that's a
complete DHCP address allocation? If that's linux then the behaviour is
different to the NT OS.
Yes the DHCP server can Nack the DHCP request but the circumstances
would be for a wrong subnet request as the most likely candidate at
which point the whole DHCP process starts again.
All I was pointing out is that when XP starts, because it already has an
address, it issues a DHCPRequest. There's a sublety in that if the
machine has not been rebooted and needs to renew the address then it's a
directed packet to the DHCPServer requesting the same IP address at 50%
and then 87.5% of the lease time. However, if the machine is rebooted,
XP still performs a DHCPRequest of the same IP address but this time as
an IP broadcast. This is so that if the machine has moved and the
subnet is now invalid, any DHCP server can nack the request and then XP
moves to a DHCPDiscover.
If the machine has no valid address for the subnet then if it has moved,
it cannot inform the original DHCP server that it is releasing the
address, it can only obtain a new one from the new location.
David.
|