Projecte

General

Perfil

Actions

Add BATMAN-Adv Cloud

0. Compile module batman-adv:

1. Make interface in /etc/config/network, where ifname is device in ad-hoc mode.

config interface 'mesh_batadv'
    option ifname 'wlan1'
    option mtu '1528'
    option proto 'batadv'
    option mesh 'bat0'

Where 'wlan1' is a wireless device to ad-hoc. In qmp are 'mesh_devices'.

2. Add device in interface lan (bridge):

config interface 'lan'
    option type 'bridge'
    list ifname 'eth0.1'
    list ifname 'bat0'
    ....

TIP: In OpenWRT doesn't declare wlan because is defined in /etc/config/wireless
3. Configure /etc/config/batman-adv associed device and interface and active ap_isolation
config 'mesh' 'bat0'
    option 'interfaces' 'mesh_batadv'
    option 'aggregated_ogms'
    option 'ap_isolation' '1'
    option 'bonding'
    option 'fragmentation'
    option 'gw_bandwidth'
    option 'gw_mode'
    option 'gw_sel_class'
    option 'log_level'
    option 'orig_interval'
    option 'vis_mode'
    option 'bridge_loop_avoidance'

4. reload network or reboot

5. Use batctl to check cloud.

Actualitzat per Agustí Moll Garcia fa casi 11 anys · 3 revisions