Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 2014 13:20:36 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Mark Felder <feld@FreeBSD.org>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: only lo0 interface inside jail, no default gw
Message-ID:  <alpine.BSF.2.11.1412221319160.90591@wonkity.com>
In-Reply-To: <1419257122.839910.205722545.5A95A973@webmail.messagingengine.com>
References:  <CABk4_A61y1m8hXXkOPEKSbzf74j64MNtYhfV59enVuJfPwQApQ@mail.gmail.com> <0096d1968fd2758df224a9dea6934ddb@gritton.org> <5491ED4F.4040002@freebsd.org> <CABk4_A5_=1%2BVNb-xvOx%2BfaJwrA8VrhjUPhQKnK5FGM7FxY1Oaw@mail.gmail.com> <1419257122.839910.205722545.5A95A973@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Dec 2014, Mark Felder wrote:

>
>
> On Thu, Dec 18, 2014, at 00:18, Alexander Lunev wrote:
>> As i said in message to Jamie Gritton, i found why jails couldn't ping
>> internet - i forget to add jail's address to table which permitted to
>> NAT.
>>
>> Why subnet mask should be /32? What harm could be done if subnet mask of
>> an
>> alias is the same as for the other address of that interface?
>>
>
> That's just the way the network stack has always worked; weird things
> happen if you use the wrong subnet mask on the aliases. IPv4 aliases are
> /32 and IPv6 aliases are /128. As documented in the man page for
> ifconfig:
>
>  Usually 0xffffffff is most appropriate.

At one time, only /32 would work.  Didn't that change a few releases 
ago, so non-/32 netmasks could be used on aliases?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1412221319160.90591>