avoid ip forward replaces the source MAC address

John Mahoney jmahoney at waav.com
Tue Feb 1 14:39:10 EST 2011


On Tue, Feb 1, 2011 at 2:27 PM, Elvis Yoan Tamayo Mollares
<etmoyares at grm.uci.cu> wrote:
> hi list, during ip forwarding process, the kernel replace the source MAC
> address of the package it received with my own MAC address.. My question
> is: Is there any way to avoid this behavior?

That is what routing does at the ip layer.  You may be able to
accomplish this by bridging the two ports together so that the traffic
is handled at layer 2.


--
John



More information about the Kernelnewbies mailing list