avoid ip forward replaces the source MAC address

Bernd Petrovitsch bernd at petrovitsch.priv.at
Wed Feb 2 07:16:24 EST 2011


On Die, 2011-02-01 at 14:27 -0500, Elvis Yoan Tamayo Mollares 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?

Do not route (on IP-level/OSI layer 3) but switch only (on MAC level/OSI
layer 2).
Of course that has other implications and can't be done always ...

Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
                     LUGA : http://www.luga.at




More information about the Kernelnewbies mailing list