Difference between revisions of "Mesh/Relay setup"

Jump to navigation Jump to search
245 bytes added ,  13:26, 8 February 2018
no edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
This page is outdated and is kept for our communal scrapbook. Please use https://github.com/sudomesh/exitnode for a more up-to-date info.
Relay nodes are Internet connected hosts that allow mesh nodes to talk to each other using batman-adv over the Internet. Mesh nodes connect to relay nodes using a type of layer 2 tunnel called [http://en.wikipedia.org/wiki/L2TP L2TP]. The software used to establish these tunnels is called [https://github.com/wlanslovenija/tunneldigger tunneldigger] and was developed by [https://dev.wlan-si.net/ wlan slovenija]. A relay node is usually a VPS or a dedicated server with a good amount of available bandwidth and cpu.  
Relay nodes are Internet connected hosts that allow mesh nodes to talk to each other using batman-adv over the Internet. Mesh nodes connect to relay nodes using a type of layer 2 tunnel called [http://en.wikipedia.org/wiki/L2TP L2TP]. The software used to establish these tunnels is called [https://github.com/wlanslovenija/tunneldigger tunneldigger] and was developed by [https://dev.wlan-si.net/ wlan slovenija]. A relay node is usually a VPS or a dedicated server with a good amount of available bandwidth and cpu.  


Line 108: Line 110:
Set a static IP for the bat0 interface by adding the following to /etc/network/interfaces:
Set a static IP for the bat0 interface by adding the following to /etc/network/interfaces:


iface bat0 inet static
iface bat0 inet static
     address 10.42.254.254
     address 10.42.254.254
     netmask 255.0.0.0
     netmask 255.0.0.0
Line 215: Line 217:


if [ `cat /sys/class/net/bat0/operstate` != "up" ]; then
if [ `cat /sys/class/net/bat0/operstate` != "up" ]; then
        ifconfig bat0 down && ifup bat0
      ifconfig bat0 <relay_mesh_ip> netmask 255.0.0.0 up
fi
fi
</pre>
</pre>
Where <relay_mesh_ip> is your assigned mesh ip address (or 10.42.254.254 for testing).


Now you're ready to run the broker.
Now you're ready to run the broker.

Navigation menu