From owner-freebsd-chat Sun Apr 21 8:45:21 2002 Delivered-To: freebsd-chat@freebsd.org Received: from mail.wolves.k12.mo.us (mail.wolves.k12.mo.us [207.160.214.1]) by hub.freebsd.org (Postfix) with ESMTP id A14CB37B41B for ; Sun, 21 Apr 2002 08:45:14 -0700 (PDT) Received: from mail.wolves.k12.mo.us (cdillon@mail.wolves.k12.mo.us [207.160.214.1]) by mail.wolves.k12.mo.us (8.9.3/8.9.3) with ESMTP id KAA10062; Sun, 21 Apr 2002 10:45:08 -0500 (CDT) (envelope-from cdillon@wolves.k12.mo.us) Date: Sun, 21 Apr 2002 10:45:07 -0500 (CDT) From: Chris Dillon To: Terry Lambert Cc: Brett Glass , "Matthew D. Fuller" , Subject: Re: How to control address used by INADDR_ANY? In-Reply-To: <3CC1245C.EEE4ADE@mindspring.com> Message-ID: <20020421101830.V9678-100000@mail.wolves.k12.mo.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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