How to provide DHCP service for jails and virtual machines?

Currently I use wlan0.
cat /etc/pf.conf
nat on wlan0 from {10.0.0.0/24} to any -> wlan0

And I assign 10.0.0.1/24 to bridge0.
At first, I assigned static addresses such as 10.0.0.2/24 to jails and guests, but once there were more of them, it became a bit too much to manage, and sometimes I would inadvertently assign duplicates, so I want to run a DHCP server for jails and guests.
 
Back
Top