Resending, for some reason my reply is not in ML archives... probably everyone 
hates Yahoo Mail...


----- Forwarded Message -----
From: John Dison <jdiso...@yahoo.com>
To: Hiroki Sato <h...@freebsd.org>; "freebsd-net@freebsd.org" 
<freebsd-net@freebsd.org>
Cc: "m...@sentex.net" <m...@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.
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to