public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven.eckelmann@gmx.de>
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 Gateway
Date: Thu, 3 Jul 2008 16:47:14 +0200	[thread overview]
Message-ID: <200807031647.18156.sven.eckelmann@gmx.de> (raw)
In-Reply-To: <486CD741.3050008@csp.it>

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).

> 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

  reply	other threads:[~2008-07-03 14:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27 12:28 [B.A.T.M.A.N.] BATMAN ADVANCED KERNEL LAND LOOP cipollone
2008-07-02 13:01 ` [B.A.T.M.A.N.] " Simon Wunderlich
2008-07-03 13:42   ` [B.A.T.M.A.N.] BATMAN Gateway cipollone
2008-07-03 14:47     ` Sven Eckelmann [this message]
2008-07-03 15:35     ` Simon Wunderlich

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=200807031647.18156.sven.eckelmann@gmx.de \
    --to=sven.eckelmann@gmx.de \
    --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