How to configure another loopback device?
Hiroki Sato
hrs at FreeBSD.org
Sat Dec 24 22:02:37 UTC 2016
John Dison <jdison16 at yahoo.com> wrote
in <252311393.1502179.1482604113540 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20161225/56055623/attachment.sig>
More information about the freebsd-net
mailing list