[WIFI] MESH NETWORK []

Outils pour utilisateurs

Outils du site


[WIFI] MESH NETWORK

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
documentation:informatique:linux:mesh_network:index [2023/01/01 09:48] – [Ubuntu Script] f1slsdocumentation:informatique:linux:mesh_network:index [2023/01/03 12:53] (Version actuelle) – [Ubuntu Script] f1sls
Ligne 14: Ligne 14:
   * {{ :documentation:informatique:linux:mesh_network:how_to_setup_a_raspberry_pi_ad-hoc_network_using_batman-adv_on_raspbian_stretch_by_tyler_doll_medium.pdf |How to Setup a Raspberry Pi Ad-Hoc Network Using BATMAN-ADV on Raspbian Stretch}}   * {{ :documentation:informatique:linux:mesh_network:how_to_setup_a_raspberry_pi_ad-hoc_network_using_batman-adv_on_raspbian_stretch_by_tyler_doll_medium.pdf |How to Setup a Raspberry Pi Ad-Hoc Network Using BATMAN-ADV on Raspbian Stretch}}
  
-==== Ubuntu Script ==== 
-<code bash> 
-#!/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 
- 
-# Clean exit 
-exit 0 
-</code> 
 ===== SUBNODES-LIGHTTPD ===== ===== SUBNODES-LIGHTTPD =====
 // Captive portal + mesh node // // Captive portal + mesh node //
documentation/informatique/linux/mesh_network/index.1672562881.txt.gz · Dernière modification : de f1sls