Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:informatique:linux:mesh_network:index [2023/01/01 08:41] – [Ubuntu Script] f1sls | documentation:informatique:linux:mesh_network:index [2023/01/03 12:53] (Version actuelle) – [Ubuntu Script] f1sls | ||
---|---|---|---|
Ligne 14: | Ligne 14: | ||
* {{ : | * {{ : | ||
- | ==== Ubuntu Script ==== | ||
- | <code bash> | ||
- | # | ||
- | # ------------------------------------------------------------------------------ | ||
- | # BATMAN-ADV starting script | ||
- | # ------------------------------------------------------------------------------ | ||
- | # Author | ||
- | # Date : 2022-12-26 | ||
- | # Last Revision : 2023-01-01 | ||
- | # ------------------------------------------------------------------------------ | ||
- | # Based on : https:// | ||
- | # ------------------------------------------------------------------------------ | ||
- | # First command line argument = which wifi interface will be used for the mesh network | ||
- | WLAN=" | ||
- | |||
- | # Second command line argument = what IP/MASK for the mesh network interface (bat0) | ||
- | IPADDRESS=" | ||
- | |||
- | # Activates the interfaces for batman-adv | ||
- | sudo ip link set " | ||
- | |||
- | # Stop " | ||
- | # (needed to be able to " | ||
- | # wifi interface with iwconfig) | ||
- | sudo service network-manager stop | ||
- | |||
- | # WiFi config | ||
- | sudo iwconfig " | ||
- | sudo iwconfig " | ||
- | sudo iwconfig " | ||
- | sudo iwconfig " | ||
- | sudo iwconfig " | ||
- | |||
- | # Start " | ||
- | sudo service network-manager start | ||
- | |||
- | # Tell batman-adv which interface to use | ||
- | sudo batctl if add " | ||
- | |||
- | # bat0 is created via the first command | ||
- | sudo ip link set bat0 up> | ||
- | |||
- | # Configure IP address for bat0 | ||
- | sudo ip a add " | ||
- | </ | ||
===== SUBNODES-LIGHTTPD ===== | ===== SUBNODES-LIGHTTPD ===== | ||
// Captive portal + mesh node // | // Captive portal + mesh node // |