cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2944
Views
5
Helpful
8
Replies

dhcp binding database

suthomas1
Level 6
Level 6

Hello,

 

One of our switches host dhcp server for a set of hosts. There are about 55 of these hosts , currently in operation.

However the dhcp binding table only shows four of them. 

(note- these are not manual bindings).

 

Is there any specific reason for this output? Should it not show me all ip's from the pool that are currently leased/being used?

 

Thank you.

1 Accepted Solution

Accepted Solutions

OK, so the other two DHCP pools you have configured are going to pollute these stats for the purpose that we need them for.

 

The next option is as I suggested earlier, run a DHCP server debug whilst rebooting one of the scanners, and see if the DHCP DORA sequence appears in the logs and that the scanner is then present in the bindings. If you see the Discover and Offer, but not the Request and Accept, then you possible have another DHCP server present on the segment. 

 

Have you thought about configuring DHCP snooping on the access layer which these scanners are attached to?

 

cheers,

Seb.

View solution in original post

8 Replies 8

johnd2310
Level 8
Level 8

Hi,

The database should show all leased addresses. Have you checked that all you PCs are actually getting addresses from that particular dhcp server?

 

Thanks

John

**Please rate posts you find helpful**

luis_cordova
VIP Alumni
VIP Alumni

Hi @suthomas1 ,

 

could you share the DHCP settings and the command used to see the DCHP table and its result?

 

Regards

following is the pool & output. 

As you see, only 4 hosts are listed in the table. However, there are another 55 hosts who are live on this network & i can ping them.

 

ip dhcp pool hosts
network 192.168.100.0 255.255.255.128
dns-server 192.168.200.1
default-router 192.168.100.1
lease 120

 

switch-3560#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type State Interface
Hardware address/
User name
192.168.100.11 xx.xx.xx.xx July 12 2019 07:37 AM Automatic Active Vlan100
192.168.100.15 xx.xx.xx.xx July 10 2019 12:12 AM Automatic Active Vlan100
192.168.100.18 xx.xx.xx.xx July 14 2019 04:56 AM Automatic Active Vlan100
192.168.100.21 xx.xx.xx.xx July 20 2019 06:01 AM Automatic Active Vlan100

Hi there,

As @johnd2310 mentions, can you confirm where these 'missing' hosts are getting there IP address information from?

 

If they are windows hosts, ipconfig /all will tell us what we need. Is "DHCP Enabled" yet to Yes. If so, is the address listed next to "DHCP Server" the router SVI (192.168.100.1) on the subnet the hosts are connected to?

 

cheers,

Seb.

These are not windows hosts, they are some scanner sort of things. 
I rebooted one of the working ones & it picked the right ip from the pool soon after. 

 

However on the binding list, there is no difference.

Hi there,

What is the output of:

show ip dhcp server stat

 

Also to confirm that the router is handing out the leases, issue the command debug ip dhcp server events , and reboot one of these scanner nodes. Hopefully the debug log will show the Desc, Offer, Req and Ack sequence of messages. Please share the log.

 

cheers,

Seb.


This is the output of stat output. Please note, there other dhcp pools so it is reflecting all of these.

I tried restarting one of the devices & once it came up online , its entry does appear on the binding table.

 

Wondering why otherwise it is not showing full entry for other hosts which already have IP.

 

sh ip dhcp server statistics
Memory usage 22331
Address pools 3
Database agents 0
Automatic bindings 11
Manual bindings 0
Expired bindings 10
Malformed messages 0
Secure arp entries 0
Renew messages 816
Relay bindings 0
Relay bindings active 0
Relay bindings terminated 0
Relay bindings selecting 0

Message Received
BOOTREQUEST 0
DHCPDISCOVER 134761
DHCPREQUEST 28415
DHCPDECLINE 1
DHCPRELEASE 0
DHCPINFORM 44
DHCPVENDOR 0
BOOTREPLY 0
DHCPOFFER 1323
DHCPACK 25985
DHCPNAK 14

Message Sent
BOOTREPLY 0
DHCPOFFER 504
DHCPACK 924
DHCPNAK 136

Message Forwarded
BOOTREQUEST 0
DHCPDISCOVER 4677
DHCPREQUEST 101767
DHCPDECLINE 5
DHCPRELEASE 0
DHCPINFORM 205
DHCPVENDOR 0
BOOTREPLY 0
DHCPOFFER 1323
DHCPACK 25985
DHCPNAK 14

OK, so the other two DHCP pools you have configured are going to pollute these stats for the purpose that we need them for.

 

The next option is as I suggested earlier, run a DHCP server debug whilst rebooting one of the scanners, and see if the DHCP DORA sequence appears in the logs and that the scanner is then present in the bindings. If you see the Discover and Offer, but not the Request and Accept, then you possible have another DHCP server present on the segment. 

 

Have you thought about configuring DHCP snooping on the access layer which these scanners are attached to?

 

cheers,

Seb.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card