From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] Batman advanced and internet gateways
Date: Wed, 7 Jul 2010 00:06:51 +0200 [thread overview]
Message-ID: <201007070006.51804.lindner_marek@yahoo.de> (raw)
In-Reply-To: <201007062346.43276.clemens-john@gmx.de>
On Tuesday, July 06, 2010 23:46:36 Clemens John wrote:
> Okay I did this but I have some questions left:
No problem. :)
> Does the DHCP server on the gateway need to distribute IP-Adresses?
The server should distribute IP addresses and a default route to itself. I'm
not sure whether you will find a dhcp server which does not distribute IPs but
default routes.
> If so I think they have to be distributet on the batman interface right?
Correct.
> Does the Batman advanced interface on the clients need to request an
> IP-Adress from the DHCP server or can I also set a static IP adress?
That depends on your needs. Any interface which is supposed to use the gateway
feature has to run a dhcp client. If the batX interface on the client does not
need it you can give it a static address. If you just want to define the IP
address of a specific host you can also work with aliases / multiple IPs per
interface.
> If the clients need to request an IP adress from the DHCP server, where is
> the difference between requesting an IP without Batman advanced and with
> Batman advanced? Does Batman advanced say from wich server to request the
> IP or which default route to choose?
Normal dhcp requests are broadcasted through the entire network. Every dhcp
server that receives this request will answer. If the client receives multiple
answers it depends on the implementation to choose its "favorite" dhcp server.
Most clients simply use the first server that answered.
If you enable the gateway client this request will not be broadcasted but
directly sent to the chosen gateway. The other dhcp servers will not receive
this dhcp request.
> Sry for this question we just discussed this on the last community meeting
> and somebody wondered if this is the most beautiful way. Maybe it´s not
> but you are right there is no other way.
We had this layer2/layer3 discussion quite often and this is the compromise we
managed to achieve. It only works when enabled and indirectly via dhcp. It is
not "beautiful" but it works. :)
> Okay but it will likely be usable without crashing right?
No, it should not crash. I'm using it on a daily basis without problems.
> How can I configure batman advanced in /etc/config/batman-adv to enable gw
> server/client mode?
Since it was not part of an official release it also is not supported by the uci
scripts. You would have add it yourself.
Regards,
Marek
next prev parent reply other threads:[~2010-07-06 22:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 17:47 [B.A.T.M.A.N.] Batman advanced and internet gateways Clemens John
2010-07-06 20:15 ` Marek Lindner
2010-07-06 21:46 ` Clemens John
2010-07-06 22:06 ` Marek Lindner [this message]
2010-07-06 22:21 ` Clemens John
2010-07-06 22:30 ` Marek Lindner
2010-07-06 23:45 ` Clemens John
2010-07-07 11:16 ` Marek Lindner
2010-07-07 11:25 ` Clemens John
2010-07-07 12:10 ` Marek Lindner
2010-07-07 12:33 ` Clemens John
2010-07-07 12:44 ` Antonio Quartulli
2010-07-07 13:49 ` Clemens John
2010-07-07 10:33 ` Clemens John
2010-07-07 10:50 ` Andrew Lunn
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=201007070006.51804.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/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