A) DHCP client diagnose
It is simple, but sometimes not sufficient. The "multiple DHCP server problem" sometimes requires more advanced analysis.
IP address release and renew:
sudo dhclient -v -r
sudo dhclient -v
Shortened example of command response is:
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0xc4b0e053)
DHCPACK of 10.1.1.110 from 10.1.1.1 (xid=0xeb675d5d)
Search for from clause in list, e.g. ... from 10.1.1.1 ...
. It is DHCP server address from which your client got IP address.
B) Network packet diagnose
It is very useful and reliable kind of diagnose. Install Wireshark and capture DHCP packets.
sudo apt-get install wireshark
During Wireshark installation confirm option saying that all users can capture data.
Add wireshark group to your user:
sudo usermod -aG wireshark <your_user_name>
groups <your_user_name>
Second command above verifies the wireshark group is added to you.
Logout and login or reboot PC. Then start Wireshark. Select your LAN interface from interface list and start capturing.
Put bootp
or udp.port==67 or udp.port==68
string into capture filter field in Wireshark window. The field is on top. You can find it very easy, inside it is text: "Apply a display filter". Press enter after putting the filter clause text.
Put commands in terminal to enforce DHCP activity:
sudo dhclient -v -r
sudo dhclient -v
Watch packets in Wireshark main field. You will see IP addresses of remote device sending DHCP offers.
Unpack "Dynamic Host Configuration Protocol" line and check the details.