For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Multiple Default Gateways

Multiple Default Gateways

Created by dave. Last edited by dave, 17 years and 127 days ago. Viewed 5,923 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Multiple Default Gateways

Scenario: two ip interfaces, one is xxx.yy.234.131, one is aaa.bbb.80.144. How do we apply a default gateway for each interface?

Note: This isn't an answer, just some text I copied from a list which may be interesting when the scenario actually happens.

>>http://lists.debian.org/debian-isp/2002/08/msg00143.html

# ip rule add from xxx.yy.234.131 lookup 1
# ip route add 0/0 via xxx.yy.234.129 table 1
# ip rule add from aaa.bbb.80.144 lookup 2
# ip route add 0/0 via aaa.bbb.80.130 table 2
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt