From mboxrd@z Thu Jan 1 00:00:00 1970 From: c.aeschlimann@acn-group.ch (Christophe Aeschlimann) Date: Wed, 02 Feb 2011 10:16:03 +0100 Subject: avoid ip forward replaces the source MAC address In-Reply-To: References: <4D485EBD.6070308@grm.uci.cu> Message-ID: <4D4920D3.20103@acn-group.ch> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 01.02.2011 20:39, John Mahoney wrote: > On Tue, Feb 1, 2011 at 2:27 PM, 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? > > 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. Indeed, have a look at : http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge > -- > John -- Christophe Aeschlimann Embedded Software Engineer ACN Advanced Communications Networks S.A. Rue du Puits-Godet 8a 2000 Neuch?tel, Switzerland T?l. +41 32 724 74 31 c.aeschlimann at acn-group.ch