I've recently invested in a number of Carambola2-I modules (Carambola2-I initial setup) to attempt to set up a mesh network. As this is my first attempt, and I have no previous knowledge on the subject, I rely (mostly) on tutorials. At the moment I'm attempting to create a setup with two devices, but five more should be arriving shortly, and be added to the mesh thereafter.
I've managed to install the (at the time) latest version of OpenWrt on the devices (18.06.4) and BATMAN following the guide on the OpenWrt website (https://openwrt.org/docs/guide-user/network/wifi/mesh/batman?rev=1555021785). Using the batctl n command I have confirmed that the two nodes are able to see each other.
Now I'm down to (what I believe to be) the last step: routing (useful) traffic over the mesh network. If I connect to clients to one node, they both get assigned an IP address and are able to talk to (ping) each other. When I connect one client to one node, and the other to another, they both get assigned an IP address, but aren't able to communicate. I'm assuming I have to set up some kind of VLAN/bridge to route the traffic from the WiFi interface to the mesh, but have no idea how. I'm also figuring that, if one client connects to one node, and the other to another, they could technically get assigned the same IP address. I assume this means I should define one node as the DHCP server, and disable the functionality on all others. Should I set the nodes to be in a static range (and assign them all a static IP), and allow clients only a specific portion of IP addresses using one DHCP server?
My current configuration:
config wifi-device 'radio0' option type 'mac80211' option hwmode '11g' option path 'platform/ar933x_wmac' option htmode 'HT20' option disabled '0' option channel '1' option country 'US' option legacy_rates '1' config wifi-iface 'default_radio0' option device 'radio0' option network 'lan' option mode 'ap' option encryption 'none' option ssid 'firebot-node-001' config wifi-iface 'mesh0' option device 'radio0' option ifname 'mesh0' option network 'nwi_mesh0' option mode 'mesh' option mesh_fwding '0' option mesh_id 'firebot-mesh' option encryption 'none'
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd16:e8f1:3b01::/48' config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' config interface 'wan' option ifname 'eth1' option proto 'dhcp' config interface 'wan6' option ifname 'eth1' option proto 'dhcpv6' config interface 'wwan' option proto 'dhcp' config interface 'nwi_mesh0' option ifname 'mesh0' option proto 'batadv' option mesh 'bat0' # option routing_algo 'BATMAN_IV' option mtu '2304'