Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 May 2012 05:48:59 +0800
From:      Darryl Yeoh <drl@bsd.my>
To:        Jason Hellenthal <jhellenthal@dataix.net>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Modify jail IP without restarting
Message-ID:  <CAABGk54vCTOiLvT8%2BOjTAhobJ%2BmMF5-Vor4OwDOp8LUmNd=%2BiQ@mail.gmail.com>
In-Reply-To: <20120504162154.GA11649@DataIX.net>
References:  <CAABGk57DEyoCdsr-E9mr-ThJgLXS0gV4XX5W2Mr5x_=ioac0bw@mail.gmail.com> <CAABGk54RM8tMA_x55NmcE_6byVSHFrK4C3=ueemYwR=C2RVXCQ@mail.gmail.com> <4FA3AFDB.30308@quip.cz> <20120504162154.GA11649@DataIX.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 5, 2012 at 12:21 AM, Jason Hellenthal <jhellenthal@dataix.net>wrote:

>
>
> On Fri, May 04, 2012 at 12:30:51PM +0200, Miroslav Lachman wrote:
> > Darryl Yeoh wrote:
> > > On Fri, May 4, 2012 at 5:55 PM, Darryl Yeoh<drl@bsd.my>  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
>
> If you run this command on the jail (at least of stable/8 "now") it will
> replace the current IP address that is already associated with the jail.
> Be sure to add all current ip addresses to this list before running or
> your clients are going to be cut off mid connection.
>
>
Yep. Same applies to 9-STABLE as I experience that awhile ago.

-Darryl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAABGk54vCTOiLvT8%2BOjTAhobJ%2BmMF5-Vor4OwDOp8LUmNd=%2BiQ>