Date: Sun, 25 Dec 2016 06:59:34 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: jdison16@yahoo.com Cc: freebsd-net@freebsd.org, mike@sentex.net Subject: Re: How to configure another loopback device? Message-ID: <20161225.065934.1192800130496756773.hrs@allbsd.org> In-Reply-To: <252311393.1502179.1482604113540@mail.yahoo.com> References: <20161224.205457.537205546150309741.hrs@allbsd.org> <31938292.1421737.1482589536048@mail.yahoo.com> <252311393.1502179.1482604113540@mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Sun_Dec_25_06_59_34_2016_627)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit John Dison <jdison16@yahoo.com> wrote in <252311393.1502179.1482604113540@mail.yahoo.com>: jd> > Does adding ifconfig_lo0="inet 127.0.0.1/8" to /etc/rc.conf work? jd> jd> Yes, adding ifconfig_lo0="inet 127.0.0.1/8" helps indeed. jd> jd> Interesting is that if I also add ifconfig_lo0_ipv6="inet6 ::1/128" jd> then ::1/128 will be on lo1. If I do not add that line, it will be on lo0. jd> jd> Looks weird but that workaround work. Thanks. Here are the reasons: - 127.0.0.1/8 will be configured on lo0 in rc.d scripts if ifconfig_lo0 is missing after processing ifconfig_IF and before doing ifconfig_IF_alias*. - You cannot manually configure ::1/128 because it is configured by the kernel when a loopback interface becomes "up". If you have an ifconfig_lo1 and no ifconfig_lo0, ifconfig_lo1 will be processed and make lo1 "up" first. -- Hiroki ----Security_Multipart(Sun_Dec_25_06_59_34_2016_627)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlhe78YACgkQTyzT2CeTzy3OLgCfT9vtXF0NICpjQXT1tAovXK9c ZnEAoNP+oA4Kz26Z49qoM80TCooyxeK/ =lSjK -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Dec_25_06_59_34_2016_627)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161225.065934.1192800130496756773.hrs>