Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Bind to 127.0.0.N for any N
Date: Fri, 29 Jan 2021 00:38:45
Message-Id: ruvle9$kqd$1@ciao.gmane.io
1 I've just recently realized something about the "lo" interface.
2
3 You can bind a socket to any 127.0.0.N address, even though only
4 127.0.0.1/8 is configured in /etc/config/net, and "ip addr" only shows
5 127.0.0.1/8 for that interface. In the past, when I wanted to use
6 other 127.0.0.N address, I always added them to /etc/config/net. The
7 last time, I forget to do that. Later, I realized it was working
8 anyway. I've since removed all of the extra "lo" addresses from
9 /etc/config/net, and everything still works.
10
11 Apparently "lo" is special.
12
13 Perhaps I don't even need to have 127.0.0.1/8 listed in
14 /etc/config/net...
15
16 --
17 Grant

Replies

Subject Author
Re: [gentoo-user] Bind to 127.0.0.N for any N Grant Taylor <gtaylor@×××××××××××××××××××××.net>