Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Apr 2002 10:45:07 -0500 (CDT)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Brett Glass <brett@lariat.org>, "Matthew D. Fuller" <fullermd@over-yonder.net>, <chat@FreeBSD.ORG>
Subject:   Re: How to control address used by INADDR_ANY?
Message-ID:  <20020421101830.V9678-100000@mail.wolves.k12.mo.us>
In-Reply-To: <3CC1245C.EEE4ADE@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Apr 2002, Terry Lambert wrote:

> My previous suggestion was to make the routable IP address the
> source address by making it the canonical IP address for the
> interface, rather than one of the aliases, which should have
> resulted in it being used as the source address.


From my own experience, it matters not wether an address is the
primary or an alias on an interface, it only matters wether that
address is logically closest to its destination, or the next-hop if
the destination is non-local.  In Brett's case, the next-hop has a
10.x.x.x address, so FreeBSD naturally chooses whatever 10.x.x.x
address is on the same subnet as that next-hop because it is closer
than any other assigned address is to that next-hop.  I admit, it
would be nice to be able to override this (completely logical and
nothing-wrong-with-it) behavior when needed.

This is all from my own experience of running a FreeBSD router with 8
interfaces on it and a mix of public and private addresses for about
the last 4 years or more.  I'm quite familiar with its behavior.  :-)

--
 Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net
 FreeBSD: The fastest and most stable server OS on the planet
 - Available for IA32 (Intel x86) and Alpha architectures
 - IA64, PowerPC, UltraSPARC, and ARM architectures under development
 - http://www.freebsd.org



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




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