[WIFI] MESH NETWORK []

Outils pour utilisateurs

Outils du site


[WIFI] MESH NETWORK

Ceci est une ancienne révision du document !


[WIFI] MESH NETWORK

BATMAN

B.A.T.M.A.N. (Better Approach To Mobile Ad-hoc Networking) is a routing protocol for multi-hop ad-hoc mesh networks.

BATMAN-ADV

Ubuntu Script

#!/usr/bin/env	bash
# ------------------------------------------------------------------------------
# BATMAN-ADV starting script
# ------------------------------------------------------------------------------
# Author        : Stan./F1SLS
# Date          : 2022-12-26
# Last Revision : 2023-01-01
# ------------------------------------------------------------------------------
# Based on : https://medium.com/@tdoll/how-to-setup-a-raspberry-pi-ad-hoc-network-using-batman-adv-on-raspbian-stretch-lite-dce6eb896687
# ------------------------------------------------------------------------------
 
# First command line argument = which wifi interface will be used for the mesh network
WLAN="$1"
 
# Second command line argument = what IP/MASK for the mesh network interface (bat0)
IPADDRESS="$2"
 
# Activates the interfaces for batman-adv
sudo ip link set "$WLAN" up
 
# Stop "network-manager"
# (needed to be able to "manually" config the
# wifi interface with iwconfig)
sudo service network-manager stop
 
# WiFi config
sudo iwconfig "$WLAN" mode Ad-Hoc
sudo iwconfig "$WLAN" essid hamlan-mesh
sudo iwconfig "$WLAN" channel 1
sudo iwconfig "$WLAN" ap 02:12:34:56:78:9A
sudo iwconfig "$WLAN" rate 54M
 
# Start "network-manager"
sudo service network-manager start
 
# Tell batman-adv which interface to use
sudo batctl if add "$WLAN"
 
# bat0 is created via the first command
sudo ip link set bat0 up>
 
# Configure IP address for bat0
sudo ip a add "$IPADDRESS" dev bat0

SUBNODES-LIGHTTPD

OLSR

documentation/informatique/linux/mesh_network/index.1672558863.txt.gz · Dernière modification : de f1sls