<HTML>
<BODY>

<br><font size=2 face="sans-serif">your one and only default route is for
any traffic that does not have a specific route set to follow. &nbsp;So,
if you want certain traffic to go out a specific interface, you must create
static routes in your table.</font>
<br>
<br><font size=2 face="sans-serif">examples:</font>
<br>
<br><font size=2 face="sans-serif"># route add &nbsp;-net 192.168.5.0 netmask
255.255.255.0 eth0</font>
<br><font size=2 face="sans-serif"><i>netmask can be left out since 192.168
is a Class C by default.</i></font>
<br>
<br><font size=2 face="sans-serif"># route add -host 192.168.6.6 eth0</font>
<br>
<br><font size=2 face="sans-serif">that's it.</font>
<br>
<br>
<br><font size=2 face="sans-serif">James Riley, CISSP <br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>sirsky &lt;sirsky@gmail.com&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: kclug-bounces@kclug.org</font>
<p><font size=1 face="sans-serif">05/23/2005 11:24 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
sirsky &lt;sirsky@gmail.com&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">List - KCLUG &lt;kclug@kclug.org&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Linux Routing Default Gateways</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>I'm having a problem getting proper default gateways
set up on my<br>
Gentoo server...here's the scenario:<br>
<br>
Linux Server with 2 ethernet interfaces.<br>
<br>
eth0: 192.168.1.0 (internal)<br>
eth1: 172.16.0.0 (dmz)<br>
<br>
Here is my current routing table:<br>
<br>
192.168.1.0/24 dev eth0 &nbsp;proto kernel &nbsp;scope link &nbsp;src 192.168.1.5<br>
172.16.0.0/16 dev eth1 &nbsp;proto kernel &nbsp;scope link &nbsp;src 172.16.0.2<br>
127.0.0.0/8 via 127.0.0.1 dev lo &nbsp;scope link<br>
default via 172.16.0.254 dev eth1 &nbsp;metric 1<br>
<br>
I guess, what I need to know, is how do I set up my routing tables so<br>
that traffic coming and going along eth0 uses the default gateway of<br>
192.168.1.254 and traffic coming and going along eth1 uses the default<br>
gateway of 172.16.0.254?<br>
<br>
I can easily set up a 'default gateway', but I can only do one...so<br>
traffic coming in on 192.168.1.5 is still going out via<br>
172.16.0.254...<br>
<br>
I have a Windows 2003 server already working in this<br>
configuration...here is it's routing table:<br>
<br>
Active Routes:<br>
Network Destination &nbsp; &nbsp; &nbsp; &nbsp;Netmask &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;Gateway &nbsp; &nbsp; &nbsp; Interface &nbsp;Metric<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;0.0.0.0 &nbsp; &nbsp; 172.16.0.254 &nbsp; &nbsp; &nbsp; 172.16.0.3
&nbsp; &nbsp; 10<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;0.0.0.0 &nbsp;192.168.230.254 &nbsp; &nbsp;192.168.230.3 &nbsp; &nbsp;
10<br>
 &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp;255.0.0.0
&nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1 &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1
&nbsp; &nbsp; &nbsp;1<br>
 &nbsp; &nbsp; &nbsp; 172.16.0.0 &nbsp; &nbsp;255.255.255.0 &nbsp; &nbsp;
&nbsp; 172.16.0.3 &nbsp; &nbsp; &nbsp; 172.16.0.3 &nbsp; &nbsp; 10<br>
 &nbsp; &nbsp; &nbsp; 172.16.0.3 &nbsp;255.255.255.255 &nbsp; &nbsp; &nbsp;
&nbsp;127.0.0.1 &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1 &nbsp; &nbsp; 10<br>
 &nbsp; 172.16.255.255 &nbsp;255.255.255.255 &nbsp; &nbsp; &nbsp; 172.16.0.3
&nbsp; &nbsp; &nbsp; 172.16.0.3 &nbsp; &nbsp; 10<br>
 &nbsp; &nbsp;192.168.230.0 &nbsp; &nbsp;255.255.255.0 &nbsp; &nbsp;192.168.230.3
&nbsp; &nbsp;192.168.230.3 &nbsp; &nbsp; 10<br>
 &nbsp; &nbsp;192.168.230.3 &nbsp;255.255.255.255 &nbsp; &nbsp; &nbsp;
&nbsp;127.0.0.1 &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1 &nbsp; &nbsp; 10<br>
 &nbsp;192.168.230.255 &nbsp;255.255.255.255 &nbsp; &nbsp;192.168.230.3
&nbsp; &nbsp;192.168.230.3 &nbsp; &nbsp; 10<br>
 &nbsp; &nbsp; &nbsp; &nbsp;224.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp;240.0.0.0
&nbsp; &nbsp; &nbsp; 172.16.0.3 &nbsp; &nbsp; &nbsp; 172.16.0.3 &nbsp;
&nbsp; 10<br>
 &nbsp; &nbsp; &nbsp; &nbsp;224.0.0.0 &nbsp; &nbsp; &nbsp; &nbsp;240.0.0.0
&nbsp; &nbsp;192.168.230.3 &nbsp; &nbsp;192.168.230.3 &nbsp; &nbsp; 10<br>
 &nbsp;255.255.255.255 &nbsp;255.255.255.255 &nbsp; &nbsp; &nbsp; 172.16.0.3
&nbsp; &nbsp; &nbsp; 172.16.0.3 &nbsp; &nbsp; &nbsp;1<br>
 &nbsp;255.255.255.255 &nbsp;255.255.255.255 &nbsp; &nbsp;192.168.230.3
&nbsp; &nbsp;192.168.230.3 &nbsp; &nbsp; &nbsp;1<br>
Default Gateway: &nbsp; &nbsp; &nbsp;172.16.0.254<br>
<br>
Any help would be greatly appreciated...I'd really like to get this<br>
2003 server out and this new Linux server in it's place...<br>
<br>
Thanks,<br>
<br>
-Lucas<br>
_______________________________________________<br>
Kclug mailing list<br>
Kclug@kclug.org<br>
http://kclug.org/mailman/listinfo/kclug<br>
</tt></font>
<br>

<P><hr size=1></P>
<P><STRONG>
This e-mail and any attachments are intended only for the individual or
company to which it is addressed and may contain information which is
privileged, confidential and prohibited from disclosure or unauthorized use
under applicable law.  If you are not the intended recipient of this
e-mail, you are hereby notified that any use, dissemination, or copying of
this e-mail or the information contained in this e-mail is strictly
prohibited by the sender.  If you have received this transmission in error,
please return the material received to the sender and delete all copies
from your system.
</STRONG></P>
</BODY>
</HTML>