public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Problems with internet connection in a mesh-network, (and dhcp and wireless access)
@ 2012-08-03  0:35 Esteban Municio
  2012-08-03  9:48 ` Sven Eckelmann
  0 siblings, 1 reply; 5+ messages in thread
From: Esteban Municio @ 2012-08-03  0:35 UTC (permalink / raw)
  To: b.a.t.m.a.n

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

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?

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?

 With ethernet all works fine, the problem is without wire...
Should I check the dhcp in order to the laptops can connect directly
to the mesh network? How could I configurate it?


Thanks you very much and regards

-- 
Esteban

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-03 21:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-08-03 16:54   ` Esteban Municio
2012-08-03 17:41     ` Esteban Municio
2012-08-03 21:08       ` Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox