1

Consider the following scenario where I have n number of RPis connected to a Ethernet switch in order to create a internal network. All these RPis have a static IP.

Now one of the RPi (call it a head node if you like) has a USB to Ethernet adapter which connects the head node to a router. I have other PCs connected to this router and I want to ssh to the nodes from that PCs.

RPi cluster network

All these RPis have Arch Linux ARM as OS.

How should I configure the network?

itheo92
  • 11
  • 1

1 Answers1

2

Assuming pi_0 has IP 10.0.1.1 on the external network and www is the connection to the internet.

Just enable routing (add net.ipv4.ip_forward=1 in /etc/sysctl.conf) on pi_0, define a static route on the router to the pi_n subnet (route add -net 192.168.1.0/24 gw 10.0.1.1) and set the default gateway to pi_0 on all pi_n (route add default gw 192.168.1.1 eth1 ).

framp
  • 896
  • 7
  • 17