我正在尝试使用树莓派、Edimax EW-7811Un WLAN适配器和batman-adv协议建立无线网状网络。
我已经尝试按照以下基本设置指南进行操作:
- http://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide
- http://mindofdes.blogspot.co.uk/2013/02/raspberry-pi-raspbian-wireless-and.html
运行“batctl o”命令会显示“范围内没有蝙蝠侠节点”的消息。
然而,当运行“iwconfig”命令时,两个节点都似乎已经与我设置的网络关联起来,当运行“iwlist wlan0 scan”命令时,我设置的网络在两个节点上都显示为单元格。
现在我不知道该如何继续了。我已经阅读了一些有关Linux WLAN适配器驱动程序的ad-hoc支持问题的文章。我的适配器正在使用RTL8192CU驱动程序。这可能是问题的原因吗?
附注:我查看了以下帖子的内容,但不幸的是没有得到帮助。
编辑:
/etc/network/interfaces
的内容如下:当前设置的两个节点具有相同的内容:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
编辑:/etc/wpa_supplicant/wpa_supplicant.conf
的内容,对于两个节点都是如此:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
编辑:ifconfig
、iwconfig
和路由器配置,包括两个节点:
节点1
ifconfig
wlan0 Link encap: Ethernet HWaddr 80:1f:02:9b:bc:6c
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:1 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes: 0 (0.0 B)
iwconfig
wlan0 IEEE 802.11bg ESSID:"pi-ad-hoc" Nickname:"<WIFI@REALTEK>"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:11:87:A1:CD:FF
Bit Rate:54 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=2/100 Signal level=2/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 wlan0
节点2
ifconfig
wlan0 Link encap:Ethernet HWaddr 80:1f:02:da:2e:ee
inet addr:192.168.2.3 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
iwconfig
wlan0 IEEE 802.11bg ESSID:"pi-ad-hoc" Nickname:"<WIFI@REALTEK>"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:11:87:2F:D6:FF
Bit Rate:54 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=2/100 Signal level=2/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 wlan0