Date: Mon, 22 Dec 2014 08:05:22 -0600 From: Mark Felder <feld@FreeBSD.org> To: freebsd-jail@freebsd.org Subject: Re: only lo0 interface inside jail, no default gw Message-ID: <1419257122.839910.205722545.5A95A973@webmail.messagingengine.com> In-Reply-To: <CABk4_A5_=1%2BVNb-xvOx%2BfaJwrA8VrhjUPhQKnK5FGM7FxY1Oaw@mail.gmail.com> References: <CABk4_A61y1m8hXXkOPEKSbzf74j64MNtYhfV59enVuJfPwQApQ@mail.gmail.com> <0096d1968fd2758df224a9dea6934ddb@gritton.org> <5491ED4F.4040002@freebsd.org> <CABk4_A5_=1%2BVNb-xvOx%2BfaJwrA8VrhjUPhQKnK5FGM7FxY1Oaw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Of course that hasn't been updated to mention IPv6 yet.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1419257122.839910.205722545.5A95A973>