How to...

Static IP addresses for slave nodes

At this point we have to think about which target STATIC address the new node is going to get. An IP address may not be used twice.

The 8 slave nodes we’re going to setup will use STATIC IP addresses in the IP range between 11 and 18 -> Node 11 -> Node 12 -> Node 13  
... -> Node 18  

Let’s assume we’re installing “Node 11”, thus, this has to be done:

Edit /etc/network/interfaces

Replace the line(s) for eth0 with following:

auto eth0
allow-hotplug eth0
iface eth0 inet static
  address    # make sure this is the correct address!

That was magic, let’s restart the interface and see what happened.

sudo rm /var/lib/dhcp/*             # removes existing leases
sudo systemctl daemon-reload        # not always required, but whatever...
sudo service networking restart     

Check if it worked:

ifconfig eth0

…should display this on the second line

          inet addr:  Bcast:  Mask:

Note, it can take a few seconds after sudo service networking restart until the IP address will appear in ifconfig, be patient.

setup howto slave Difficulty: easy