参考:
http://wiki.openwrt.org/doc/howto/mesh.batman?s[]=batmand
The Better Approach To Mobile Adhoc Networking (B.A.T.M.A.N.) is a routing protocol for multi-hop ad hoc networks which is under development by the "Freifunk" community and intended to replace OLSR.
Batman-adv is a mesh protocol for a layer 2 network
设置:
Configuration
/etc/config/wireless:
config wifi-iface option device radio0 option ifname mesh0 option network mesh option mode adhoc option ssid mesh option bssid '02:CA:FE:CA:CA:40' option mcast_rate 18000 option encryption none
/etc/config/network:
config interface 'mesh' option mtu 1532 option proto batadv option mesh bat0 config interface 'bat' option ifname 'bat0' option proto 'static' option mtu '1500' option ipaddr '10.0.0.1' option netmask '255.255.255.0'
注意:bssid要设置成一致
而bat接口的ipaddr要设置成不一致
信道要一致