Problem with jail network

Damien Fleuriot ml at my.gd
Wed Nov 30 20:53:25 UTC 2011



On 30 Nov 2011, at 20:28, Polytropon <freebsd at edvax.de> wrote:

> On Wed, 30 Nov 2011 20:19:56 +0100, bsd wrote:
>> Le 30 nov. 2011 à 18:38, Коньков Евгений a écrit :
>> 
>>> Здравствуйте, bsd.
>>> 
>>> Вы писали 30 ноября 2011 г., 19:29:34:
>>> 
>>> b> Le 30 nov. 2011 а 17:17, Damien Fleuriot a йcrit :
>>> 
>>>>> 
>>>>> 
>>>>> On 11/30/11 5:05 PM, bsd wrote:
>>>>>> Hi, 
>>>>>> 
>>>>>> I have been configuring a jail system using the howto provided here : http://www.freebsd.org/doc/handbook/jails-application.html
>>>>>> 
>>>>>> The is now correctly starting, but I can't seem to use the network stack. 
>>>>>> 
>>>>>> 
>>>>>>> root at master 16:52:55 ~ -> jls
>>>>>>> JID  IP Address      Hostname                      Path
>>>>>>> 1  xx.216.yy.150  n0.no.no                    /jail/j/n0
>>>>>> 
>>>>>> 
>>>>>> But I can't ping neither outside of the jail, nor inside of It. 
>>>>>> 
>>>>>> I am a bit confused because I don't know if I have to configure the IP using an alias on the main Eth interface, or do something else. 
>>>>>> 
>>>>>>> ifconfig_bce0_alias0="inetxx.216.yy.150/32"
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> This last command seems to have frozen my system. 
>>>>>> 
>>>>> 
>>>>> Confirm that the MISSING SPACE between your "inet" and "xxx.216..."
>>>>> statements is only a typo and NOT present in your actual rc.conf
>>>>> 
>>> 
>>> b> This is confirmed. 
>>> 
>>> b> I have the equivalent of : 
>>> 
>>> b> ifconfig_bce0_alias0="inet 1.2.3.4/32"
>>> 
>>> in this case I write full netmask: "inet 1.2.3.4 netmask 255.255.255.255"
>>> It works fine
>>> 
>> 
>> Ok, I'll try that with netmask 255.255.255.255 instead of /32
> 
> The hex notation should also be valid:
> 
> ifconfig_bce0_alias0="inet 1.2.3.4 netmask 0xffffff00"
> 
> 

Careful you've given him /24 instead of the /32 he seems to be using.



More information about the freebsd-questions mailing list