DHCP Service Test – Command Line Program to Test DHCP Service

dhcplinuxUbuntu

Is there a simple ping-like command to test whether a DHCP service is running on a network? …on Linux

Best Answer

Even if you don't use a Nagios monitoring server, you can grep the check_dhcp binary or compile it from source and use the check to test a DHCP-Server. E.g.

./check_dhcp -v -s <dhcp_server_address> -r <expected_ip_address> -m <mac_address_touse>