From owner-freebsd-jail@FreeBSD.ORG Fri May 4 11:52:31 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 92319106566B for ; Fri, 4 May 2012 11:52:31 +0000 (UTC) (envelope-from drl@void.my) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3B2568FC1E for ; Fri, 4 May 2012 11:52:31 +0000 (UTC) Received: by vbmv11 with SMTP id v11so2603265vbm.13 for ; Fri, 04 May 2012 04:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=void.my; s=g; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=NfbeS2/US4S+89Nx+cgtiPhi2QfI/ecrbVcHb1HlziA=; b=VxQzDzp2K9dXbf7SiH6n1GtsxBDOZb+6lLopsIyV9qsipFrc2pmW2TMjJeGHQuwU5g vJaDU+LTMJyFWgPgVmx5HPb4YqDySnEp5QnR8hStmJx6gckMOIOmMSeWM4QfK3TDalL9 D3Q/4TDTz/8bymNdaeq6i3CFByjSvzeW06eyM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=NfbeS2/US4S+89Nx+cgtiPhi2QfI/ecrbVcHb1HlziA=; b=i+tm8VOTXB3JmL0x7rJYnBXHp0ljsSdDzflTg/lDhVQexmzz0Sb6nF+0JskC3vp2YS ip4niKyxM6pzzu2OxE0WvGEbehmDw1mIU+XuijacBy1gYf5CCPMbm5m0eIAy5CpwSVdk IMZpp4Cyzx91pj51enaxnCm3+X4nGMIkvFjkoW+9abkVQpppVrl69Idb0ZHyI+fkW1ou CtKsOX2YgdrDjf9Mdit4g6WkOx+R32mhcdmCjWbrbYwOyzRCCde6YCVdC1Rs1l2rEYjL FC2EGfU5CPhQjRoYvGQ8Hvt6wWbze4nHN2jgI5GA3Q5kR/n7O82ydhqxV/pKnKNnAeWq qGLw== Received: by 10.220.230.67 with SMTP id jl3mr2028300vcb.50.1336130828965; Fri, 04 May 2012 04:27:08 -0700 (PDT) MIME-Version: 1.0 Sender: drl@void.my Received: by 10.52.168.2 with HTTP; Fri, 4 May 2012 04:26:48 -0700 (PDT) In-Reply-To: <4FA3AFDB.30308@quip.cz> References: <4FA3AFDB.30308@quip.cz> From: Darryl Yeoh Date: Fri, 4 May 2012 19:26:48 +0800 X-Google-Sender-Auth: j6D5VNiDf7VhdtE3vJor3LwL0oI Message-ID: To: Miroslav Lachman <000.fbsd@quip.cz> X-Gm-Message-State: ALoCoQkVAAnjRY1DoQJLQ5wCFdy3Rgq65pQQuHhliDT2A8Pdqz7Rv1jezaDv2/+n5O6hx9wUYCUN Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 Reply-To: drl@bsd.my 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 11:52:31 -0000 On Fri, May 4, 2012 at 6:30 PM, Miroslav Lachman <000.fbsd@quip.cz> wrote: > 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 > That did it. Cheers mate :> -Darryl