cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21096
Views
35
Helpful
2
Replies

no ip dhcp conflict logging

ronald.su
Level 1
Level 1

hi all,

i have a little confuse about the command " no ip dhcp conflict logging ".

i know this command is to disable logging the ip conflict. but as i know, DHCP will ping the IP which will assign to make sure the IP not be used.

if the IP be used, will log it to the conflict file. and mark it to exclude address pool. so far this part is fine, BUT if i disable the feature via " no ip dhcp conflict logging ". i want to know the DHCP will still or will not ping the IP address before dhcp assignment.

the conflict record seems permanent, so i dont  want to clear it by manually.

1 Accepted Solution

Accepted Solutions

Mark Malone
VIP Alumni
VIP Alumni

good explanation see the I think it answers what your asking

http://blog.ipspace.net/2007/08/dhcp-conflict-logging-true-story.html

If you have configured ip dhcp ping parameters (highly recommended), the router will ping the IP address it intends to allocate to a client before replying to the DHCP request. If the router receives ICMP Echo Reply message (response to ping), the address is obviously in use. If the DHCP conflict logging is enabled (default), the router will log the conflict with a syslog message (not in a separate log file) and put the address on the list of conflicts. The addresses on that list (displayed with show ip dhcp conflict) are not used in the future (similar to the addresses configured with the ip dhcp excluded-addresses command). To reuse a conflicting address, the network operator has to remove it from the list with the clear ip dhcp conflict address (or * for all addresses) command.

The DHCP conflict logging makes sense if the router uses persistent DHCP bindings (called DHCP database agents in Cisco IOS), otherwise any addresses allocated prior to a router reload would be reported as conflicts after the bindings are lost. If you don't use DHCP agents, it's thus best to turn off conflict logging with the no ip dhcp conflict logging configuration command. Even without conflict logging, there's no DHCP functionality loss and no chance of duplicate address allocation, as the router would still check whether an IP address is active before allocating it (and later on, it would be willing to re-check the conflicting IP address).

If you don't use DHCP database agents and you don't disable conflict logging (default setup), you'll have to clear the conflicts manually after a reload and you might potentially exhaust the DHCP pool because of a large number of blocked conflicting addresses.

View solution in original post

2 Replies 2

Mark Malone
VIP Alumni
VIP Alumni

good explanation see the I think it answers what your asking

http://blog.ipspace.net/2007/08/dhcp-conflict-logging-true-story.html

If you have configured ip dhcp ping parameters (highly recommended), the router will ping the IP address it intends to allocate to a client before replying to the DHCP request. If the router receives ICMP Echo Reply message (response to ping), the address is obviously in use. If the DHCP conflict logging is enabled (default), the router will log the conflict with a syslog message (not in a separate log file) and put the address on the list of conflicts. The addresses on that list (displayed with show ip dhcp conflict) are not used in the future (similar to the addresses configured with the ip dhcp excluded-addresses command). To reuse a conflicting address, the network operator has to remove it from the list with the clear ip dhcp conflict address (or * for all addresses) command.

The DHCP conflict logging makes sense if the router uses persistent DHCP bindings (called DHCP database agents in Cisco IOS), otherwise any addresses allocated prior to a router reload would be reported as conflicts after the bindings are lost. If you don't use DHCP agents, it's thus best to turn off conflict logging with the no ip dhcp conflict logging configuration command. Even without conflict logging, there's no DHCP functionality loss and no chance of duplicate address allocation, as the router would still check whether an IP address is active before allocating it (and later on, it would be willing to re-check the conflicting IP address).

If you don't use DHCP database agents and you don't disable conflict logging (default setup), you'll have to clear the conflicts manually after a reload and you might potentially exhaust the DHCP pool because of a large number of blocked conflicting addresses.

Saurabh Jaiswal
Level 1
Level 1

Is this due to bug? What is the bug id