Linux Netfilter discussions
 help / color / mirror / Atom feed
* Two NICs, same network...
@ 2007-05-08 20:17 semi linux
  2007-05-08 19:56 ` David Lang
  0 siblings, 1 reply; 10+ messages in thread
From: semi linux @ 2007-05-08 20:17 UTC (permalink / raw)
  To: netfilter

I've got an odd problem where I've got two NICs on the same network
and I want all traffic to one IP to go out one interface and all other
traffic to use the second interface.  I'm going to try an simplify my
actual setup, because a lot of it makes no difference to this post...

I know this has to be a iptables sort of setup since the routing table
can only make a difference on different networks and not based on
looking for a specific IP address.

The question is:

eth0 IP: 10.1.1.1
eth1 IP: 10.1.1.2

target: 10.1.1.3

(these IPs are just examples, there are no hard-fast rules surrounding
the other possibilities)

How do I make sure this goes out eth1 instead of eth0?  Do I use the
mangle rule with the physdev module?

I feel like I'm overlooking something or forgetting my basic network
ideas here...

- Gareth


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-01 11:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-08 20:17 Two NICs, same network semi linux
2007-05-08 19:56 ` David Lang
2007-05-08 21:02   ` semi linux
2007-05-08 20:29     ` David Lang
2007-05-08 22:39     ` Sébastien CRAMATTE
2007-05-09 13:27     ` Mark L. Wise
2007-05-24 20:12       ` semi linux
2007-05-31 22:16         ` semi linux
2007-05-31 22:41           ` Pascal Hambourg
2007-06-01 11:52           ` Tommy W

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox