[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Contents of /etc/hosts
From: |
Hartmut Goebel |
Subject: |
Re: Contents of /etc/hosts |
Date: |
Sun, 9 Oct 2016 12:53:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
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 | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |