Thanks for the quick reply. I didn't mention my bridge setup because it didn't work, but what I was doing was essentially following the quick-start-guide. In this case I did not assign IP to bat0, but created a bridge called mesh-bridge and added wlan0 and bat0 to it. I also used udhcp to configure the addresses assigned to clients of the access points.
I will try this, and I appreciate the help.
Adam
--- On Tue, 8/7/12, Sven Eckelmann sven@narfation.org wrote:
From: Sven Eckelmann sven@narfation.org Subject: Re: [B.A.T.M.A.N.] trouble setting up my mesh To: b.a.t.m.a.n@lists.open-mesh.org Cc: "adam wiz" gibsonsg91921@yahoo.com Date: Tuesday, August 7, 2012, 1:33 PM On Tuesday 07 August 2012 10:18:13 adam wiz wrote:
I am having some trouble setting up batman-adv for my
mesh. I can get each
access point to see the other using "batctl o" but I am
not able to route
messages between my client devices. I think there is
something wrong with
my bridging.
[...]
In setting up batman-adv, I run these commands:
sudo modprobe batman-adv sudo batctl if add eth0 sudo batctl if add wlan1 sudo ifconfig eth0 0.0.0.0 mtu 1528 sudo ifconfig wlan1 0.0.0.0 mtu 1528 sudo ifconfig bat0 10.50.0.x (x being a unique number
for each access point)
netmask 255.255.0.0 up
What brigde? I don't see a single bridge here. Only an ethernet device, wlan device and a batman device that contains both. The bat0 device has an ip... so I would doubt that you added it to a bridge.
I would guess that you wanted to do something like this (I just assume that br0 is already created through hostapd and includes wlan0... you have to ensure that this is done):
sudo modprobe batman-adv sudo batctl if add eth0 sudo batctl if add wlan1 sudo ip addr flush dev eth0 sudo ip addr flush dev wlan1 sudo ip link set dev eth0 mtu 1528 sudo ip link set dev wlan1 mtu 1528 sudo brctl addif br0 bat0 sudo ip link set dev bat0 up sudo ip addr add 10.50.0.x/24 dev br0 sudo ip link set dev br0 up
Kind regards, Sven