From owner-freebsd-net@FreeBSD.ORG Thu Feb 12 11:31:01 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B34616A4CE for ; Thu, 12 Feb 2004 11:31:01 -0800 (PST) Received: from mail.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id D7BC643D2F for ; Thu, 12 Feb 2004 11:31:00 -0800 (PST) (envelope-from reichert@numachi.com) Received: (qmail 73988 invoked from network); 12 Feb 2004 19:31:00 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 12 Feb 2004 19:31:00 -0000 Received: (qmail 50520 invoked by uid 1001); 12 Feb 2004 19:30:59 -0000 Date: Thu, 12 Feb 2004 14:30:59 -0500 From: Brian Reichert To: freebsd-net@freebsd.org Message-ID: <20040212193059.GX2429@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1i Subject: question: source address on interface w/ aliases? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 19:31:01 -0000 I've had an expectation violated recently, and wanted to research whether my expectation was grounded in reality: Given an interface with a primary IP, and one or more aliased IP addresses: When a process opens a connection to another host, which IP address will be chosen as the source address? Steven's just says 'the kernel chooses the IP address and port'. My expectation was that the primary IP address would be used. Is my expectation valid? Is there a spec that describes this, or is it up to an individual OS to do whatever it wants? (I'm sorry to pester this list, as this question isn't actually specific to FreeBSD...) I'm more than willing to do my own research, but a suggestion of useful buzzwords would be appreciated as well. :) Thanks for your time... -- Brian Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large