05-24-2015 04:08 PM - edited 03-08-2019 12:09 AM
I am simply looking for a command to find out which dhcp pools are applied. I have quite a few reserved addresses on my network, so it would be very useful to find out what is applied where.
05-24-2015 08:03 PM
What comes to mind to investigate DHCP configurations:
# show running-config | section dhcp
# show running-config | include dhcp
# show run | include exclude
#show run | begin exclude
#show run | begin dhcp
The command with "section" in it is really nice if supported on your equipment. If not than just go with the manual commands like the ones with "begin exclude", "incldue exclude", or "begin dhcp".
Please press some buttons in my favor if this helped.
05-25-2015 08:00 AM
The original poster has not told us what type of device is the DHCP server but from the context of the question I believe it is probably an IOS device (router or switch the answer would be the same). And the original poster has not told us whether all of the scopes are for locally connected subnets or whether some of the scopes might be for subnets that are remote. But if we assume that the scopes are local then the process is quite simple - look at the network defined in the scope and look for the interface whose IP address matches the network defined in the scope.
HTH
Rick
05-25-2015 08:37 AM
Rick,
Yes, I was only thinking router/switch IOS mostly because that's my specialty. I only recently started playing with Windows Server DHCP management features which are really cool. Our sys ads use that nearly exclusively as a matter of organizational protocol which leaves me not using hardly any local router/switch DHCP pools and instead just making sure tht SVIs have the "IP Helper" command.
But... if these are local DHCP pools, another command that I really like to see what IP addresses are being used and not sure if this is what the OP might be after since the post is sort of vague:
# show ip arp vlan [vlan#]
Sometimes it's also helpful to ping the broadcast IP address first to be sure any local addresses are in the ARP table but that's only good for tallying local devices.
Izzy
06-10-2015 11:34 PM
Dear sjenkinsLNS,
There is another way to know how many percentage of a pool is used .i.e. by applying a threshold on the each pool and generate a log via the following commands under pool configuration mode
Device(dhcp-config)#utilization mark {low|high} percentage-number [log]
definitely if the threshold does not meet the utilization log will not generate .
I Hope it was informative .
Regards
Hossein
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