ÔÚ2009-12-15 19:51:04£¬"Marek Lindner" <lindner_marek@yahoo.de> Ð´µÀ£º
>On Tuesday 15 December 2009 17:35:28 wu xiaofei wrote:
>> Does batman-adv  support gateway ? Should all nodes' interfaces(batman-adv
>>  interface , non batman-adv interface) be in the same network(e.g.
>>  192.168.1.0/24)   or  use "HNA" to announce different networks? (some
>>  nodes have multi interfaces)
>> 
>> Olsrd can use "HNA" to announce  'non-olsrd interface' in different network
>>   from 'olsrd interface' , so other nodes know how to get to that network.
>> 
>> How to config the IP address of a node with two interfaces running
>>  batman-adv at the same time?
>
>
>Hey,
>
>are sure you want to know about batman-adv ? Advanced operates on layer 2 (mac 
>address layer) and does not care about IP addresses. If you want to let non-
>batman nodes join the network you simply bridge the interfaces. No (manual) 
>HNA settings are needed.
>

Thank you for your reply!
I just used olsrd. I am a newbie for BATMAN. I want to try it.

From open-mesh.net and your description I almost know batman-adv is on layer 2 . But some applications need IP addresses,
so use DHCP server to allocate IP address in the same network, or config manually?
Could you give me a guide document about setting and config steps of a mesh network (about 30 nodes) using batman-adv in detail.

in "README" :
# insmod batman-adv.ko
# echo wlan0 > /proc/net/batman-adv/interfaces
The module will create a new interface 'bat0'

What's the difference between 'wlan0' and 'bat0'?
Should I bridge the non-batman interface (e.g. eth0 ...) with
bat0 or wlan0 ? config the IP address of wlan0 , bat0 separately ?

--
Wu