From: HeXiLeD <hexiled@nixbits.net>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] Internet gateway or not: dhcp or static ip?
Date: Wed, 18 Jul 2012 21:34:16 -0400 [thread overview]
Message-ID: <50076418.80907@nixbits.net> (raw)
In-Reply-To: <50076056.4050907@versatic.net>
Have you tried to set every node with static ip but also providing dhcp
server to a range of ips ?
For example: node 1 from 192.168.1.1 to 192.168.1.10 then node 2:
192.168.1.11 to 192.168.1.20 and so on.
On 07/18/2012 09:18 PM, Geneviève Bastien wrote:
> Hi!
>
> I had a chat the other day on IRC about how to assign ip addresses
> whether there is an internet gateway available or not.
>
> Here is the problem and the solution I came up with. Let me know if that
> makes sense or if I'm complicating my life.
>
> * Problem *
>
> Our network is still small, there may or may not be an internet gateway
> available on it, it doesn't matter. From what I read here
> http://www.open-mesh.org/projects/batman-adv/wiki/Gateways for nodes to
> have access to the internet, the internet gateway has to be a dhcp server.
>
> The node requests an ip by dhcp and then knows what the default route
> is. But if the gateway disappears, there is no more dhcp server, the
> nodes do not have ip addresses and the mesh network is about useless.
>
> But if I set nodes with static ips, then the mesh is routable all the
> time, but nodes do not know the default route to reach the internet.
>
> Am I right so far?
>
> * Solution *
>
> Someone on irc pointed me out to this page:
> http://www.open-mesh.org/projects/batman-adv/wiki/Uevent
> I use this uevent to send a dhcp request if a gateway becomes available
> or go back to a static ip if all gateways are gone.
>
> Attached is the hotplug script I use. It is in
> /etc/hotplug.d/net/99-batman-adv-gw. It supposes the interface is
> configured by default with a static ip.
>
> It works perfectly, but I can't believe there is no simpler solution to
> this. Our problem should be a quite common one. What is the general
> solution to it?
>
> Thanks,
> Geneviève
next prev parent reply other threads:[~2012-07-19 1:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-19 1:18 [B.A.T.M.A.N.] Internet gateway or not: dhcp or static ip? Geneviève Bastien
2012-07-19 1:34 ` HeXiLeD [this message]
2012-07-19 1:35 ` Guido Iribarren
2012-07-19 13:57 ` Geneviève Bastien
2012-07-19 21:28 ` Guido Iribarren
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=50076418.80907@nixbits.net \
--to=hexiled@nixbits.net \
--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