OpenWrt Forum Archive

Topic: Mesh networking for noob

The content of this topic has been archived on 4 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I got 3 router running the last version of OpenWRT.
I'm trying to create a mesh network like this:

Client A <-> NODE 1 <-> NODE 2 <-> NODE 3 <-> Server

I try to implement this with the 802.11s protocol but i can't get it working.
I followed the instructions on this page https://wiki.openwrt.org/doc/howto/mesh.80211s and it was not working at all.
Then i followed the instruction on this page https://github.com/o11s/open80211s/wiki/HOWTO and i was able to "see" the other node, but my client wasn't able to communicate with my server.
Does anyone have a good explanation/tutorial on how to implement a mesh network ?

Thanks

Hi Mark,

I've recently set up a mesh using 802.11s and BMX6, Would you mind telling me what hardware you're using, and I might be able to help you out. My basic process (after using one of trondah's LuCi builds, here: http://luci.subsignal.org/~trondah/) is the following. Let me know if you need any clarifications, I just sort of  threw this together. Obviously the part about ath10k is only relevant if your hardware uses ath10k. It sounds like you already figured out how to get the 802.11s protocol functioning on your device, so you can probably ignore that step.


opkg update

(this is to install bmx6. If your kernel is older and can't use bmx7, replace bmx7 in the following line with bmx6)
opkg install bmx7 bmx7-uci-config

vi /etc/config/wireless

NOW replace the contents of “wifi-iface” after radio0 with:
config wifi-iface 'mesh'
option device 'radio0'
option ifname 'mesh'
option network 'mesh'
option mode 'mesh'
option mesh_id 'OpenWrt'
option disabled '0'
option mcast_rate '18000'
option mesh_ttl 1
option mesh_fwding 0
option encryption 'none'

quit out and then:
(only do this if you're using ath10k. Sounds like you maybe don't need this)
vi /etc/modules.d/55-ath10k

replace the contents of that file with:
ath10k_core rawmode=1
ath10k_pci

quit out again, reboot, and then:

killall bmx6
bmx6 dev=mesh

and you should be up and running!

Hi zsherin
It's an old post, but there is not mush info on openwrt and bmx6.
I've been able to setup an 802.11s network with authsae using 1 meshgate as DHCP server. It works, but not very stable. Especially when adding more nodes (more than 10). Although the MPs seem to be able to reach the MG, the MG cannot ping the node in return most of the time. So I was looking for an alternative and came across this post.

You have BMX6 running on top 802.11s working. When I try your instruction above it does not result i a working network. So I have some questions.
- do you use static IP(4) addresses or DHCP?
- How does your /etc/config/network look like?

I'm using Atheros AR9331 based boards (/trunk/ar71xx/generic) for a sensor network. There are only MPs and 1 MG. No 'normal' clients.

Thanks is advance.

(Last edited by Thedor on 29 Jun 2017, 14:21)

The discussion might have continued from here.