03-05-2025 04:54 AM
When I try to create a DHCP pool with a specific network it will automatically change the final part of my IP address to a 0
e.g. network 193.13.32.8 255.255.255.224
will become:
network 193.13.32.0 255.255.255.0
Above is a copy of my network. i have looked around and have no idea what the issue could be
Solved! Go to Solution.
03-05-2025 08:33 AM
Thanks for the additional information. I am glad that you created this plan. Unfortunately the logic of the plan is flawed. In particular the plan for subnet E is not correct. The first address for that address/mask is not .9 but would be 193.13.32.1 and clearly overlaps with the other subnets.
03-05-2025 05:00 AM
Hello @Conor Hughes
With mask 255.255.255.224, /27 mask!, every "32" you have a netowrk address ; meaning :
1/ 193.13.32.0 255.255.255.224
2/ 193.13.32.32 255.255.255.224
etc...
so .8 is in the subnet 193.13.32.0/27
03-05-2025 06:14 AM
Hi M02@rt37
so am i not able to use DHCP pools to distribute IP address on a Variable Length Subnet?
03-05-2025 07:05 AM
just use the correct mask ...
Start point : How many host I need on my subnet ?
03-05-2025 07:27 AM
so on Subnet D i need 5 hosts, so i used a /29 mask because that gives me 6 usable hosts
on Subnet E i need 19 hosts so i used a /27 mask, that gives me 30 usable hosts
and finally for Subnet F i need 21 hosts so i used a /27 mask again.
and as for the last three subnets they don't have any hosts so they are all /30
so the total usable hosts allocated for the network is 72.
am i just missing something super obvious?
03-05-2025 07:39 AM
The OP says
e.g. network 193.13.32.8 255.255.255.224
will become:
network 193.13.32.0 255.255.255.0
I am confused why they think this is the case. Clearly the show run indicates that the network is network 193.13.32.0 255.255.255.224.
The OP seems to think that DHCP has a problem with Variable Length Subnet. That is not true. DHCP works quite well with Variable Length Subnet. In doing this you need to be careful about specifying the network. It seems to me that the issue for the OP is that specifying 193.13.32.8 turns into 193.13.32.0. If they really want the network to be 193.13.32.8 then they can not use mask 255.255.224. Using that mask means that 193.13.32.8 is a host address and not the network address. Try the configuration using mask 255.255.255.248 and see what happens.
03-05-2025 07:43 AM - edited 03-05-2025 07:46 AM
Exactly @Richard Burts !!!
IP Plan should be designed first, regarding the need of hosts...
03-05-2025 08:06 AM
Yes we agree. Having a plan that clearly identifies which addresses are network addresses and which addresses are host addresses would be very helpful. Once this plan exists it becomes easier to do the correct configuration.
The OP seems to believe that the address specified as network address being changed was a problem. We have clarified that it is important to identify which addresses are network addresses and which addresses are host addresses. And clearly if the configuration statement specifies a host address, it will be changed to the appropriate network address.
The OP has posted additional details about the networks and the addressing for those networks. That should work fine. The OP asks "am i just missing something super obvious?". I am not clear if there is still confusion about configuring DHCP for variable length subnets.
03-05-2025 08:03 AM
Hi Richard
I think i must be misunderstanding something. i had assumed that when i type:
Network 193.13.32.8
I'm telling DHCP what the network address is and the subnet mask will indicate the amount of hosts that need to be distributed.
if i where to type :
Network 193.13.32.8 255.255.255.248
am i not telling DHCP to only distribute 6 usable hosts?
that being said, i tried what you said
the network address stayed this time. but unfortunately none of my host have had a IP address distributed to them
03-05-2025 08:14 AM
Do you have an IP plan ? Do you have the number of hosts on each segment ?
That's the start point. You will adjust MASK after that...
03-05-2025 08:24 AM
This was the first thing i created, before my topology or implementation
03-05-2025 08:33 AM
Thanks for the additional information. I am glad that you created this plan. Unfortunately the logic of the plan is flawed. In particular the plan for subnet E is not correct. The first address for that address/mask is not .9 but would be 193.13.32.1 and clearly overlaps with the other subnets.
03-05-2025 08:56 AM
I see that i didn't design my network from most hosts to least
i have configured it correctly now
much apricated
03-05-2025 09:15 AM
You are quite welcome. Thank you for marking the discussion as solved. This will help other members of the community to identify discussions that are helpful. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
03-05-2025 09:13 AM
In my previous responses I had missed this post. And I believe that the point of this post is important enough to deserve its own response. You say "I'm telling DHCP what the network address is". That is pretty much true, but you must be sure that the address you specify is really a network address and not a host address (which it is in your post). To do this you need to consider the mask along with the address. The mask will tell how many binary 0 and how many binary 1 are in the address. If the address has contiguous 1 (all 1s) to the left and contiguous 0 (all 0) to the right then it is a network address. If there is a mixture of 1 and 0 then it is not a network address.
Your plan was quite logical and was based on the assumption that subnets could start and end anywhere, as long as they did not overlap some other subnet. But that is not the case. The subnet must begin on a binary boundary (all 1s to the left and all 0 to the right).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide