Re: IPv4 addresses clash / jails not working after reboot…

Jamie Gritton jamie at FreeBSD.org
Fri Apr 12 17:02:56 UTC 2013


On 04/12/13 10:53, Łukasz Wąsikowski wrote:
> W dniu 2013-03-08 00:22, Jamie Gritton pisze:
>
>> You're allowed to have the same address in multiple jails, but only in
>> the case of jails that have one address (i.e. one IPv4 address in this
>> case). Jails with multiple IP addresses can't share any of those
>> addresses with other jails. I don't know why it should work once and
>> then not work later though.
>
> That's not true. You can have multiple IPs in jails. You can have
> multiple jails sharing the same IP. You can have multiple jails sharing
> the same multiple IPs. So:
>
> jail1: ipv4_ip1
> jail2: ipv4_ip2, ipv6_ip1, ipv6_ip2
> jail3: ipv4_ip2, ipv6_ip1, ipv6_ip2
>
> will work. But configuration like this:
>
> jail1: ipv4_ip1
> jail2: ipv4_ip2, ipv6_ip1, ipv6_ip2
> jail3: ipv4_ip2, ipv6_ip1
>
> will not, because jail2 and jail3 share only some IPs. I've tried
> configuration like this on 9.1-STABLE around december 2012 and it ended
> with panic. So I'm using the configuration from the first example and it
> works ok.

Well ending in a panic is beyond the bounds of what's supported, and
into what apparently is broken - I was just talking about the intent as
I read it into the code. Is this panic of yours repeatable? I'd like to
get the exact configuration you were using, so I could try to repeat
(and fix) whatever the problem was.

- Jamie


More information about the freebsd-jail mailing list