From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] Problems with internet connection in a mesh-network, (and dhcp and wireless access)
Date: Fri, 03 Aug 2012 11:48:28 +0200 [thread overview]
Message-ID: <12564988.U0eif3lDW2@bentobox> (raw)
In-Reply-To: <CAMVTf1hm9Q8Ppu2Lq6h4+7OpvZ9meLYhxFKHFLhudD3LCTNXmg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3656 bytes --]
On Thursday 02 August 2012 19:35:34 Esteban Municio wrote:
> Hi all
>
> I wrote recently about problems with our batman-adv mesh
> implementation in a development proyect in Peru:
>
> https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2012-August/007820.html
>
> Now we are having problems again.
> Our mesh-network are formed with Ubiquiti nanostation M5 nodes running
> OpenWRT(10.03.x, r32751)+ Batman-adv 2.6.32.
batman-adv was not included in 2.6.32. We had our first version in 2.6.33. So,
this information is bogus. Please update to a recent version (for example
2012.2.0 + the updates from the maint branch; or just batman-adv-devel).
> In one of the nodes, the wan gate is connected with Public IP to
> internet and I can access to internet from there.
>
> But from a laptop(without batman-adv), I can make ping to all the
> nodes of the mesh, but i can't make ping to 8.8.8.8 neither the Ip
> public gateway. However, I can make ping to my Ip Public, in the
> interface wan of my gateway node.
>
> What am I doing wrong? I have tried to write static routes, but I
> think that the problem is about the mesh-bridge.
> Is it beacuse of i need do NAT?
It is hard to understand what you are doing and what you want. All you are
doing here is L3 stuff... so out of scope for batman-adv. batman-adv provides
only the l2 stuff (+ a dhcp routing hack when you enable the gateway stuff).
So you need to do the same stuff you are doing when you want to configure an
"internet gateway" for your private network. That usually includes
masquerading, dhcp, dns, ...
> All the nodes of the mesh can see themselves, and I set the node with
> the gateway to internet like the gateway of the mesh, but it does not
> work.
>
> Any help or comment?
Sry, my parser failed. Maybe someone else can help.
> That is my /etc/rc.local and /etc/config/network in the gateway node:
>
> /etc/rc.local
>
> wifi up
> ifconfig wlan0 mtu 1528
> batctl if add wlan0
> ifconfig wlan0 up
> ifconfig bat0 up
> brctl addbr mesh-bridge
> brctl addif mesh-bridge eth0
> brctl addif mesh-bridge bat0
> ifconfig eth0 up
> ifconfig bat0 up
> ifconfig mesh-bridge inet 1.1.1.1 netmask 255.255.255.0
> ifconfig mesh-bridge up
> exit 0
>
> /etc/config/network
>
> config 'interface' 'loopback'
> option 'ifname' 'lo'
> option 'proto' 'static'
> option 'ipaddr' '127.0.0.1'
> option 'netmask' '255.0.0.0'
>
> config 'interface' 'lan'
> option 'ifname' 'eth0'
> option 'proto' 'static'
> option 'ipaddr' '192.168.1.2'
> option 'netmask' '255.255.255.0'
>
> config 'interface' 'wan'
> option 'ifname' 'eth1'
> option 'proto' 'static'
> option 'ipaddr' my Ip public
> option 'netmask' '255.255.255.192'
> option 'gateway' my ip public gateway
> option 'dns' '8.8.8.8'
>
> config 'route'
>
> And some offtopic questions...
>
> What should i do for permit to others laptops without batman-adv can
> connect by wireless to the mesh, make another wlan interface with
> another ssid in ap mode and add it to the mesh-bridge?
Didn't you say that you are already doing something like that? At least you've
mentioned that that you are can connect with you non-mesh laptop. But yes,
you should have a second interface configured as AP attached to your mesh-
bridge to allow wireless clients connected to this interface to work like the
ethernet clients. It doesn't make much sense to have a non-batman-adv-aware
client connected on a interface that is attached as slave (hard) interface to
batman-adv.
At least the configuration looks a little bit like you are trying to do
something like this.
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-08-03 9:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 0:35 [B.A.T.M.A.N.] Problems with internet connection in a mesh-network, (and dhcp and wireless access) Esteban Municio
2012-08-03 9:48 ` Sven Eckelmann [this message]
2012-08-03 16:54 ` Esteban Municio
2012-08-03 17:41 ` Esteban Municio
2012-08-03 21:08 ` Sven Eckelmann
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=12564988.U0eif3lDW2@bentobox \
--to=sven@narfation.org \
--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