On Wed, Aug 07, 2013 at 12:58:32PM +0200, Fernando Pizarro wrote:
El 07/08/13 11:09, Antonio Quartulli escribió:
On Wed, Aug 07, 2013 at 10:58:13AM +0200, Fernando Pizarro wrote:
Hi all!
I'm playing with OpenWRT and BATMAN advance and I had configured one essid to serve dynamic vlans via freeradius reply attributes.
I have a bridge (br0) with bat0, wireless and ethernet interface, and hostapd creates a new bridge by vlan (brvlanX) with vlanX and wlan1.X succefully. Br0 has configured a VLAN and IP to connect with every other nodes. There is the same explanation, but schematic:
Wireless:
phy0 -> wlan0 -> bat0 phy1 -> wlan1 -> wlan1.1 \ --> wlan1.N
Hostapd bridge:
wlan1 -> brvlan1 -> {wlan1.1; vlan1} \ --> brvlanN -> {wlan1.N; vlanN}
Ethernet bridge:
br0 -> {bat0; eth0; wlan1} \ --> br0.X == IP/NETMASK
When I look at batman dat table there aren't any registry, but variuos stations are connected. Why is that? What's wrong in my config?
Hello Fernando,
I have to say that your setup is not the easiest I've ever seen :) However, the initial version of DAT was not made to work with VLANs, but I'm not entirely sure if this should lead to an empty table.
First of all, where are all your clients connected? to wlan1? Why did you put wlan1 into br0 and not wlan1.X? When your clients are doing traffic, can you see ARP Req/Resp on wlan1 (which is the interface in br0 that will inject then the data into bat0)?
Cheers,
Hi Antonio, thanks for your answer.
I explain a bit more my stage... I have a server with DHCP that is the default gateway of all BATMAN nodes and clients, and BATMAN gateways are connected to it fisically. For roamming, I won't have IPs of VLANs in BATMAN nodes and all default gateways of VLANs are configured in the FW.
if I understood correctly you have many nodes all connected with a cable to the same GW? so all the nodes are in the same LAN?
Clients connects to wlan1.X, but that interface is created by hostapd when radius allows access to the network of that client (default dynamic vlan behaviour). As hostapd creates this interface on demand and destroys it when is killed, I can't add wlan1.X to the bridge (br0). However, there is arp traffic on wlan1.
I guess the traffic you see on wlan1 is VLAN traffic which is going to be delivered to any of your wlan1.x.
I have the feeling in this way none of the client is really bridged into batman-adv because you bridged wlan1 but the clients are connected to wlan1.x. can you please report what "batctl tl" is saying?
Cheers,