Date: Sun, 4 Sep 2016 16:17:07 +0000 From: Grzegorz Junka <list1@gjunka.com> To: freebsd-jail@freebsd.org Subject: Re: Changing jail's IP automatically Message-ID: <8a1b6a26-5199-6a6a-9e4d-ec9bd0d28010@gjunka.com> In-Reply-To: <20160903155222.GV83214@kib.kiev.ua> References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org> <20160903155222.GV83214@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/09/2016 15:52, Konstantin Belousov wrote: > On Sat, Sep 03, 2016 at 09:33:08AM -0600, James Gritton wrote: >> On 2016-09-02 15:08, Grzegorz Junka wrote: >>> I am using a jail on my laptop and I often connect to different >>> WiFi's, which of course assign different IPs to my laptop. I set up >>> the jail by adding an alias to wlan0 and I need to update the IP every >>> time I switch the WiFi network. Is it possible to create a jail with >>> IP assigned dynamically, e.g. from DHCP, or at least switch between >>> predefined IPs more easily than by editing /etc/jail.conf? >> You can always add addresses later. > I use private address in the jail, and NAT it on outside interface. > This worked fine on a roaming laptop with DHCP, several years ago. Does it require to use vnet in the jail?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8a1b6a26-5199-6a6a-9e4d-ec9bd0d28010>