Am 09.10.2016 um 11:56 schrieb John Darrington: > But for IPv6 the loopback interface has ::1/128, this ::2 would not got > there. > > So if we follow your proposal adding "127.0.0.2 gambrius" to /etc/hosts, > we could not contently doe this for IPv6. > > IPv6 is something I'm not really familiar with. Presumably there is an > 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. -- Regards Hartmut Goebel | Hartmut Goebel | h.goe...@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |