tingpan

生命不息,折腾不止!
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

B.A.T.M.A.N

Posted on 2015-06-03 10:56  tingpan  阅读(467)  评论(0编辑  收藏  举报

参考:

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要设置成不一致

信道要一致