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

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



W dniu 2015-02-10 o 00:07, Dan Langille pisze:

> I failed:
> 
> # add two IP addreses
> sudo ifconfig em0 alias 10.123.0.1 netmask 255.255.255.255
> sudo ifconfig em0 alias 10.123.0.2 netmask 255.255.255.255
> 
> # create and start a jail on those IPs
> sudo ezjail-admin create -f ansible-slave test1 "10.123.0.1,10.123.0.2"
> sudo ezjail-admin start test1
> 
> # create a second jail, same IP
> sudo ezjail-admin create -f ansible-slave test2 "10.123.0.1,10.123.0.2"
> 
> # fail to launch
> $ sudo ezjail-admin start test2
> Configuring jails:.
> Starting jails: cannot start jail "test2": 
> .
> Error: Could not start test2.
>   You need to start it by hand.

You are right. My jails share one IPv4 and one IPv6 address and it
works. Two IPv4 addresses fails.

-- 
best regards,
Lukasz Wasikowski