I am trying to set up a DHCP client that is supposed to get its IP address via DHCP. I have configured two DHCP servers (one in 192.168.X.X pool and the other in 162.16.X.X pool).
Then, the client starts the DHCP protocol and obtains a DHCP lease from one server (say 162 server). Now, before the lease time expires, the client sends a REQUEST message to renew the lease. But, now instead of the 162 server, the 192 server sends a NAK before the 162 sends an ACK.
Upon receiving the NAK from a wrong server, the client removes the IP address and starts sending DISCOVER messages again. Shouldn't the client wait for an ACK from the correct server?
Is this the expected behaviour or is it a bug in the client's dhclient implementation?
FYI. the above packet capture is done on the DHCP Relay's interface