Trying to build a small cluster using few Raspberry Pi. All instances are connected to the switch which is connected to main router through the ethernet cable.
On the "master" I have set up dhcp server, output from ifconfig:
Code: Select all
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::c405:7022:93a5:b893 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:ba:06:d2 txqueuelen 1000 (Ethernet)
RX packets 3729 bytes 490317 (478.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2319 bytes 363979 (355.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 27 bytes 1690 (1.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 27 bytes 1690 (1.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a4b7:bb19:5516:c72e prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:ef:53:87 txqueuelen 1000 (Ethernet)
RX packets 6707 bytes 2629298 (2.5 MiB)
RX errors 0 dropped 800 overruns 0 frame 0
TX packets 2782 bytes 421279 (411.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
When I have connected a second instance of Raspberry PI, it has automatically received ip address 10.0.0.2 (that confirms dhcp server works). I'm even able to ssh into that instance from the "master". But unfortunately I can't talk to the outside world from it (even after configuring WiFi), for example I have tried to ping 8.8.8.8 no success.
Here is the output of ifconfig from this instance:
Code: Select all
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::4326:21bb:8fc0:92b8 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:e6:46:1d txqueuelen 1000 (Ethernet)
RX packets 1963 bytes 168182 (164.2 KiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 643 bytes 71336 (69.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.3 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::fa30:58d:9c1a:77da prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:b3:13:48 txqueuelen 1000 (Ethernet)
RX packets 1357 bytes 273778 (267.3 KiB)
RX errors 0 dropped 800 overruns 0 frame 0
TX packets 48 bytes 7045 (6.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0