How to configure linux routing/filtering to send packets out one interface, over a bridge and into another interface on the same box
Posted
by
rj75
on Server Fault
See other posts from Server Fault
or by rj75
Published on 2012-07-27T17:39:25Z
Indexed on
2013/06/27
22:23 UTC
Read the original article
Hit count: 162
I'm trying to test a ethernet bridging device. I have multiple ethernet ports on a linux box. I would like to send packets out one interface, say eth0 with IP 192.168.1.1, to another interface, say eth1 with IP 192.168.1.2, on the same subnet.
I realize that normally you don't configure two interfaces on the same subnet, and if you do the kernel routes directly to each interface, rather than over the wire. How can I override this behavior, so that traffic to 192.168.1.2 goes out the 192.168.1.1 interface, and visa-versa?
Thanks in advance!
© Server Fault or respective owner