Q: IPv6-only setup - get rid of 127.0.0.1

Bill Nottingham notting at redhat.com
Thu Jun 21 13:52:57 UTC 2012


Lennart Poettering (mzerqung at 0pointer.de) said: 
> On Thu, 21.06.12 16:59, Alexey I. Froloff (raorn at raorn.name) wrote:
> 
> > On Thu, Jun 21, 2012 at 02:44:42PM +0200, Tomasz Torcz wrote:
> > > > I can't find who sets "inet 127.0.0.1/8 scope host" address to lo
> > > > interface.  Commented out the IPADDRESS in ifcfg-lo - no result.
> > >   systemd sets this very early during boot.
> > Is is configurable?
> 
> Nope.
> 
> Just dropping the loopback IP address doesn't disable IPv4. if you want
> to disable IPv4 like you can disable IPv6 then this probably needs
> kernel support.
> 
> Disabling IPv4 should result in socket(AF_INET, ...) returning
> EAFNOSUPPORT. Just taking away 127.0.0.1 doesn't do anything like that.

Right - unlike IPv6, where it can be fully disabled, the best you can do
with IPv4 is just drop all IPv4 addresses.

Bill


More information about the devel mailing list