Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 1996 22:21:08 -0500 (EST)
From:      Charles Henrich <henrich@crh.cl.msu.edu>
To:        freebsd-hackers@freebsd.org
Subject:   Intelligent source IP's in multinet singlephysicalnet connections?
Message-ID:  <199612100321.WAA25837@crh.cl.msu.edu>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612100321.WAA25837>