public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Don Davis <dondavis@reglue.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] Batman 0.3 + Freifunk setup questions
Date: Mon, 28 Jul 2008 14:58:58 -0500	[thread overview]
Message-ID: <488E2502.4090907@reglue.org> (raw)
In-Reply-To: <20080717233621.GA10978@hrz.tu-chemnitz.de>


> Debug Level 2 will list the available gateways. There is no need to
> restart BATMAN, it will notice the new gateway available gateways 
> automatically (the gateways are announced with the BATMAN-packets). One
> of the gateways will be selected depending on the configuration at -r. 

I'm a little curious about setting up an init script for batmand 0.3
Using freifunk + batmand 0.3:

S97startnode.sh
#! /bin/sh
batmand eth1

Works fine for the nodes.  However,
S97startnode.sh
#! /bin/sh
batmand -r 3 eth1

does not find the gateway.  I thought the default routing class was 3 or 
would respond fastest but apparently not.

More of a concern though is writing an init script for a gateway.
S97gateway.sh
#! /bin/sh
batmand -g 5mbit eth1 vlan1


at best has to be killed and restarted for batmand to work; worst case 
scenario it freezes the router.  I need to find a way to get it to wait 
for the dhcp lease before starting (I guess).  Though doesn't the dhcp 
lease come after S99?

What about a script (much like watchout4batman which I haven't seen for 
batman 0.3) that can be run as a cronjob that does two things 1) makes 
sure batmand is up and running 2) if an interface is available on vlan1 
(or whatever the wan port is on) then restart batmand and announce the 
node as a gateway?

For a gateway is there any advantage to
batmand -g 5mbit eth1 vlan1
over
batmand -g 5mbit eth1?



      reply	other threads:[~2008-07-28 19:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17 15:10 [B.A.T.M.A.N.] Batman 0.3 + Freifunk setup questions Don Davis
2008-07-17 16:48 ` Don Davis
2008-07-17 17:03   ` Vinay Menon
2008-07-17 17:32     ` Don Davis
2008-07-17 18:36   ` Don Davis
2008-07-17 20:13     ` Don Davis
2008-07-17 22:07       ` Simon Wunderlich
2008-07-17 22:33         ` Don Davis
2008-07-17 23:36           ` Simon Wunderlich
2008-07-28 19:58             ` Don Davis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=488E2502.4090907@reglue.org \
    --to=dondavis@reglue.org \
    --cc=b.a.t.m.a.n@open-mesh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox