From owner-freebsd-jail@FreeBSD.ORG Fri May 4 10:31:01 2012 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23D801065673 for ; Fri, 4 May 2012 10:31:01 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id CBF1C8FC0C for ; Fri, 4 May 2012 10:31:00 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 13F1328424; Fri, 4 May 2012 12:30:53 +0200 (CEST) Received: from [192.168.1.2] (static-84-242-120-26.net.upcbroadband.cz [84.242.120.26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 32E3128423; Fri, 4 May 2012 12:30:52 +0200 (CEST) Message-ID: <4FA3AFDB.30308@quip.cz> Date: Fri, 04 May 2012 12:30:51 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: drl@bsd.my References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Modify jail IP without restarting X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 10:31:01 -0000 Darryl Yeoh wrote: > On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh wrote: > >> Hi guys, >> >> I'm on FreeBSD 9-STABLE/amd64 at the moment and is there a way to >> add/modify a jail's existing IP address without restarting jail ? >> >> Initially the jail was configured with 5 IP addresses. And now we have >> clients requesting additional IP addresses. A bunch of users >> are in the jail at the moment and I don't want to restart the jail just >> cause of this. Yes, you can add / change / remove IP addresses on running jails. You must use newer syntax of jail(8) command with param=value. short example: jail -m ip4.addr="192.168.1.87,192.168.1.88" jid=1 where ip4.addr is the list of IP addresses you want to assign to a jail and jid is the JID of the jail. If you are using named jails, you can use name=myjail instead of jid=n You can list all current parameters by jls -nqs (see man jls) Miroslav Lachman