OpenWrt Forum Archive

Topic: Mesh Network

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

Anyone is using mesh network? Can you share how you set it up?

Good morning Ckm!
This configuration can be used on any devices?
Thank you
Gep..

If you have compatible hardware (Atheros, especialy ath9k, or Ralink/MediaTek), the 802.11s mesh is built in to the driver and mostly built into the UCI system.  However you will need to edit config files manually rather than using LUCI.

All the routers that you want to mesh must be set to the same wifi channel.  Set the channel in the wifi-device block with the common radio parameters.

Create a mesh interface in /etc/config/wireless.  It is almost exactly like an AP interface except you use mode 'mesh' and option mesh_id '<id>' instead of option ssid (this is the thing that trips up LUCI).  All of your mesh nodes must have the same mesh_id.  For a public mesh you invite anyone to join, it is traditional to use 'mesh' as the mesh_id.

The simplest way to use a mesh is to bridge the mesh interfaces into the lan network.  This makes the system work equivalently to having wired the lan ports of the routers to each other with ethernet cable.  So you can open an AP interface on a remote node also bridged into the LAN, and anyone who connects to that AP will get their DHCP and Internet access from the main router, via the mesh.

The nodes should find and connect to each other automatically.  You can use 'iw dev <device> mpath dump' to see if any mesh paths have been established.  This will show the MAC addresses of all the mesh nodes that are reachable, and how good the connectivity is between them.

Start by testing with an unsecured mesh.  Once you know that works, you can secure the mesh with the authsae protocol.  Authsae is based on all authorized mesh nodes having been configured with the same pre-shared key.    Install the 'authsae' package (which is rather large for 4MB flash routers due to also needing a SSL library).  Configure security by adding the lines:

    option encryption authsae
    option key '<pre-shared key>'

to your mesh interface in /etc/config/wireless.

I have found the ath10k driver works with an unsecured mesh but crashes severely trying to secure.

(Last edited by mk24 on 18 Jan 2017, 15:55)

The discussion might have continued from here.