Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This has got to be the dumbest question I've ever asked, but I can't seem to find an answer online or in Cisco's docs, so here goes.

I'm trying to track down devices and network info on a rather large network with a bunch of subnets and VLans and the like, most of which are served DHCP from Cisco [enterprise-grade] switches or routers. In that vein, I'm looking to find out what the various dhcp pools/scopes are, but all the information I can find is on how to configure dhcp with Cisco iOS, which isn't helpful because I don't want to change the scopes, just get a display of what they are currently.

I can do a show ip dhcp binding to get a list of dhcp clients, with their IPs and guess about what the valid range for dhcp IPs is, but that's pretty undesirable... so what's the command to display that information (without altering the existing configurations)?

share|improve this question
1  
I may be misunderstanding the question, but it sounds like you're just looking to find out what pools are configured? show running-config | begin dhcp pool? –  Shane Madden Sep 1 '11 at 15:12
    
That was it exactly. THANK YOU!! I knew it was something simple and stupid I was missing. –  Some poor dumbass Sep 1 '11 at 15:49

1 Answer 1

From the relevant device, try show ip dhcp pool. To show exclusions, try show run | i excluded-addresses.

The following output is from a Cisco 4507 switch.

CORE#show ip dhcp pool

Pool VOICE :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0 
 Total addresses                : 254
 Leased addresses               : 42
 Excluded addresses             : 101
 Pending event                  : none
 1 subnet is currently in the pool :
 Current index        IP address range                    Leased/Excluded/Total
 192.168.122.234      192.168.122.1    - 192.168.122.254   42    / 101   / 254  


Pool GUEST :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0 
 Total addresses                : 254
 Leased addresses               : 9
 Excluded addresses             : 103
 Pending event                  : none
 1 subnet is currently in the pool :
 Current index        IP address range                    Leased/Excluded/Total
 192.168.111.165      192.168.111.1    - 192.168.111.254   9     / 103   / 254  

And exclusions:

CORE#show run | i excluded-addresses
ip dhcp excluded-address 192.168.122.1 192.168.122.50
ip dhcp excluded-address 192.168.122.100 192.168.122.150
ip dhcp excluded-address 192.168.111.1 192.168.111.50
ip dhcp excluded-address 192.168.111.100 192.168.111.150
share|improve this answer
    
I was afraid that might be the answer. I get invalid input for the pool argument. Is that because I'm on a device that's not serving as the dhcp server, or is this a command that may have been added in a later iOS revision? –  Some poor dumbass Sep 1 '11 at 15:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.