To configure the built-in DHCP service
Mac has a built-in DHCP function. If you have an iMac, you could turn on the Internet Sharing function on the WiFi interface over the ethernet interface. By default, each host's IP is assigned via the built-in DHCP service of the iMac.
However, you can configure it as you wish. Just to modify this file via Xcode.
/private/etc/bootpd.plist
After turning on the Internet Sharing function on WiFi interface over the ethernet interface, we have this by default:
- The options under section "Subnets" could be modified as you wish to configure your DHCP service.
- The "dhcp_enabled" section determines on/off of DHCP service. In my example, the network interface used for providing DHCP service is called "bridge100".
MacBook Pro (15-inch, 2017), macOS High Sierra (10.13.6)