AddBatmanAdv » Historial » Versió 3
Agustí Moll Garcia, 08-05-2013 19:11
| 1 | 1 | Agustí Moll Garcia | h1. Add BATMAN-Adv Cloud |
|---|---|---|---|
| 2 | |||
| 3 | 0. Compile module batman-adv: |
||
| 4 | |||
| 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 | config interface 'mesh_batadv' |
||
| 8 | option ifname 'wlan1' |
||
| 9 | option mtu '1528' |
||
| 10 | option proto 'batadv' |
||
| 11 | option mesh 'bat0' |
||
| 12 | </pre> |
||
| 13 | 3 | Agustí Moll Garcia | Where 'wlan1' is a wireless device to ad-hoc. In qmp are 'mesh_devices'. |
| 14 | |||
| 15 | 1 | Agustí Moll Garcia | 2. Add device in interface lan (bridge): |
| 16 | <pre> |
||
| 17 | config interface 'lan' |
||
| 18 | option type 'bridge' |
||
| 19 | list ifname 'eth0.1' |
||
| 20 | list ifname 'bat0' |
||
| 21 | .... |
||
| 22 | </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 | <pre> |
||
| 26 | config 'mesh' 'bat0' |
||
| 27 | option 'interfaces' 'mesh_batadv' |
||
| 28 | option 'aggregated_ogms' |
||
| 29 | option 'ap_isolation' '1' |
||
| 30 | option 'bonding' |
||
| 31 | option 'fragmentation' |
||
| 32 | option 'gw_bandwidth' |
||
| 33 | option 'gw_mode' |
||
| 34 | option 'gw_sel_class' |
||
| 35 | option 'log_level' |
||
| 36 | option 'orig_interval' |
||
| 37 | option 'vis_mode' |
||
| 38 | option 'bridge_loop_avoidance' |
||
| 39 | </pre> |
||
| 40 | 4. reload network or reboot |
||
| 41 | |||
| 42 | 5. Use batctl to check cloud. |