The ps1 gateway and switch¶
You look after the ps1 gateway and want to know what it serves, which switch port carries which host, and how to power-cycle one host. You need root on the gateway.
Gateway: val2¶
The gateway, its switch and its tooling are the site operator’s own install. They come from the
pici playbooks and the pib web application.
None of it is built by fpgas.online-infra.
fpgas.online reads the gateway and does not deploy to it. The site notes, docs/hardware/site-ps1.md in
fpgas.online-test-designs, call it val2. They differ from the read below
(test-designs issue #294).
The table and the root below are from a read on the gateway on 6 October 2026.
Name |
ps1.fpgas.online; the machine calls itself |
System |
Debian 13 (trixie) |
Uplink |
|
Pi network |
|
Boot service |
dnsmasq: DHCP, DNS and TFTP (TFTP from |
Root service |
NFS, read-only (below) |
Web |
nginx in front of the board pages, the web SSH terminal and the video feeds |
Switch |
Netgear FS728TPv2 at 10.21.0.200 (below) |
Administrator login |
|
The Pi network is one flat /24. A Pi is recognised by its MAC and handed a reserved address from /etc/dnsmasq.d/pibs.conf.
The host on port eNN gets 10.21.0.1NN as its address. Anything else gets an address from 10.21.0.128 to
10.21.0.254, on a six-hour lease. Welland’s one-network-per-port scheme is not used here.
One NFS root¶
The gateway serves one root, /srv/nfs/rpi/trixie/{boot,root}, exported read-only to the Pi network. It
serves no bookworm root, which the site notes list for the Arty hosts (test-designs issue #294). Every
Pi’s TFTP directory, /srv/tftp/<serial>, is a link to the same boot/, so a change there changes every host
at once. The kernel command line mounts nfsroot=10.21.0.1:/srv/nfs/rpi/trixie/root with a tmpfs overlay
(overlayroot=tmpfs). Anything a host writes, /home/pi included, is gone after a reboot or a power cycle
(The NFS root is shared and read-only).
pi16 and pi20 at ps1 ran a 32-bit Raspberry Pi OS userspace from it, on a 6.18.50+rpt kernel
(read on 5 October 2026). What packages the root holds was not read. It did not come from
fpgas.online-infra, whose playbook builds a bookworm root at /srv/nfs/rpi/bookworm
(dist: bookworm in inventory/group_vars/all/srv.yml).
PoE switch¶
One Netgear FS728TPv2 at 10.21.0.200 has 24 Fast Ethernet ports, e1 to e24, and 4 Gigabit ports,
g25 to g28 (site notes). The gateway hands that address to the switch’s MAC a0:21:b7:af:4e:05
(/etc/dnsmasq.d/switch.conf). The site notes record the gateway on g25, and above it a Ubiquiti US-24-G1
(PS1-SW-MODEM). The port is the host’s number: piNN is on eNN.
Which host is on which port, from the site notes’ port inventory:
Port |
Host |
Board |
Notes (site notes) |
|---|---|---|---|
e2, e3, e5, e7, e9, e11, e13 |
pi2, pi3, pi5, pi7, pi9, pi11, pi13 |
Arty A7 |
|
e6, e8, e10, e12 |
the Artys’ own Ethernet test adapters; no PoE needed |
||
e14 |
pi14 |
Acorn CLE-101 |
CM4 Compute Blade |
e16 |
pi16 |
Acorn CLE-101 |
CM5 Lite Compute Blade |
e17 |
pi17 |
Arty A7 |
|
e18 |
pi18 |
(slot empty) |
CM4 Compute Blade |
e19 |
pi19 |
dead hardware |
|
e20 |
pi20 |
Acorn CLE-101 |
CM5 Lite Compute Blade |
e21 |
pi21 |
Raspberry Pi 5, no FPGA |
|
g25 |
the gateway |
server uplink |
Power control¶
To power-cycle one host at ps1. Cutting a host’s PoE is the only remote reset, and the host loses what it held in memory.
First, check who is on the port. The port is the host’s number: the switch names its ports e1 to e24
(site notes), and pi20 at ps1 is on port e20. On the ps1 gateway, the address 10.21.0.1NN must be answered
by that host’s MAC (listed on Hosts and boards at ps1):
$ grep ' 10.21.0.120 ' /var/lib/misc/dnsmasq.leases
$ ip -4 neigh show 10.21.0.120
A netbooted Pi may hold no lease while it runs (a lease is not renewed; fpgas.online-infra issue #230), so a missing lease line does not mean the Pi is off. The neighbour entry names the MAC that last answered at the address; it can stay for a while after the Pi has gone, so it identifies the board but does not prove it is up. Someone may be using the board: a visitor’s session ends with the power. Do not cycle pi19 (dead hardware, site notes) or pi24 (on no port, site notes).
From the board’s page. The board pages on ps1.fpgas.online have “Turn it off and on again: Reset” and a
“Check PoE” button (read on https://ps1.fpgas.online/fpgas/pi3.html on 7 October 2026). The Compute Blades
have no page there.
This is the site operator’s tooling on their gateway, not run by fpgas.online. The gateway’s files date from about
25 September 2026, when it was installed again. The gateway read of 6 October 2026 found snmp_switch 0.0.17
in the web venv, /srv/www/pib/venv. It did not look for poe.sh, and did not open the settings file
/etc/environment.export, because the file holds credentials. No role in fpgas.online-infra writes that name:
its snmp.yml writes /etc/environment.exports, plural, and only on a gateway it deploys. If the settings
file is not there, the switch settings are missing and the gateway’s administrator has to put them back.
From the gateway, as root. fpgas.online-poe’s scripts/poe.sh (main, fcb4a2a) is the tool for this
switch: poe.sh PORT reads the port’s state, poe.sh PORT 2 switches it off and poe.sh PORT 1 on. It reads
the switch’s SNMP settings from /etc/environment.export and runs snmp_switch/utils.py from the web venv.
Check the settings file first, then cycle in one line, so that a dropped connection cannot leave the host off
(port 20 here):
$ test -r /etc/environment.export && echo settings present
$ poe.sh 20 # read: 1 is on, 2 is off
$ poe.sh 20 2 && sleep 5 && poe.sh 20 1 # off, a few seconds, on
$ poe.sh 20 # read again: expect 1
If poe.sh is not on the gateway, each poe.sh 20 N is these two lines from the script:
$ source /etc/environment.export
$ /srv/www/pib/venv/bin/python3 /srv/www/pib/venv/lib/python3.13/site-packages/snmp_switch/utils.py 20 N
The host is back when its SSH port answers: from the gateway, nc -z -w 3 10.21.0.120 22; from outside, the
visitor login on port 12022. How long that takes after a power cycle has not been measured at ps1; the test
automation allows about two minutes from power-on to SSH (docs/verify-hardware.md in
fpgas.online-test-designs).
poe.sh PORT takes no switch argument: it acts on the one switch its settings name. That ps1 has one PoE
switch, a Netgear FS728TPv2 carrying every host, is the site notes’ reading and matches the OID and MAC in
host_vars/ps1.fpgas.online.yml (fpgas.online-infra); that file’s comments also name an HP ProCurve 2610 and a
Netgear GS728TPP, and nobody from fpgas.online has looked at the rack, so this is not settled. The FS728TPv2 takes PoE commands only on a Netgear-private OID, 1.3.6.1.4.1.4526.11.16.1.1.1.3.1
(site notes; the oid in host_vars).
What is planned for the gateway is on The ps1 site.