[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] using the same IP address in different jails



> On Feb 9, 2015, at 5:02 PM, Dan Langille <dan AT langille DOT org> wrote:
> 
> I have a jail running with 3 IP addresses.
> 
> I want to create a new jail running on two of those IP addresses and one other.  I'm failing.
> 
> $ sudo ezjail-admin start nuts.langille.org
> Configuring jails:.
> Starting jails: cannot start jail "nuts_langille_org": 
> .
> Error: Could not start nuts.langille.org.
>  You need to start it by hand.
> 
> This is what I have in /usr/local/etc/ezjail/nuts_langille_org
> 
> jail_nuts_langille_org_ip="10.10.0.168,162.208.116.68,2810:1c1:0:4::4"
> 
> This is what I have in the existing jail:
> 
> export jail_mailjail_langille_org_ip="10.10.0.68,162.208.116.68,2810:1c1:0:4::4"
> 
> Should this work?

Further to the previous posts, the code comments say no:

  https://svnweb.freebsd.org/base/head/sys/kern/kern_jail.c?revision=277855&view=markup#l1415

In short, two or more jails can share an IP address if that is the only IP address in those jails.

— 
Dan Langille
http://langille.org/