Static addresses

452 views
Skip to first unread message

Roger Smith

unread,
Oct 15, 2016, 3:12:46 PM10/15/16
to ClusterHAT
Has anybody worked out a checklist for converting to static IP-V4 addresses for the Pi zeros.
I have everything running, including enabling RPC, but I need to be able to run autonomously without an external network.

Any pointers much appreciated
Roger

Roger Smith

unread,
Oct 20, 2016, 8:09:51 AM10/20/16
to ClusterHAT
Anybody?
I'm supposed to demo a setup next weekend, but I won't have a network connection available. I have all my demo stuff running, everything runs o.k. But I just need to set static addresses on p1 to p4.
HELP!

Chris Burton

unread,
Oct 20, 2016, 6:53:45 PM10/20/16
to ClusterHAT
Hi Roger,

Has anybody worked out a checklist for converting to static IP-V4 addresses for the Pi zeros.
I have everything running, including enabling RPC, but I need to be able to run autonomously without an external network.


Not sure how I missed this mail - but if you just want to configure it with static IPs something like.

On the controller edit /etc/network/interfaces change the section at the bottom from

iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_waitport 0
        bridge_fd 0

to 

iface br0 inet static
        bridge_ports eth0
        bridge_stp off
        bridge_waitport 0
        bridge_fd 0
        address 192.168.100.1
        netmask 255.255.255.0

Then log into each Pi Zero (using serial if you can't login using the network) and again edit /etc/network/interfaces changing

iface usb0 inet dhcp

to (replacing X with 1-4 based on which Pi Zero your configuring).

iface usb0 inet static
        address 192.168.100.1X
        netmask 255.255.255.0

Then shutdown the Pi Zero and controller, disconnect the Ethernet cable boot controller, run "clusterhat on" and once booted up you should all be able to talk to each other using the name "controller.local" (or 192.168.100.1) and the Pi Zeros as "p1.local" (or 192.168.100.11) etc.

Depending on your own network you might want to change the 192.168.100.0/24 subnet to something else if it conflicts.

Chris.

Roger Smith

unread,
Oct 24, 2016, 5:43:42 AM10/24/16
to ClusterHAT
Many, many thanks Chris, that pointed me in the right direction. In case you  all were wondering why static addressing, what I am eventually aiming at is a free standing compile farm using distcc - so just plug in usb stick with program and makefile and apply power. Stick gets auto-mounted then the control program fires up the zeroes, does that funky distcc thing, writes the results back to the stick and shuts down. Come back in the morning and its all done. (that's the theory, practice may differ somewhat).
Roger
Reply all
Reply to author
Forward
0 new messages