<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=687032320-25102007><FONT face=Arial
color=#0000ff size=2>Well you could assign some networks to that interface, if
you know what service you are requesting. If it were a mail server and you knew
the address in advance, you could effectively say "all requests for this
mail server located on network C go out eth2" with something like: route add
-net 64.29.200.145 netmask 255.255.255.255 dev eth2</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=687032320-25102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=687032320-25102007><FONT face=Arial
color=#0000ff size=2>But as far as a dynamic rule saying all traffic inbound on
a given interface, go back out the same... Not sure if there's a way to do
that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=687032320-25102007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=687032320-25102007><FONT face=Arial
color=#0000ff size=2>Chris</FONT> </SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nflug-bounces@nflug.org
[mailto:nflug-bounces@nflug.org] <B>On Behalf Of </B>Brad
Bartram<BR><B>Sent:</B> Thursday, October 25, 2007 4:08 PM<BR><B>To:</B>
nflug@nflug.org<BR><B>Subject:</B> [nflug] Routing Problem that I would love
some input on<BR></FONT><BR></DIV>
<DIV></DIV>Hey everybody;<BR><BR>I don't know why I'm having a brain fart, but
after trying to remember how to go about this, I figured I'd see if some wiser
heads can prevail in helping out.<BR><BR>Here's the situation: <BR><BR>I have
one linux box that is the final destination for three distinct networks all
arriving via different interfaces. Example:<BR><BR>Eth0 -
192.168.1.x<BR>Eth1 - 12.24.9.x (made up examples)<BR>Eth2 - 64.29.223.x (made
up example)<BR><BR>These interfaces are connected to different
providers.<BR><BR>The short question - How can I set up the routing tables so
that traffic received on Eth1 leaves via eth1 and traffic received via eth2
leaves via eth2? <BR><BR>What's happening now is that when I make a request for
service on one of eth1 or eth2, the packet wants to leave on the default gateway
for the box, which is connected to
eth0.<BR><BR><BR>Thanks<BR><BR>Brad<BR></BODY></HTML>