wblock@
Developer
My notebook has a couple of jails for demonstrations. Usually these are web servers, and need to be accessible to others on the same network. But the host address is assigned by DHCP, so the jail IP address needs to be adjusted each time. I can think of a couple of ways to make this easier:
Run a DHCP client in the jail. I'm not sure that is possible.
Script something to create the jail IP address in the same netblock as the host. This is trickier than it sounds, because it has to check that the address is not already in use. Nameservers also have to be set, but could be copied from the host. Or the host could run a forwarding-only nameserver.
Set up a firewall to forward a port on the host to the jail. This does not solve the DNS problem.
What do people do? Has anyone come up with an elegant solution?
Run a DHCP client in the jail. I'm not sure that is possible.
Script something to create the jail IP address in the same netblock as the host. This is trickier than it sounds, because it has to check that the address is not already in use. Nameservers also have to be set, but could be copied from the host. Or the host could run a forwarding-only nameserver.
Set up a firewall to forward a port on the host to the jail. This does not solve the DNS problem.
What do people do? Has anyone come up with an elegant solution?