cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2687
Views
5
Helpful
1
Replies

Dhcp discover

rakeshvelagala
Level 3
Level 3

Hi

Why would a client send a new DHCP discover after receiving a DHCP ack from the DHCP server?

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

Hi,

Why would a client send a new DHCP discover after receiving a DHCP ack from the DHCP server?

It would do it if it discovers an IP address conflict. You see, the client is not allowed to use an IP address util it receives a DHCPACK message from the server. If, after receiving it, the clients detects (usually via ARP) that the IP address is already used, it will send a DHCPDECLINE message to the server, informing it about the conflict, and will start the entire DHCP process from scratch.

I have also seen a client caught in an endless loop of DISCOVER/OFFER/REQUEST/ACK messages that were being exchanged very rapidly. I discovered later that the server was misconfigured and was providing two addresses of default gateway, one of them being 255.255.255.0 (obviously the administrator mindlessly put in the IP address of the default gateway and its netmask into configuration, but the DHCP server offered the netmask as just another gateway address). This caused the client to immediately fail when applying the configuration, and restart the DHCP process, only arriving at the same issue over and over again.

Best regards,
Peter

View solution in original post

1 Reply 1

Peter Paluch
Cisco Employee
Cisco Employee

Hi,

Why would a client send a new DHCP discover after receiving a DHCP ack from the DHCP server?

It would do it if it discovers an IP address conflict. You see, the client is not allowed to use an IP address util it receives a DHCPACK message from the server. If, after receiving it, the clients detects (usually via ARP) that the IP address is already used, it will send a DHCPDECLINE message to the server, informing it about the conflict, and will start the entire DHCP process from scratch.

I have also seen a client caught in an endless loop of DISCOVER/OFFER/REQUEST/ACK messages that were being exchanged very rapidly. I discovered later that the server was misconfigured and was providing two addresses of default gateway, one of them being 255.255.255.0 (obviously the administrator mindlessly put in the IP address of the default gateway and its netmask into configuration, but the DHCP server offered the netmask as just another gateway address). This caused the client to immediately fail when applying the configuration, and restart the DHCP process, only arriving at the same issue over and over again.

Best regards,
Peter

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