Re: [B.A.T.M.A.N.] Migration to Batman

Andrew Lunn
2012-04-13T07:43:23Z

On Fri, Apr 13, 2012 at 09:29:27AM +0200, Mitar wrote:
> Hi!
>
> On Fri, Apr 13, 2012 at 8:22 AM, Antonio Quartulli <ordex@autistici.org> wrote:
> > A little remark here. You MUST use interfaces that support ethernet frames
> > transmission. Therefore (IIRC) you can use tap interfaces but not tun ones.
>
> L2TP tunnel is creates a L2 tun interface, no?

First, of, lets make sure we are all using tun/tap correctly. I know i
keep having the check which is which.

http://en.wikipedia.org/wiki/TUN/TAP

TAP (as in network tap) simulates a link layer device and it
operates with layer 2 packets such as Ethernet frames. TUN (as
in network TUNnel) simulates a network layer device and it
operates with layer 3 packets such as IP packets. TAP is used
to create a network bridge, while TUN is used with routing.

So a tap interface can be added to BATMAN and become part of the L2
mesh.

tun cannot be added to batman. You need to perform L3 routing over the
interface.

Which implementation are you using of L2TP?

Andrew