>      I am using bering box with 1.0 Stable. At my "NET" interface, I have
> two router (rt1 and rt2). I would like to set my bering box to route like
> this could it be possible?
>         - From my local netwok, I would like to route it to rt1
>         - From my dmz network, I would lik to route it to rt2
>

Hi Thitiporn

You need a combination of "ip route" and "ip rule" commands, as described
e.g. on
http://www.perlfu.co.uk/stuff/documentation/iproute2/ip-cref.pdf

For information about multiple links, see
http://lartc.org/howto/lartc.rpdb.multiple-links.html

This file tells you how to set up multiple routeing tables:
  ip route add $P1_NET dev $IF1 src $IP1 table T1
  ip route add default via $P1 table T1
  ip route add $P2_NET dev $IF2 src $IP2 table T2
  ip route add default via $P2 table T2

Table T1 is for the first provider, T2 for the second

Set up default and local rules:
  ip route add default via $P1

  ip rule add from $IP1 table T1
  ip rule add from $IP2 table T2

You then need rules to tell when to use which table, e.g.
    ip rule add from $LOCAL_NET table T1
    ip rule add from $DMZ_NET   table T2

Take the time to read the second link and experiment. If you don't get it
up, I'll come over for a holiday and help you :-) I'd love to go to Thailand
again.

Cheers
Alex



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to