Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
copy-keys
dhcpd.conf
install-packages
interfaces
iptables
map-network
setup-cluster
setup-network
shutdown-workers
upgrade-workers

README.md

Raspberry Pi 2 cluster with NAT routing head node

Scripts and config files associated with my blog post "Raspberry Pi 2 cluster with NAT routing":

https://darrenjw2.wordpress.com/2015/09/07/raspberry-pi-2-cluster-with-nat-routing/

The brief summary is as follows:

Create a cluster by connecting a bunch of Pis to a switch via the Pis ethernet port. Pick one of the Pis to be a head node and NAT router. Connect a USB ethernet dongle to this Pi, and use the dongle port as the internet uplink.

Stick Raspbian on each node, with SSH server enabled.

Boot up the head node.

wget https://github.com/darrenjw/blog/archive/master.zip
unzip master.zip
cd blog-master/pi-cluster
sudo sh install-packages

will reboot when done. On reboot, re-enter same directory, and then do:

sudo sh setup-network

when done, will reboot.

On reboot, re-enter same directory. Boot up the other nodes and then run

sh setup-cluster

on the head node.