Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Dec 2016 18:28:33 +0000 (UTC)
From:      John Dison <jdison16@yahoo.com>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Cc:        "hrs@FreeBSD.org" <hrs@FreeBSD.org>, "mike@sentex.net" <mike@sentex.net>
Subject:   RE: How to configure another loopback device?
Message-ID:  <252311393.1502179.1482604113540@mail.yahoo.com>
In-Reply-To: <31938292.1421737.1482589536048@mail.yahoo.com>
References:  <1031105507.1010181.1482502206363@mail.yahoo.com> <f05aaf0b-0066-2f1b-8fe1-7fd826b3f6c6@sentex.net> <1404669989.1370681.1482573468893@mail.yahoo.com> <20161224.205457.537205546150309741.hrs@allbsd.org> <31938292.1421737.1482589536048@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Resending, for some reason my reply is not in ML archives... probably everyone hates Yahoo Mail...


----- Forwarded Message -----
From: John Dison <jdison16@yahoo.com>
To: Hiroki Sato <hrs@FreeBSD.org>; "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Cc: "mike@sentex.net" <mike@sentex.net>
Sent: Saturday, December 24, 2016 5:25 PM
Subject: Re: How to configure another loopback device?







fr> > if your first IPs are say 192.168.1.1-2/32 and 2001:550:2:8::1e-f
fr>
fr> > Try without an alias0 for the first set of IPs
fr>
fr> > ifconfig_lo1="inet 192.168.1.1/32"
fr> > ifconfig_lo1_ipv6="inet6 2001:550:2:8::1e prefixlen 126"
fr> > ifconfig_lo1_alias0="inet 192.168.1.2/32"
fr> > ifconfig_lo1_ipv6_alias0="inet6 2001:550:2:8::1f prefixlen 126"



fr>
fr>
fr>
fr> It does not help:  ::1/128 is still on lo1, rather than lo0.

> Does adding ifconfig_lo0="inet 127.0.0.1/8" to /etc/rc.conf work?


Yes, adding ifconfig_lo0="inet 127.0.0.1/8" helps indeed.

Interesting is that if I also add ifconfig_lo0_ipv6="inet6 ::1/128"
then ::1/128 will be on lo1.  If I do not add that line, it will be on lo0.

Looks weird but that workaround work.  Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?252311393.1502179.1482604113540>