Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2010 10:51:51 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Glen Barber <glen.j.barber@gmail.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Using 'Jails' like Solaris Zones??
Message-ID:  <4B4AF4B7.7090802@quip.cz>
In-Reply-To: <20100110222638.GA5300@orion.hsd1.pa.comcast.net>
References:  <4B4A422F.9060307@netscape.net> <4B4A4DF3.5010509@quip.cz> <20100110222638.GA5300@orion.hsd1.pa.comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Glen Barber wrote:
> Hi,
>
> Miroslav Lachman wrote:
>> Kaya Saman wrote:
>>
>> [...]
>>
>>> Since FreeBSD has all the software I require and is quite easy on system
>>> resources I was considering using 'Jails' where in Solaris I would be
>>> using Zones to dedicate an individual IP address to each instance of Bind.
>>>
>>> However, is it possible to dedicate a specific NIC to each instance of
>>> Bind as well since this is really what I would be doing in Solaris???
>>>
>>> Apologies if I seem a bit vague on which OS I will choose, it's just
>>> that I am trying to consolidate as many services as possible without
>>> requiring any more hardware.
>>
>> AFAIK FreeBSD jail can't be bound to a specific NIC, but can be bound to
>> IP address(es) and addresses can be assigned to a different NICs.
>> It means, if you have following NICs: nic0, nic1 and IPS on NICs:
>> nic0 = 10.10.10.10
>> nic1 = 10.20.20.20
>
> As of 7.2, jails can be bound directly to a specific interface.
>
> The example in /etc/defaults/rc.conf shows:
>
> 	#jail_example_interface=""
>

It is different thing and exists for more than 3 years.

As is stated in the manpage, this is just a rc.conf(5) variable used to 
choose the interface where IP alias will be created, but is has nothing 
to do with jail(8) command. The command takes list of IP addresses, not 
NICs.

jail_<jname>_interface
      (str) Unset by default.  When set, sets the interface to use
      when setting IP address alias.  Note that the alias is cre-
      ated at jail startup and removed at jail shutdown.


Miroslav Lachman



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