libremesh / lime-packages

LibreMesh packages configuring OpenWrt for wireless mesh networking
https://libremesh.org/
GNU Affero General Public License v3.0
276 stars 95 forks source link

Notes taken during BattleMesh v15 #1059

Open ilario opened 9 months ago

ilario commented 9 months ago

During Wireless BattleMesh v15 in Calafou, we had intense testing of LibreMesh compiled on top of OpenWrt 22.03. Details on the network and setup here: https://github.com/libremesh/network-profiles/tree/master/calafou

Here I copy and pasre bits from our chats, referring to various issues or desires identified during the event. Some maybe are false positives, others maybe have already been solved. We should double check them and convert the interesting ones in real tickets.

otherwise "hostapd_options" + https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf country is for the accesspoint itself. country_ie is the bits in the WiFi beacons

links with debugging info: dmesg: http://sprunge.us/qCQt8c logread: http://sprunge.us/nSVzzn lime-report: http://sprunge.us/SjXOCg

Marek mentioned that using the cheap Ubiquiti PoE could be a bad idea He says that the PlasmaCloud does not ask always for 48 V (it can, during load peaks), but it uses a standard PoE protocol for asking for a specific voltage. But the cheap PoE from Ubiquiti does not have that protocol and always provide 48 V. No idea if it is worth to replace the PoEs

found a temporary solution: disable auto-negotiation of the ethernet cable speed. The auto-negotiation was set it to 1 Gbps full duplex (that is what should work, as both devices and PoE are gigabit), but when we set it manually (disabling the auto-negotiation) to 1 Gbps full duplex it said "no-carrier". So we set it to 100 Mbps full duplex with no auto-negotiation everything works well. ethtool -s eth1 autoneg off speed 100 duplex full

as a tentative for having a stable "do not use gigabit on ethernet cable towards the fiber router" setting, I added this to the LibreMesh gateway node and in its network-profile https://github.com/libremesh/network-profiles/commit/26b79ec119c35c317bd572d62118fb7e89841a32

rebooting the router or restarting the /etc/init.d/network, resulted again in the 1000M ethernet speed. So the script is not working as expected. Or, is not working, as expected. Does anyone know how to debug /etc/hotplug.d scripts?

just as a dirty fix, I added the ethtool rule to /etc/rc.local, so it should be executed at boot. Hopefully not too soon

config net usingLANasWAN option linux_name 'eth1'
list protocols 'wan' list protocols 'static' option static_ipv4 '172.31.17.254/24' option static_gateway_ipv4 '172.31.17.1'