You may be able to do something with the 'ip' command. In particular, I think you need to do some googling for "source routing" or something similar.<br><br>Typically you can only have one active default gateway and you need to use something like BGP so your box knows which route is the shortest to a destination. Either that, or you'll have to manually pick which route a particular subnet takes.
<br><br>Is this primarily for incoming or outgoing traffic? If it's outgoing, you can probably do some load sharing. If it's incoming, you'll probably want to rethink what you're doing.<br><br><div><span class="gmail_quote">
On 11/22/06, <b class="gmail_sendername">Matthew Martz</b> <<a href="mailto:mdmartz@gflug.net">mdmartz@gflug.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm in need of installing two NICs in a machine that are connected to 2<br>different public networks and I need both IP addresses accessible from the<br>outside.  The IPs are part of two completely different subnets.<br><br>
For example:<br>eth0<br>     IP - <a href="http://10.10.10.2/30">10.10.10.2/30</a><br>     GW - <a href="http://10.10.10.1">10.10.10.1</a><br><br>eth1<br>     IP - <a href="http://20.20.20.6/30">20.20.20.6/30</a><br>     GW - 
<a href="http://20.20.20.5">20.20.20.5</a><br><br>How can I configure 2 gateways on this server?<br><br>Thanks!<br>--<br>Matthew Martz<br>CentOS Mirror Admin<br><a href="mailto:mdmartz@gflug.net">mdmartz@gflug.net</a><br>
<br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos
</a><br></blockquote></div><br>