2004-01-24 13:34:41

by Karel Kulhavy

[permalink] [raw]
Subject: Special promisc receive mode

Hello

I need to tell kernel that e. g. eth0 is a point-to-point link and that every
ethernet frame should be treated this way:
1) Replace destination MAC with MAC of the eth0 network card
2) Process as normally

I tried to set up promisc mode but it seems to not work - it looks like the
frames are intercepted, however are not treated as destinated for my host (are
not forwared etc.)

Cl<


2004-01-27 17:10:10

by Andy Lutomirski

[permalink] [raw]
Subject: Re: Special promisc receive mode

Try ebtables (http://ebtables.sourceforge.net/). You'll need to add
eth0 to a bridge first, though.

--Andy

Karel Kulhav? wrote:

> Hello
>
> I need to tell kernel that e. g. eth0 is a point-to-point link and that every
> ethernet frame should be treated this way:
> 1) Replace destination MAC with MAC of the eth0 network card
> 2) Process as normally
>
> I tried to set up promisc mode but it seems to not work - it looks like the
> frames are intercepted, however are not treated as destinated for my host (are
> not forwared etc.)
>
> Cl<
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/