From owner-freebsd-net Mon Oct 23 23:41:54 2000 Delivered-To: freebsd-net@freebsd.org Received: from jason.argos.org (a1-3a105.neo.rr.com [24.93.180.105]) by hub.freebsd.org (Postfix) with ESMTP id 0F6B637B479 for ; Mon, 23 Oct 2000 23:41:52 -0700 (PDT) Received: from localhost (mike@localhost) by jason.argos.org (8.10.1/8.10.1) with ESMTP id e9O6dsq09989 for ; Tue, 24 Oct 2000 02:39:54 -0400 Date: Tue, 24 Oct 2000 02:39:54 -0400 (EDT) From: Mike Nowlin To: freebsd-net@freebsd.org Subject: src IP addr w/multiple ifaces Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a system here that has four different ethernet interfaces (dc0, dc1, dc2, and fxp0), each on a different IP address: dc0 10.220.134.162/30 <-- Link to outside world dc1 1.2.3.4/27 <-- Subnet assigned by my ISP dc2 10.98.1.1/16 fxp0 10.97.1.1/16 The machines "assigned" IP is the 1.2.3.4 addr, but anytime I try and make an outgoing connection, it uses a src IP of 10.220.134.162, not 1.2.3.4. (We had to do it this way so that the ISP could route the /27 block via 10.220.134.162.) How is this source IP chosen in the kernel - by order of interfaces? (The order listed above is the order probed during bootup.) Is there any way to force it to use the 1.2.3.4 addr instead of 10.220.134.162? I imagine I could figure it out with NATD, but I see that as being a little ugly... --mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message