码迷,mamicode.com
首页 > 其他好文 > 详细

B.A.T.M.A.N

时间:2015-06-03 11:28:15      阅读:108      评论:0      收藏: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要设置成不一致

信道要一致

B.A.T.M.A.N

标签:

原文地址:http://www.cnblogs.com/smbx-ztbz/p/4548558.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!