06-10-2024 09:31 AM
I am trying to set up DHCP at some of our locations with a mix of "static" assignments and true DHCP assignments. We want some laptops to use the same IP address each time it is at that location, but other laptops we don't care what IP they have, just as long as they can connect.
I am going about this by configuring multiple "static" DHCP pools using client-identifier, and then one general pool that is just a subnet with no client-identifier.
The DHCP config is being done on a Cisco ISR 4321. The laptops connect by Wi-Fi to Meraki APs. The laptops are connected to a SSID on the APs which is configured to use an external DHCP server with L3 Roaming.
Part of the config I have set up:
ip dhcp excluded-address 10.228.AAA.1 10.228.AAA.29
ip dhcp excluded-address 10.228.AAA.96 10.228.AAA.254
ip dhcp pool GenPop
network 10.228.AAA.32 255.255.255.224
domain-name ourdomainname.com
default-router 10.228.AAA.1
dns-server 172.BBB.BBB.99 10.CCC.CCC.99
ip dhcp pool SN-5CD112TF3K
host 10.228.AAA.64 255.255.255.0
client-identifier MACADDRESS1
client-name CLIENT1
domain-name ourdomainname.com
default-router 10.228.AAA.1
dns-server 172.16.BBB.99 10.228.CCC.99
ip dhcp pool SN-5CG2140DD1
host 10.228.AAA.65 255.255.255.0
client-identifier MACADDRESS2
client-name CLIENT2
domain-name ourdomainname.com
default-router 10.228.AAA.1
dns-server 172.16.BBB.99 10.228.CCC.99
The problem I'm having is that the GenPop pool doesn't seem to want to hand out addresses.
If a laptop has a pool with a client-identifier, it pulls its assigned DHCP address just fine.
But if the laptop doesn't have a client-identifier - and then should use the GenPop pool - no address is assigned.
This doesn't make any sense to me, so I am obviously missing something simple.
Thanks for any suggestions you have.
06-10-2024 10:12 AM
Hello
The gen pool address range is small /27 = 30 hosts, but the cliient static range is larger /24 =254 hosts
Suggest you change the gen pool to accommodate the full ip range of the dhcp pool and test again.
06-10-2024 10:27 AM
Agggh, that makes total sense.
Would it also work if I reduced the size of the static pools?
ip dhcp pool SN-5CG2140DD1
host 10.228.AAA.65 255.255.255.224
client-identifier MACADDRESS2
client-name CLIENT2
domain-name ourdomainname.com
default-router 10.228.AAA.1
dns-server 172.16.BBB.99 10.228.CCC.99
06-10-2024 10:34 AM
Rule for DHCP static IP
1-The main Pool must be same Mask as static IP Pool
2- the main Pool have network subnet like 10.0.0.0 255.255.255.0 and static IP Pool have host IP like 10.0.0.1 255.255.255.0
that two rule mandatory
MHM
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