The Dynamic Host Configuration Protocol (DHCP) is a network service that enables host computers to be automatically assigned settings from a server as opposed to manually configuring each network host. Computers configured to be DHCP clients have no control over the settings they receive from the DHCP server, and the configuration is transparent to the computer’s user.
Installation
homebrew
1. install isc-dhcp
brew install isc-dhcpThis install of dhcpd expects config files to be in /usr/local/etc. All state files (leases and pids) are stored in /usr/local/var/dhcpd.
Dhcpd needs to run as root since it listens on privileged ports.
There are two plists because a single dhcpd process may do either DHCPv4 or DHCPv6 but not both. Use one or both as needed.
Note that you must create the appropriate config files before starting the services or dhcpd will refuse to run. DHCPv4: /usr/local/etc/dhcpd.conf DHCPv6: /usr/local/etc/dhcpd6.conf
Sample config files may be found in /usr/local/etc.
apt-get
https://help.ubuntu.com/community/isc-dhcp-server
1. install isc-dhcp-server
sudo apt-get install isc-dhcp-server
Commands
homebrew
1. To have launchd start isc-dhcp now and restart at startup
sudo brew services start isc-dhcpsudo brew services stop isc-dhcpsudo brew services restart isc-dhcp
apt-get
Start Stop Restart
sudo service isc-dhcp-server restartsudo service isc-dhcp-server startsudo service isc-dhcp-server stopsudo service isc-dhcp-server status/etc/init.d/isc-dhcp-server start/etc/init.d/isc-dhcp-server stop/etc/init.d/isc-dhcp-server restart