Two Networks on one System

Gary Gatten Ggatten at waddell.com
Tue Jun 21 00:00:56 UTC 2011


I guess that is the question.  Does if1 and if2 both need to talk to networkA via separate discrete paths?  NetA to if1 = if1 to NetA; NetA to if2 = if2 to NetA.

If not, it's easy right? Several options.  If so, perhaps not so easy - pf or the like.

----- Original Message -----
From: Elliot Finley [mailto:efinley.lists at gmail.com]
Sent: Monday, June 20, 2011 06:18 PM
To: Jon Radel <jon at radel.com>
Cc: freebsd-questions at freebsd.org <freebsd-questions at freebsd.org>
Subject: Re: Two Networks on one System

On Mon, Jun 20, 2011 at 4:58 PM, Jon Radel <jon at radel.com> wrote:
>
> On 6/20/11 6:30 PM, Gary Gatten wrote:
>
>> I was kinda going this route as well - policy based routing type thing,
>> but, is there an "easier" way?
>
> Not that I know of given a constraint of completely disjoint networks.
> However, I won't be too terribly surprised if somebody comes up with
> something elegant that makes us all go, "Ooooooo, what a disgustingly neat
> hack."

If it's two completely disjoint networks, the two networks don't use
overlapping IP space and the IP space on at least one of the networks
is known, then just use standard routing.  put in static routes for
the known space and a default route on the other interface for the
unknown space.

If the two networks are using overlapping space, then the only way to
differentiate the packets are which interface they came in... then
you'll have to use a PF hack.

Elliot
_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"





<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."
</font>



More information about the freebsd-questions mailing list