ODHCPLOC(8) BSD System Manager's Manual ODHCPLOC(8) NAME odhcploc -- locate and display active DHCP servers on the subnet SYNOPSIS odhcploc [-pVv] [-c count] [-i interval] my_ip [valid_dhcp...] DESCRIPTION The odhcploc is program to locate and display active DHCP servers on sub- net. Program sends standard DHCP discover messages. If it detects any unauthorized server (server not included in valid_dhcp list), it displays it in special way. It's also possible to display only unauthorized servers. Received DHCP message may be printed in short format or in full format with whole packet decoded. odhcploc must be executed by user which has privileges to bind on port 68 (usually root). odhcploc argu- ments are as follows: -p Display replies only from unauthorized servers. -V Display odhcploc version together with compiled features and exit. -v Display full decoded DHCP packet. -c count Number of discover messages to send. Default value is 1. -i interval Wait interval seconds between sending two discover messages. Default value is 30. my_ip IP address of interface to use for sending discover messages. This options is needed for multi-homed computers. valid_dhcp... List of IP addresses of authorized servers. Program is normally terminated automatically after sending count discover messages with interval between two of each. It can also be terminated by SIGINT signal. EXIT STATUS The odhcploc utility exits 0 on success, and >0 if an error occurs. EXAMPLES # odhcploc 192.168.1.218 22:21:08 (IP)192.168.1.218 OFFER (S)192.168.1.2 *** SEE ALSO dhcpd(8) dhcpcd(8), STANDARDS odhcploc implements RFC 1533 and RFC 2131. AUTHORS The odhcploc utility was written by Jan Friesse . BUGS - On some OS, setting of my_ip doesn't has any effect and packet is still send via interface with default route/first available inter- face. BSD May 28, 2011 BSD