Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2012 12:21:54 -0400
From:      Jason Hellenthal <jhellenthal@dataix.net>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-jail@freebsd.org, drl@bsd.my
Subject:   Re: Modify jail IP without restarting
Message-ID:  <20120504162154.GA11649@DataIX.net>
In-Reply-To: <4FA3AFDB.30308@quip.cz>
References:  <CAABGk57DEyoCdsr-E9mr-ThJgLXS0gV4XX5W2Mr5x_=ioac0bw@mail.gmail.com> <CAABGk54RM8tMA_x55NmcE_6byVSHFrK4C3=ueemYwR=C2RVXCQ@mail.gmail.com> <4FA3AFDB.30308@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable



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.
>=20
> Yes, you can add / change / remove IP addresses on running jails. You=20
> must use newer syntax of jail(8) command with param=3Dvalue.
>=20
> short example:
>=20
> jail -m ip4.addr=3D"192.168.1.87,192.168.1.88" jid=3D1

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.

>=20
> where ip4.addr is the list of IP addresses you want to assign to a jail=
=20
> and jid is the JID of the jail. If you are using named jails, you can=20
> use name=3Dmyjail instead of jid=3Dn
>=20
> You can list all current parameters by jls -nqs (see man jls)
>=20
> Miroslav Lachman
> _______________________________________________
> freebsd-jail@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"

--=20

 - (2^(N-1))

--T4sUOijqQbZv57TR
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJPpAIhAAoJEBSh2Dr1DU7W7XEH/0WXpumS6S+F0TifdZ/Tc7Ea
k9kjsv9qbcGfmMuB/XWCMHurBob5EITI5x9FKYwWyOQyUbWIJH7PXxOQJjJZa79c
n2ARXQVBTie7PUTzODOSZIgyu7rf0hrFGIxOPE5EcFxK2llrvHfQUKjjthd+v20t
c4GIeu5ZkB8rpD5CUSGfQOoxG0QS5A1YKGLpRt2dXS1hWQIEBFraqf0gCR2a1p0S
XaeUNsbu1nJMnKyCSnBi1APAhb7yePWbdUOHv1aWsPWqy5cxuafcCo0CmR29FEMz
deCJuWjZZs90WBp62NpRekBEibo66gWzVAz9Wf1MZ04Q1AHz2IlhqRQHeQTCQ0Y=
=uwZo
-----END PGP SIGNATURE-----

--T4sUOijqQbZv57TR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120504162154.GA11649>