Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 18:15:54 -0500
From:      Christopher Weimann <cweimann@k12hq.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Aliasing lo0
Message-ID:  <20021129181554.B88969@mail.k12us.com>

next in thread | raw e-mail | index | archive | help
I needed to put an alias on lo0 for 127.0.0.2 and I made the 
mistake of assuming this would work like any other interface
but that isn't the case.

ifconfig inet lo0 127.0.0.2 netmask 255.255.255.255 alias

results in an ip that I can ping but when I startup dnscache
and ask it to listen on that ip it won't respond to queries.
( Yes queries from the same host )

If I switch the netmask to 255.0.0.0 ( which goes completely
against the man page for ifconfig ) and everything works great.

Also /etc/defaults/rc.conf shows...

#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.

If I follow that sample ( note the netmask ) things won't work
right.

Am I missing something or is lo0 treated differently for 
some reason?

FreeBSD 4.5


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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