> OK, I have two interfaces, one slow, one fast. I want to use the fast
> one as the default (obviously), but I need to have the other one
> available for some people that can only reach me through that one.
> How can I tell the machine to use the fast one by default. Am I
> correct in saying that if I nix the default route for the slow
> connection that people from the slow net that are not on the same
> subnet would not be able to contact me?
Use the iproute2 source-based routing commands.
You need to enable advanced routing and policy routing in the kernel. You also
need the iproute2 tools. If the command "ip rule" shows three rules, you're
set.
Then, assuming that a.a.a.a/x is the fast route on ethA and b.b.b.b/y is the
slow one on ethB with a gateway of c.c.c.c, you want to do something like the
following:
1) ensure that all normal traffic will go out the fast route
run "ip route" and make sure the default one is going via the fast gateway.
2) any traffic coming from the slow route gets sent back on it
ip rule add to b.b.b.b/y lookup 100
ip route add default via c.c.c.c dev ethB table 100
This says that any traffic going to the b.b.b.b/y subnet should look up routing
table number 100 (you've got 1-255, but three of them are already used by
default). Then in table 100 we've added a route for them to use, specified
which interface to use, and specified the next hop that they should take.
Chris