Project

General

Profile

AddBatmanAdv » History » Version 3

Agustí Moll Garcia, 05/08/2013 07:11 PM

1 1 Agustí Moll Garcia
h1. Add BATMAN-Adv Cloud
2 1 Agustí Moll Garcia
3 1 Agustí Moll Garcia
0. Compile module batman-adv:
4 1 Agustí Moll Garcia
5 2 Agustí Moll Garcia
1. Make interface in /etc/config/network, where ifname is device in ad-hoc mode. 
6 1 Agustí Moll Garcia
<pre>
7 1 Agustí Moll Garcia
config interface 'mesh_batadv'
8 1 Agustí Moll Garcia
    option ifname 'wlan1'
9 1 Agustí Moll Garcia
    option mtu '1528'
10 1 Agustí Moll Garcia
    option proto 'batadv'
11 1 Agustí Moll Garcia
    option mesh 'bat0'
12 1 Agustí Moll Garcia
</pre>
13 3 Agustí Moll Garcia
Where 'wlan1' is a wireless device to ad-hoc. In qmp are 'mesh_devices'.
14 3 Agustí Moll Garcia
15 1 Agustí Moll Garcia
2. Add device in interface lan (bridge):
16 1 Agustí Moll Garcia
<pre>
17 1 Agustí Moll Garcia
config interface 'lan'
18 1 Agustí Moll Garcia
    option type 'bridge'
19 1 Agustí Moll Garcia
    list ifname 'eth0.1'
20 1 Agustí Moll Garcia
    list ifname 'bat0'
21 1 Agustí Moll Garcia
    ....
22 1 Agustí Moll Garcia
</pre>
23 3 Agustí Moll Garcia
TIP: In OpenWRT doesn't declare wlan because is defined in /etc/config/wireless
24 1 Agustí Moll Garcia
3. Configure /etc/config/batman-adv associed device and interface and active ap_isolation
25 1 Agustí Moll Garcia
<pre>
26 1 Agustí Moll Garcia
config 'mesh' 'bat0'
27 1 Agustí Moll Garcia
    option 'interfaces' 'mesh_batadv'
28 1 Agustí Moll Garcia
    option 'aggregated_ogms'
29 1 Agustí Moll Garcia
    option 'ap_isolation' '1'
30 1 Agustí Moll Garcia
    option 'bonding'
31 1 Agustí Moll Garcia
    option 'fragmentation'
32 1 Agustí Moll Garcia
    option 'gw_bandwidth'
33 1 Agustí Moll Garcia
    option 'gw_mode'
34 1 Agustí Moll Garcia
    option 'gw_sel_class'
35 1 Agustí Moll Garcia
    option 'log_level'
36 1 Agustí Moll Garcia
    option 'orig_interval'
37 1 Agustí Moll Garcia
    option 'vis_mode'
38 1 Agustí Moll Garcia
    option 'bridge_loop_avoidance'
39 1 Agustí Moll Garcia
</pre>
40 1 Agustí Moll Garcia
4. reload network or reboot
41 1 Agustí Moll Garcia
42 1 Agustí Moll Garcia
5. Use batctl to check cloud.