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
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
RPi2
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
RPi3
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
RPi4
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
Laptop
IP: 192.168.1.20 Subnet: 255.255.255.0 Mode: Ad-hoc
Das pingen vom Laptop --> RPi's funktioniert
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
das Pingen vom RPi --> Laptop funktioniert auch
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
Das Problem ist, dass ich von einem RPi zum anderen nicht direkt pingen kann.
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
Hat jemand vielleicht eine Idee wie ich die RPi's mit einander zu kommunizieren bringen könnte? vielen dank im voraus