7

Adding a route to specific host go out a specific interface

view full story
linux-howto

http://serverfault.com – I have a Red Had Linux machine with two NICs: eth0 - 10.0.1.253 | 255.0.0.0 eth1 - 10.0.1.1 | 255.255.255.0 So the first one is on a class A subnet, the second is on a class C subnet. This is what my routing table looks like: Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.1.0 * 255.255.255.0 U 0 0 0 eth1 link-local * 255.255.0.0 U 1002 0 0 eth0 10.0.0.0 * 255.0.0.0 U 0 0 0 eth0 default 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 The two NICs are connected to separate phys (HowTos)