DHCP Question...
-
Here is a shot from Windows Server 2012 R2.
I have had to explain many times over the years that just because you "exlcude" a range, it does not mean you cannot put a DHCP reservation in that excluded range. Because DHCP is still and always serving the entire subnet defined in the scope.
-
@JaredBusch said in DHCP Question...:
@Kelly said in DHCP Question...:
@JaredBusch said in DHCP Question...:
The DHCP range is always the full subnet. That is standard, even if Windows lets you do stupid shit.
Here is my home router.
Instead of visibly showing ranges to exclude, outside of windows, you typically tell it hat range to pass out. I'm passing out .31 - .254
Primary DNS is my PiHole on .4
Secondary DNS is the router on .1Can you clarify something for me @JaredBusch. You stated that DHCP range is always the full subnet, but yours is from .31 to .254. I feel like I'm missing something.
DHCP always serves the entire subnet it is defined on.
If you tell it the scope is a /24, it serves .1-.254 always.
You then subsequently define which part of the scope you want it to hand addresses out on.In windows that is done by "excluding" things.
On most other platforms, it is done by telling it what range to supply to clients that ask for an address. Hence the .31 through .254But regardless of what you specify, either as a range to use or range to exclude, DHCP still serves the entire scope.
This is why you can make reservations outside of the listed range as in my .7 printer and .10 phone.
When we define the DHCP Scope we can s
et the delivery IPsdefine it to 10.100.10.31 - 10.100.10.225 or the like. One does not need to define the scope according to the full subnet whatever that may be. -
@JaredBusch said in DHCP Question...:
Here is a shot from Windows Server 2012 R2.
I have had to explain many times over the years that just because you "exlcude" a range, it does not mean you cannot put a DHCP reservation in that excluded range. Because DHCP is still and always serving the entire subnet defined in the scope.
OK - that makes sense since you put it that way. But Windows does allow you to specify things other than the whole subnet, i.e. the whole /24, just like your EdgeRouter does
-
@PhlipElder said in DHCP Question...:
@JaredBusch said in DHCP Question...:
@Kelly said in DHCP Question...:
@JaredBusch said in DHCP Question...:
The DHCP range is always the full subnet. That is standard, even if Windows lets you do stupid shit.
Here is my home router.
Instead of visibly showing ranges to exclude, outside of windows, you typically tell it hat range to pass out. I'm passing out .31 - .254
Primary DNS is my PiHole on .4
Secondary DNS is the router on .1Can you clarify something for me @JaredBusch. You stated that DHCP range is always the full subnet, but yours is from .31 to .254. I feel like I'm missing something.
DHCP always serves the entire subnet it is defined on.
If you tell it the scope is a /24, it serves .1-.254 always.
You then subsequently define which part of the scope you want it to hand addresses out on.In windows that is done by "excluding" things.
On most other platforms, it is done by telling it what range to supply to clients that ask for an address. Hence the .31 through .254But regardless of what you specify, either as a range to use or range to exclude, DHCP still serves the entire scope.
This is why you can make reservations outside of the listed range as in my .7 printer and .10 phone.
When we define the DHCP Scope we can s
et the delivery IPsdefine it to 10.100.10.31 - 10.100.10.225 or the like. One does not need to define the scope according to the full subnet whatever that may be.Right, in Windows, you have a starting point and an ending point.
I suppose he's talking about the Length indicator here. That Windows will serve that entire /24 as long as it has data in that range to provide, i.e. the scope or reservations outside of the scope.That's cool - I didn't know that, hadn't considered it before.
-
@Dashrender said in DHCP Question...:
@PhlipElder said in DHCP Question...:
@JaredBusch said in DHCP Question...:
@Kelly said in DHCP Question...:
@JaredBusch said in DHCP Question...:
The DHCP range is always the full subnet. That is standard, even if Windows lets you do stupid shit.
Here is my home router.
Instead of visibly showing ranges to exclude, outside of windows, you typically tell it hat range to pass out. I'm passing out .31 - .254
Primary DNS is my PiHole on .4
Secondary DNS is the router on .1Can you clarify something for me @JaredBusch. You stated that DHCP range is always the full subnet, but yours is from .31 to .254. I feel like I'm missing something.
DHCP always serves the entire subnet it is defined on.
If you tell it the scope is a /24, it serves .1-.254 always.
You then subsequently define which part of the scope you want it to hand addresses out on.In windows that is done by "excluding" things.
On most other platforms, it is done by telling it what range to supply to clients that ask for an address. Hence the .31 through .254But regardless of what you specify, either as a range to use or range to exclude, DHCP still serves the entire scope.
This is why you can make reservations outside of the listed range as in my .7 printer and .10 phone.
When we define the DHCP Scope we can s
et the delivery IPsdefine it to 10.100.10.31 - 10.100.10.225 or the like. One does not need to define the scope according to the full subnet whatever that may be.Right, in Windows, you have a starting point and an ending point.
I suppose he's talking about the Length indicator here. That Windows will serve that entire /24 as long as it has data in that range to provide, i.e. the scope or reservations outside of the scope.That's cool - I didn't know that, hadn't considered it before.
Yeah, that's the ticket. Start IP and End IP settings can be whatever so long as they fall in the subnet mask below.
-
@Dashrender said in DHCP Question...:
But Windows does allow you to specify things other than the whole subnet, i.e. the whole /24, just like your EdgeRouter does
You can define more than a /24, but not less.
In the following pic, you can see the subnet is /24, in the 192.168.100.0 scope.
The popout is where you define the DHCP scope to be distributed, not the scope of the subnet.Be sure not to use "Subnet" and "DHCP Scope" interchangeably like M$ does.
MS Has you define a scope when you create a new subnet to be served by DHCP, you don't really do anything with the DHCP Scope until you start filling in the Start IP and End IP. No matter how restrictive you make the DHCP Scope (11 to 50 in this case), you will still have a subnet of 255.255.255.0. If you were to make the DHCP scope 192.168.100.1 to 192.168.101.254, you would see the Subnet automatically change to 255.255.254.0 -
@JasGot said in DHCP Question...:
@Dashrender said in DHCP Question...:
But Windows does allow you to specify things other than the whole subnet, i.e. the whole /24, just like your EdgeRouter does
You can define more than a /24, but not less.
In the following pic, you can see the subnet is /24, in the 192.168.100.0 scope.
The popout is where you define the DHCP scope to be distributed, not the scope of the subnet.Be sure not to use "Subnet" and "DHCP Scope" interchangeably like M$ does.
MS Has you define a scope when you create a new subnet to be served by DHCP, you don't really do anything with the DHCP Scope until you start filling in the Start IP and End IP. No matter how restrictive you make the DHCP Scope (11 to 50 in this case), you will still have a subnet of 255.255.255.0. If you were to make the DHCP scope 192.168.100.1 to 192.168.101.254, you would see the Subnet automatically change to 255.255.254.0News to me?
-
Exactly - you can definitely declare less than /24
You can declare anything that's valid for the given CIDR range
My example shows two scopes with /26 subnet -
@JasGot said in DHCP Question...:
In the following pic, you can see the subnet is /24, in the 192.168.100.0 scope.
Where does it show that?
-
I guess I am going back subnet school.
-
@JasGot said in DHCP Question...:
I guess I am going back subnet school.
I found it, it's in the faded greyed out area under the red rectangle.