jeroen.se
by jnieuwen
FreeBSD Jails on a laptop with DHCP
Each jail in FreeBSD needs its own IP to be run. This presents a problem when jails need to be run on a host which does DHCP i.e. a laptop.
Fortunately the solution is not that difficult. In this example we assume we do dhcp on rl0, use pf as firewall and use the 10.1.1.0/24 range for the jails. Basic knowledge of jails and pf is assumed. The following steps have to performed:
 
After all this work we want to make sure the configuration is done automatically at boot time. This can be done by doing the following: