Skip to contentSkip to conversation

BATMAN ADVANCED KERNEL LAND LOOP

B.A.T.M.A.N. cipollone 3 participants 5 messages Jun 27, 2008 – Jul 3, 2008

lore
Share & tools
lore

cipollone

author
#0 lore raw

Hi,

I'm testing BATMAN Advanced Kernel Land and I've found a problem. I'm using BATMAN-adv over OpenWRT.

My test is:

3 virtual machine
2 Ethernet card for each virtual machine
3 Vlan

So we have a loop and I hoped that BATMAN solve this but...

What's happen is that each virtual machine can send message to itself using the 2 interface.
It passes because the BATMAN message are re-broadcasted and at a certain point 1 of machine start to communicate only with itself, disappearing from the network.

I need helppp!!!

Paolo Cipollone

#1 lore raw

Hey,

Just as an update for other people interested in batman-advanced: Paolo and me were hunting the bug(s) in private, and these issues should be resolved with rev1090.

Thank you again for reporting and testing, Paolo!
Simon

Quoted 23 lines · cipollone

Hi,

I'm testing BATMAN Advanced Kernel Land and I've found a problem. I'm using BATMAN-adv over OpenWRT.

My test is:

3 virtual machine
2 Ethernet card for each virtual machine
3 Vlan

So we have a loop and I hoped that BATMAN solve this but...

What's happen is that each virtual machine can send message to itself using the 2 interface.
It passes because the BATMAN message are re-broadcasted and at a certain point 1 of machine start to communicate only with itself, disappearing from the network.

I need helppp!!!

Paolo Cipollone

author
#2 lore raw

[B.A.T.M.A.N.] BATMAN Gateway

Hi,

I want to know how work and what I have to configure the kernel module of BATMAN Gateway. I'm using OPENWRT and I haven't found paper that describe this kernel module (usage, configuration, how work).

Someone could help me?

Thanks

Paolo Cipollone

#3 lore raw

Re: [B.A.T.M.A.N.] BATMAN Gateway

Quoted 2 lines · On Thursday 03 July 2008 15:42:25 cipollone wrote:

I want to know how work and what I have to configure the kernel module of BATMAN Gateway.

Hm, I am not really sure if I understood it right - you want to use batman advanced to access another network (internet....), correct?
Just insmod it everywhere, add outgoing interface to /proc/net/batman- adv/interfaces and let one machine (router to the internet for example) play the dhcpd. This machine should only deliver new ip addresses to the other machines and inform everyone else that they should use his ip as default router. Then you must know if you want to use it as nat or as normal router ( just enable ipv4_forward).
So it is just the same procedure as building a normal openwrt router/gateway with the small difference that all "clients" are talking over the bat0 interface instead of the wlanX/ethY interface. It is nearly the same as configuring a normal openwrt. So parts of
http://wiki.openwrt.org/OpenWrtDocs/Configuration can be used.

Setting up the wifi should be the same as always:
wlanconfig ath0 create wlandev wifi0 wlanmode adhoc iwconfig ath0 essid testnet
iwconfig ath0 ap 02:00:de:ad:be:ef
iwconfig ath0 channel 10
ifconfig ath up
insmod batman-adv-core
echo "ath0" > /proc/net/batman-adv/interfaces

(maybe I got it right... don't have the hardware to test it now).

Quoted 2 lines

I'm using OPENWRT and I haven't found paper that describe this kernel module (usage, configuration, how work).

http://tinyurl.com/6dbws8
But I am relative sure that you have read it because you have reported a bug when somebody tries to add new interfaces to /proc/net/batman-adv/interfaces.

Please ask a little more specific if I didn't answer your question. And feel free to write your setup down (small howto or so) so other people can access you knowledge afterwards (maybe marec can add it to the trac wiki).

Sven

#4 lore raw

Re: [B.A.T.M.A.N.] BATMAN Gateway

In reply to cipollone

Hello,

please note that the BATMAN Gateway module has nothing to do with batman-advanced (user/kernelspace). The BATMAN Gateway module can be used to accelerate the BATMAN Layer 3 (and only Layer 3) Gateway functionality. BATMAN will automagically detect the kernel module and use it if its available.
But you will have the same functionality without the kernel module, just slower. :)

best regards,
Simon

Quoted 16 lines · cipollone

Hi,

I want to know how work and what I have to configure the kernel module of BATMAN Gateway. I'm using OPENWRT and I haven't found paper that describe this kernel module (usage, configuration, how work).

Someone could help me?

Thanks

Paolo Cipollone

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://list.open-mesh.net/mm/listinfo/b.a.t.m.a.n