DHCP Logic
-
So unless something is spoofing the MAC address then there would be no way for the reservation address to be "snatched" away.
-
I guess I should go join Torvalds Linus and learn to be nicer. . .
-
Thank you all.
-
@dustinb3403 haha, yea that was a little rough, but I hear you.
-
While it is bad practice to create a reservation within the scope, there are cases where you might want or need this. For example you have a trouble user who is doing something they shouldn't and to simplify the tracking process you reserve that users MAC address within the DHCP scope.
That MAC will always get that IP address, so when you talk to HR you have simple proof.
But still, reservations assign the IP address to the MAC address in which they are created.
-
It sounds like your co-worker is only thinking of DHCP scope and IP addresses in use, not actual reservations. Even then though the lease would have to expire.
-
@wirestyle22 said in DHCP Logic:
It sounds like your co-worker is only thinking of DHCP scope and IP addresses in use, not actual reservations. Even then though the lease would have to expire.
Which even in this case, the client would ask the DHCP server if that IP address is still available, and if it says "Yes" then the client just keeps the IP address it already has.
-
I'll jump in and add: then what does he think reservations do? That's what I'd ask him. Reservations are considered permanent assignments.
-
@g-i-jones said in DHCP Logic:
I've set a DHCP reservation for something important, but that thing is within the scope of the DHCP address pool.
Isn't that the only possible way to have a DHCP reservation?
-
@g-i-jones said in DHCP Logic:
Anyway, he said even if there is a reservation, if that thing goes to sleep, then other things can still snatch up that IP address because it's in the pool.
That makes no sense at all. He's thinking of DHCP Preferences, not related to Reservations. The entire concept of a reservation doesn't mesh with this definition at all.
Imagine if you had a restaurant reservation that only worked if you were already at the restaurant waiting. No need for a reservation if you are already there and have the table, right? Completely nonsensical.
-
@tonyshowoff said in DHCP Logic:
I'll jump in and add: then what does he think reservations do?
This is the key. If he thinks that they aren't reservations, what the heck does he think that they are?
-
@scottalanmiller said in DHCP Logic:
@g-i-jones said in DHCP Logic:
Anyway, he said even if there is a reservation, if that thing goes to sleep, then other things can still snatch up that IP address because it's in the pool.
That makes no sense at all. He's thinking of DHCP Preferences, not related to Reservations. The entire concept of a reservation doesn't mesh with this definition at all.
Imagine if you had a restaurant reservation that only worked if you were already at the restaurant waiting. No need for a reservation if you are already there and have the table, right? Completely nonsensical.
Reminds me of Seinfeld and his car reservation
-
@dustinb3403 said in DHCP Logic:
While it is bad practice to create a reservation within the scope, there are cases where you might want or need this. For example you have a trouble user who is doing something they shouldn't and to simplify the tracking process you reserve that users MAC address within the DHCP scope.
That MAC will always get that IP address, so when you talk to HR you have simple proof.
But still, reservations assign the IP address to the MAC address in which they are created.
It doesn't matter, I do that all the time. Mostly because it's easier to right click on what it gets automatically and set it as a reservation, and also ran out of excluded IPs.
They are all listed under reservations anyways, so still easy to find and manage.
-
@tonyshowoff said in DHCP Logic:
@scottalanmiller said in DHCP Logic:
@g-i-jones said in DHCP Logic:
Anyway, he said even if there is a reservation, if that thing goes to sleep, then other things can still snatch up that IP address because it's in the pool.
That makes no sense at all. He's thinking of DHCP Preferences, not related to Reservations. The entire concept of a reservation doesn't mesh with this definition at all.
Imagine if you had a restaurant reservation that only worked if you were already at the restaurant waiting. No need for a reservation if you are already there and have the table, right? Completely nonsensical.
Reminds me of Seinfeld and his car reservation
Oh this is one of my favorite scenes. Absolutely hilarious!
-
@zachary715 The video wouldn't play for me but yeah Seinfeld is great.
-
@scottalanmiller Nah, you can set them outside the scope or in the scope. I prefer to put them outside the scope because i like to think i have my own little secret cubbyhole for IP's that no one can take, and I strive for super organization.
I have more experience than my coworker with DHCP, so I don't know why I let him try to convince me what I already knew was wrong. I think I forgot to take my B vitamins yesterday lol. Anyway, thanks for the reply's.
-
@g-i-jones said in DHCP Logic:
@scottalanmiller Nah, you can set them outside the scope or in the scope. I prefer to put them outside the scope because i like to think i have my own little secret cubbyhole for IP's that no one can take, and I strive for super organization.
Reservation = no one can take.
Being in or out of scope has no bearing on that. If you have a reservation outside of the scope, that makes it part of the scope no matter how you look at it. Maybe you are using a DHCP GUI that says it is not in scope, but it's lying to you. You can't have a reservation outside of scope or the DHCP server can't set the reservation.
-
It's another question but it's debatable if DHCP reservations is a good idea in the first place. In general I would say no.
Better to use static IPs, at least for anything that is important. -
@pete-s said in DHCP Logic:
It's another question but it's debatable of DHCP reservations is a good idea in the first place. In general I would say no.
Better to use static IPs, at least for anything that is important.Static only makes sense if you plan on having that server come up on another network that does not have the reservation in place, and nobody can figure out why it's not reachable through the known IP. Otherwise, what's your reasoning for thinking DHCP reservations is a bad idea? In what ways?
-
@pete-s said in DHCP Logic:
It's another question but it's debatable if DHCP reservations is a good idea in the first place. In general I would say no.
Better to use static IPs, at least for anything that is important.A static IP and a reservation have nothing to do with each other.
For example you can assign a static IP address to your main file server, and while that server is online, it will continually use it. But if it goes offline and a client comes in, that client device could get that static address. When the server comes back online there would be an IP conflict and cause all sorts of issues.
A reservation doesn't mean you can't statically assign. It's literally just keeping that IP address for the MAC address.