Dhcp broadcasts a DHCP request for an address and various network parameters. It takes the first acceptable offer, sets the interface to that address, and writes the address and parameter values, in ndb (6) format, to /net/ndb , where cs (8), dns (8) and others will find them. If the address is provided with a limited lease, dhcp itself returns, but it leaves a process in the background that periodically renews the lease (or requests a new address if the lease is not renewed).
If localip is given, dhcp attempts to reacquire that address. If successful, it configures the interface with that address (and mask if supplied), maintaining any lease as before. If it cannot reacquire the address, it broadcasts a request for a new address, as above.
The options are:
-b Use plain BOOTP without the DHCP options
-d Enable debugging output on standard output
-g " gateway" Suggest gateway as the default gateway (the server might change it)
-h " hostname" Use hostname as the current host's name in DHCP messages
-m Monitor the DHCP status and print a summary on standard output whenever it changes
-n Do not configure the interface
-p Print the resulting configuration on standard output
-r Retry DHCP periodically until it succeeds
-x " net" Use mount point net to access the network, and write the results to net /ndb (default: /net )