cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
771
Views
0
Helpful
4
Replies

How can you tell what DHCP Pools are applied to what interfaces?

sjenkinsLNS
Level 1
Level 1

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.

4 Replies 4

Israel Logan
Level 1
Level 1

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.  

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

HTH

Rick

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

Hossein Ansari
Level 1
Level 1

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