Using 'Jails' like Solaris Zones??

Miroslav Lachman 000.fbsd at quip.cz
Mon Jan 11 09:51:55 UTC 2010


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


More information about the freebsd-jail mailing list