From owner-freebsd-questions Fri Jul 13 0:26:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 4414837B409 for ; Fri, 13 Jul 2001 00:26:20 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id JAA19405; Fri, 13 Jul 2001 09:33:52 +0200 Message-ID: <3B4EA30D.C3F8797D@i-clue.de> Date: Fri, 13 Jul 2001 09:28:13 +0200 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Tao Huang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: A Question about alias References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tao Huang schrieb: > > When I alias a IP address to a interface, how we know which IP address the > application will use?????Because the default route is as follow: > > d gateway interface > > 0 143.x.x.1 xl0 > > Is there any command by which I can choose choose one of two ip belong to > xl0? No. On the application layer, you do not know anything about the IP address used for your external communication. This is handled automatically by the kernel. Basically, the outgoing communication shows the very same IP address than the incoming connection if the remote site set up the connection. For outgoing connections, the main IP address would be used. I do not know if this can be changed. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message