So I\'m trying to setup a wireless mesh network using Raspberry Pi\'s, with the Edimax EW-7811Un WLAN Adapter and the batman-adv protocol.
I\'ve tried following the
As wifi connections to your access point work fine. We assume drivers and hardware are fine. Now let's try to connect via -- Wifi ad-hoc.
I found here some pretty promising configuration without using wpa_supplicant. As already mentioned we have to use fixed IPs. So of course they need to be different on both raspis. Please note that I had to change "manual" to "static". Now it also works at my place (after reboot). Here it comes
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 192.168.2.10
netmask 255.255.255.0
wireless-channel 4
wireless-essid pi-ad-hoc
wireless-mode ad-hoc
Please note: The chosen IPs should not be in the sub net of your wired network (eth0).
Also make sure sudo ifconfig wlan0 shows the correct IP
pi@raspberrypi ~ $ sudo ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 80:1f:02:87:77:81
inet addr:192.168.2.10 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:53 errors:0 dropped:29 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6007 (5.8 KiB) TX bytes:1042 (1.0 KiB)
and here is the sudo iwconfig wlan0
pi@raspberrypi ~ $ sudo iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"pi-ad-hoc" Nickname:""
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:11:87:DF:AB: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