From owner-freebsd-jail@freebsd.org Fri Sep 2 21:08:31 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5603BCD6BD for ; Fri, 2 Sep 2016 21:08:31 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from msa1.earth.yoonka.com (yoonka.com [185.24.122.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "msa1.earth.yoonka.com", Issuer "msa1.earth.yoonka.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7CC293F4 for ; Fri, 2 Sep 2016 21:08:30 +0000 (UTC) (envelope-from list1@gjunka.com) Received: from ultrabook.yoonka.com (p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29]) (authenticated bits=0) by msa1.earth.yoonka.com (8.15.2/8.15.2) with ESMTPSA id u82L8MOh036859 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 2 Sep 2016 21:08:23 GMT (envelope-from list1@gjunka.com) X-Authentication-Warning: msa1.earth.yoonka.com: Host p5DC0F31D.dip0.t-ipconnect.de [93.192.243.29] claimed to be ultrabook.yoonka.com To: freebsd-jail@freebsd.org From: Grzegorz Junka Subject: Changing jail's IP automatically Message-ID: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> Date: Fri, 2 Sep 2016 21:08:18 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 21:08:32 -0000 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? Grzegorz