Networking Setup
Last updated
Last updated
The master node will have two network interfaces if a USB-ethernet connector is present: eth0 and eth1. The compute nodes should have a single interface: eth0. For consistency, we will use eth0 throughout for the private network and eth1 on the master for connection to the local 'public' network.
By default, the networks will obtain their IP address using DHCP. For the master node's eth1 network, we will use this default.
Eth0 will be configured for static IP addresses. We will use the 10.0.0.X address space to avoid conflicts with external networks. For consistency, we will name compute nodes using the name of the master node and appending a 01-04. Students may name their master nodes as they please. With a master node named 'nano', for example, the compute nodes would be named nano01, nano02, nano03, and nano04. The corresponding IP addresses could then be 10.0.0.100 ('nano'), 10.0.0.101 ('nano01'), 10.0.0.102 ('nano02'), etc.
To configure a static IP address, create a file named 'eth0' in the /etc/network/interfaces.d/ directory as root (or sudo), with the following content:
The '101' below should be changed to match which node you are on (i.e. '100' for master, '101' for node01, etc.)
Here's an example using vi as the editor:
Which should look something like this:
Alternatively, you can do all of this on the command line with a here document:
This will completely overwrite the contents of the file specified after the > symbol.
You can then test by bringing the interface up:
If no errors, confirm the interface is configured properly:
Once you have two machines configured, test connectivity using ping and ssh: