From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: Contents of /etc/hosts Date: Sun, 9 Oct 2016 12:53:13 +0200 Message-ID: <57FA2199.2050509@crazy-compilers.com> References: <20161005183147.GA32276@jocasta.intra> <57F61869.10400@goebel-consult.de> <20161008140838.GA5979@jocasta.intra> <57FA0A1A.7040905@crazy-compilers.com> <20161009095635.GA22834@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btBjQ-0007Zi-7e for guix-devel@gnu.org; Sun, 09 Oct 2016 06:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btBjK-00042C-7a for guix-devel@gnu.org; Sun, 09 Oct 2016 06:53:23 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:52801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btBjK-000425-1S for guix-devel@gnu.org; Sun, 09 Oct 2016 06:53:18 -0400 In-Reply-To: <20161009095635.GA22834@jocasta.intra> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: John Darrington Cc: guix-devel@gnu.org Am 09.10.2016 um 11:56 schrieb John Darrington: > But for IPv6 the loopback interface has ::1/128, this ::2 would no= t got > there. > =20 > So if we follow your proposal adding "127.0.0.2 gambrius" to /etc/= hosts, > we could not contently doe this for IPv6. > =20 > IPv6 is something I'm not really familiar with. Presumably there is an= =20 > equivalent way to do this in IPv6 ? I don't think we can use somehting like "::2 gamrius" for IPv6. I did not find documentation for this when In did a short Internet search but: * According to some sources, the loopback interface address is ::1/128, which would be the same as 127.0.0.1/32. Thus this loopback is a kind of point-to-point interface in IPv6, where as in IPv4 it "accepts" a /8 network. * "/sbin/ip -6 route" says: unreachable ::/96 dev lo metric 1024 error -113 pref medium So when sending a packet to ::2 this will simply be discard. --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |