From owner-freebsd-hackers Mon Dec 9 19:21:11 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA01188 for hackers-outgoing; Mon, 9 Dec 1996 19:21:11 -0800 (PST) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id TAA01183 for ; Mon, 9 Dec 1996 19:21:09 -0800 (PST) Received: (from henrich@localhost) by crh.cl.msu.edu (8.7.6/8.7.3) id WAA25837 for freebsd-hackers@freebsd.org; Mon, 9 Dec 1996 22:21:08 -0500 (EST) From: Charles Henrich Message-Id: <199612100321.WAA25837@crh.cl.msu.edu> Subject: Intelligent source IP's in multinet singlephysicalnet connections? To: freebsd-hackers@freebsd.org Date: Mon, 9 Dec 1996 22:21:08 -0500 (EST) X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I posted this some months ago, but the suggested "I just fixed it" apparently didnt. On a FreeBSD box with multiple IP addresses, shouldnt FreeBSD pick the source IP of a packet of the net that the destination IP address is for (if possible?) That is, in my case I have an IP address on a standard network class C address, as well as an alias in the non-routed 10.x.x.x range. I have a default route for both networks: e.g. 10 link#1 UCSc 11 0 CLASSC link#1 UC 0 0 When I send any packets to the 10. addresses, I want my source IP to be my aliased 10. Address. In all other cases I want it to be my normal address. This is because I have a bunch of devices hanging on the 10. network that I want to talk to, and who can only communicate to other devices on the 10. network. The kicker is this works under Win95 if I define multiple networks for myself.. -Crh Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich