First, check your configuraton status using `sysctl -a | grep forward`. We now need to enable packet forwarding in the kernel. Lastly, we also will need a route into the cluster network. We also need to setup a route for this network using `ip route add 10.0.1.0/24 dev CINT proto kernel scope link src 10.0.1.1`. For that, run the command `ip addr add 10.0.1.1 dev CINT`. You will probably need to enable the interface for the cluster first using `ip link set CINT up`.įirst of all, we want to give us our IP adress in the `10.0.1.0/24` network. using `ifconfig` - how your specific interfaces are called. We also have an interface connected to the cluster ( CINT for the rest of the guide). ![]() On our laptop, we will have an outside interface ( OINT for the rest of this guide) that is connected to the public internet. Specifics for Debian-distributions may vary.įirst of all, we need to find out the names of our network interfaces. Please first note that these instructions are only tested on an Arch-based Linux distribution. You should be familiar with basic concepts of routing and Linux, i.e., you should know how to use `ssh`. Internet - Switch - NodesĪ more graphical depiction of the setup can be found in the paper. We will be using static IPs in this guide because we are using Ansible to configure them. ![]() Your laptop will also need two ethernet interfaces, so probably you will need one-two additional Ethernet adapters (you could also route the outside traffic over your laptop wifi, but that's not as stable as ethernet). The general internet traffic will also need a gateway, for which we will use another desktop or laptop machine. The master node will also need a USB-Ethernet-Adapter for access to the general internet. This USB-Interface should be plugged into a USB 3.0 slot. To ensure stability, one should stick to separate power supplies instead of PoE. The compute nodes and master node will be connected via a switch that should be plugged into the native Ethernet ports of the Pis. In this guide, we will describe how to setup a Raspberry Pi Cluster using an Ansible playbook. In general, the setup will use one Raspberry Pi as a master node and the others as a compute node.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |