Score:-1

DHCP server IP reservation during the "offer" step

in flag

How long the IP is reserved by the DHCP server when it sends the offer message. Image the client does not send back the request message, after how much time the IP is again available?

Thanks for your help.

A.B avatar
cl flag
A.B
Some details there: https://datatracker.ietf.org/doc/html/rfc2131#section-3.1 "Servers need not reserve the offered network address, although the protocol will work more efficiently if the server avoids allocating the offered network address to another client." => implementation specific.
Score:1
cv flag

It's not available. A DHCP reservation, by definition, is reserved. It won't be assigned to any other device.

Chris avatar
sv flag
It's been a couple of days that I've been trying to verify the above statement; unfortunately, with no luck. On the contrary, I came accross a few third-party sites, where people state that in case a device (with an associated MAC address) that has been assgined a reserved IP address (e.g., 192.168.1.2) is **offline** (disconnected), any other device may be assigned that very same IP address by the DHCP server. Is that true at all? Any relevant references are welcomed.
joeqwerty avatar
cv flag
Can you cite those sources? I'd like to read them.
ru flag
If the DHCP server is configured to assign the IP address to a device with a specific MAC address it should not assign it to a device with a different MAC address. I don't think the second source is claiming anything different, although I didn't read all the comments. I wouldn't follow anything posted on Quora.
Chris avatar
sv flag
@dunxd I wish there was a reference supporting that statement. So, the DHCP server would never assign that IP address to a different device, even if the original device (e.g., PC) is disconnected for some time? I managed to manually assign the same static IP to a different device (e.g., phone) by adjusting the network settings on the phone (not by using DHCP reservation on the router), while the PC was disconnected. Then, when the PC got connected, I came accross IP conflict. So, the DHCP server on its own may not assign that IP, but if another device requests it when is not used, is it given?
joeqwerty avatar
cv flag
DHCP has no control over static assigned ip addresses. So it is possible to assign a static ip address to a device which conflicts with a DHCP assigned ip address. DHCP has no mechanism to prevent that. Furthermore, if a DHCP enabled device requested an ip address from the DHCP server that is reserved for another DHCP client, the DHCP server would refuse the request.
ru flag
Clients don't request a specific IP address. They just say, "hey, any DHCP server out there, tell me which IP address, subnet and gateway to use". The server decides how to answer.
joeqwerty avatar
cv flag
DHCP Option 50 would beg to differ with you.
Chris avatar
sv flag
@dunxd By _"...if another device requests it"_, I meant by manually assigning a static IP address (as well as subnet mask, gateway, etc.) on the printer device. As joeqwerty explained, _"DHCP has no control over static assigned ip addresses"_ and that is the reason the example I provided eariler works, i.e., a second device can get the IP that is reserved for some other device, if the IP address is manually assigned on the second device and at the same time the other one is offline/disconnected.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.