Hallo
Ich versuche ein Ad-hoc Meshnetz mittels 4 Raspberry Pi's Model B aufzubauen. Hier sind die Hardware Eigenschaften:
- 4x Raspberry Pi Model B ( Raspbian Debian Wheezy 3.18)
- 4x Edimax EW-7811Un USB WiFi Adapter (RTL8188cus)
- 1x Laptop mit Win 8.1 um auf die RPi's über SSH (PuTTY) zuzugreifen
ich habe die RPi Netzwerkeinstellungen wie folgend konfiguriert:
/etc/network/interfaces
RPi1:
Code
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.21
netmask 255.255.255.0
wireless-channel 1
wireless-essid RPiAdHocNetwork
wireless-mode ad-hoc
Alles anzeigen
RPi2:
Code
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.22
netmask 255.255.255.0
wireless-channel 1
wireless-essid RPiAdHocNetwork
wireless-mode ad-hoc
Alles anzeigen
RPi3:
Code
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.23
netmask 255.255.255.0
wireless-channel 1
wireless-essid RPiAdHocNetwork
wireless-mode ad-hoc
Alles anzeigen
RPi4:
Code
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.24
netmask 255.255.255.0
wireless-channel 1
wireless-essid RPiAdHocNetwork
wireless-mode ad-hoc
Alles anzeigen
Laptop:
Das pingen vom Laptop --> RPi's funktioniert
Code
C:\> ping 192.168.1.21
Ping wird ausgeführt für 192.168.1.21 mit 32 Bytes Daten:
Antwort von 192.168.1.21: Bytes=32 Zeit=1ms TTL=64
Antwort von 192.168.1.21: Bytes=32 Zeit=1ms TTL=64
Antwort von 192.168.1.21: Bytes=32 Zeit=2ms TTL=64
Antwort von 192.168.1.21: Bytes=32 Zeit=1ms TTL=64
Ping-Statistik für 192.168.1.21:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 1ms, Maximum = 2ms, Mittelwert = 1ms
Alles anzeigen
das Pingen vom RPi --> Laptop funktioniert auch
Code
pi@rpi1 ~ $ ping 192.168.1.20
PING 192.168.1.20 (192.168.1.20) 56(84) bytes of data.
64 bytes from 192.168.1.20: icmp_req=1 ttl=128 time=1.37 ms
64 bytes from 192.168.1.20: icmp_req=2 ttl=128 time=1.24 ms
64 bytes from 192.168.1.20: icmp_req=3 ttl=128 time=1.25 ms
64 bytes from 192.168.1.20: icmp_req=4 ttl=128 time=15.6 ms
64 bytes from 192.168.1.20: icmp_req=5 ttl=128 time=1.42 ms
64 bytes from 192.168.1.20: icmp_req=6 ttl=128 time=1.28 ms
^C
--- 192.168.1.20 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 1.242/3.710/15.683/5.354 ms
Alles anzeigen
Das Problem ist, dass ich von einem RPi zum anderen nicht direkt pingen kann.
Code
pi@rpi1 ~ $ ping 192.168.1.22
PING 192.168.1.22 (192.168.1.22) 56(84) bytes of data.
From 192.168.1.21 icmp_seq=1 Destination Host Unreachable
From 192.168.1.21 icmp_seq=2 Destination Host Unreachable
From 192.168.1.21 icmp_seq=3 Destination Host Unreachable
From 192.168.1.21 icmp_seq=4 Destination Host Unreachable
From 192.168.1.21 icmp_seq=5 Destination Host Unreachable
From 192.168.1.21 icmp_seq=6 Destination Host Unreachable
^C
--- 192.168.1.22 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6004ms
pipe 3
Alles anzeigen
Hat jemand vielleicht eine Idee wie ich die RPi's mit einander zu kommunizieren bringen könnte? vielen dank im voraus