public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Does batman-adv  support gateway ?
@ 2009-12-15  9:35 wu xiaofei
  2009-12-15 11:51 ` Marek Lindner
  0 siblings, 1 reply; 4+ messages in thread
From: wu xiaofei @ 2009-12-15  9:35 UTC (permalink / raw)
  To: b.a.t.m.a.n

[-- Attachment #1: Type: text/plain, Size: 498 bytes --]


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?


--
Wu


[-- Attachment #2: Type: text/html, Size: 605 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [B.A.T.M.A.N.] Does batman-adv  support gateway ?
  2009-12-15  9:35 [B.A.T.M.A.N.] Does batman-adv support gateway ? wu xiaofei
@ 2009-12-15 11:51 ` Marek Lindner
  2009-12-15 17:13   ` wu xiaofei
  0 siblings, 1 reply; 4+ messages in thread
From: Marek Lindner @ 2009-12-15 11:51 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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.

If you are interested in the batman daemon (layer 3 - ip layer) I suggest you 
read through our documentation: http://www.open-mesh.net/wiki/UserDocs

Regards,
Marek

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [B.A.T.M.A.N.] Does batman-adv  support gateway ?
  2009-12-15 11:51 ` Marek Lindner
@ 2009-12-15 17:13   ` wu xiaofei
  2009-12-15 20:50     ` Simon Wunderlich
  0 siblings, 1 reply; 4+ messages in thread
From: wu xiaofei @ 2009-12-15 17:13 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 1683 bytes --]






在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

[-- Attachment #2: Type: text/html, Size: 2643 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [B.A.T.M.A.N.] Does batman-adv  support gateway ?
  2009-12-15 17:13   ` wu xiaofei
@ 2009-12-15 20:50     ` Simon Wunderlich
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Wunderlich @ 2009-12-15 20:50 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]

Hello Wu,

you can set an IP address on the bat0 interface, or include it in a bridge 
with eth0 or other devices which are not used for the mesh. You might as well
use DHCP to provide addresses to your nodes (which is not possible with layer 3
daemons, btw). You don't need to set IP addresses of the "base interfaces" 
which are used by batman - just make sure they are up (ifconfig wlan0 up).
The bat0 interface can be used like any other ethernet-compatible network
interface - you can consider it as port to a virtual distributed switch.

best regards,
	Simon

On Wed, Dec 16, 2009 at 01:13:47AM +0800, wu xiaofei wrote:
> 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

> _______________________________________________
> B.A.T.M.A.N mailing list
> B.A.T.M.A.N@lists.open-mesh.net
> https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-15 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15  9:35 [B.A.T.M.A.N.] Does batman-adv support gateway ? wu xiaofei
2009-12-15 11:51 ` Marek Lindner
2009-12-15 17:13   ` wu xiaofei
2009-12-15 20:50     ` Simon Wunderlich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox