cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12856
Views
0
Helpful
20
Replies

DHCP doesn't assign IP's to client

eash
Level 1
Level 1

Dear All,

 

I am observing a strange problem in my DHCP setup. There are 6  DHCP pool and 6 Vlan's  configured on Cisco 3750  with 128 ip's to lease for each pool. But the DHCP stop leasing ip's after 90 ip's are leased.

 

When I observe the show ip dhcp bi and show ip dhcp pool are not matching.

 

Network is 3750==2960==client pc's ( same setup for all the vlan's)

 

my config is shown,

 

router#ip dhcp remember
ip dhcp conflict resolution logging

ip dhcp conflict resolution interval 5
ip dhcp excluded-address 192.168.210.1 192.168.210.31
ip dhcp excluded-address 192.168.210.160 192.168.210.254
ip dhcp excluded-address 192.168.211.1 192.168.211.31
ip dhcp excluded-address 192.168.211.160 192.168.211.254
ip dhcp excluded-address 192.168.212.1 192.168.212.31
ip dhcp excluded-address 192.168.212.160 192.168.212.254
ip dhcp excluded-address 192.168.213.1 192.168.213.31
ip dhcp excluded-address 192.168.213.160 192.168.213.254
ip dhcp excluded-address 192.168.214.1 192.168.214.31
ip dhcp excluded-address 192.168.214.160 192.168.214.254
ip dhcp excluded-address 192.168.209.1 192.168.209.31
ip dhcp excluded-address 192.168.209.160 192.168.209.254
!
ip dhcp pool DHCP210
   network 192.168.210.0 255.255.255.0
   default-router 192.168.210.200
   dns-server 172.16.141.13
   lease 2
!
ip dhcp pool DHCP211
   network 192.168.211.0 255.255.255.0
   default-router 192.168.211.200
   dns-server 172.16.141.13
   lease 2
!
ip dhcp pool DHCP212
   network 192.168.212.0 255.255.255.0
   default-router 192.168.212.200
   dns-server 172.16.141.13
   lease 2
!
ip dhcp pool DHCP213
   network 192.168.213.0 255.255.255.0
   default-router 192.168.213.200
   dns-server 172.16.141.13
   domain-name exedy.co.jp
   lease 2
!
ip dhcp pool DHCP214
   network 192.168.214.0 255.255.255.0
   default-router 192.168.214.200
   dns-server 172.16.141.13
   lease 2
!
ip dhcp pool DHCP209
   network 192.168.209.0 255.255.255.0
   default-router 192.168.209.200
   dns-server 172.16.141.13
   lease 2
!

Regards,

Eash

 

20 Replies 20

Eash,

 

I apologize for the delayed response. Please post the output of " show ip dhcp binding" and "show ip dhcp conflict."

Before the router assigns an IP address to a DHCP client, the router which is acting as a DHCP server will ping the IP address that the router is intending to assign to the DHCP client to ensure that nobody is already using it. If the router gets a response then it will not assign this IP address and it will choose another one.

What might be happening here is that the router assigns the address because it did not receive any response and then all of a sudden a station hard coded with the same IP address comes up and tries to send traffic. Then the router will send the error message to the console reporting the conflict and it will try to assign a different IP address to the
DHCP client to avoid the conflict.

Based on the symptoms you described above, one possibility is that the pool was artificially depleted because conflict logging is enabled. That would explain why the PC's could not get addresses. If you do not configure any database agents, the recommended configuration is to disable conflict logging (i.e. "no ip dhcp conflict logging"). This allows the DHCP server to "forget" previously detected conflicts.

clear ip dhcp conflict : Deletes an automatic address binding from the DHCP database.Specifying address clears the automatic binding for a specific (client) IP address,whereas specifying asterisk (*) clears all automatic bindings.

So as far as the router is concerned, you should configure ‘no ip dhcp conflict logging’and ‘clear ip dhcp conflict’.

Let me know if this solves the issue or if you.

 

Hi Sammynom,

Thanks for your reply,

I had to configured "no ip dhcp conflict logging" as there was repeated IP conflict logs and the pool was getting depleted. The customer had to repeated clear the log by clear ip dhcp conflict.

After configuring " no ip dhcp conflict logging " there are no IP conflicts. Should I also configure clear ip dhcp conflict.

I don't have the logs of  of show ip dhcp binding" and "show ip dhcp conflict." right now with me. I will share the same tomorrow.

Eash

 

 

 

Eash,

thanks for the updates. Yes please clear the conflict. When there is a conflict, the admin has to resolve it. Please use "ip dhcp binding" and "show ip dhcp conflict" to monitor dhcp activities. Please post the output and update us on how many ip addresses are assigned.

 

Thanks

Sammy

Dear Sammynom,

 

There are no conflicts and the no of ip assigned today is 106 in vlan 210.

My worry is why after 121 ip address futher ip's were not assigned.

 

Please find enclosed the capture.

Eash

Each,

 

Thank you for posting the output. I went through the binding and found that there are 19 ip addresses are missing. These addresses are:

.62, .65, .80, .85, .90, .102, .116, .121, .139, .140, .142, .143, .144, .145, .146, .148, .149, .150, .151. Who has them?

Your configuration looks good. How many access points are using pool 210?


 

Cisco Freak
Level 4
Level 4

For which DHCP pool you are facing this issue?

Please share the output of show ip dhcp binding from the switch.

CF

Review Cisco Networking products for a $25 gift card