Static IP with dhcpcd
Edge devices like the OnLogic FR201 almost always need a predictable address. SCADA endpoints, MQTT brokers, and remote SSH all assume the device lives at the same IP across reboots. On older Raspberry Pi OS images (Buster and earlier Bullseye), the network stack is dhcpcd, and you set a static address by editing a single config file.
Configure the interface
Section titled “Configure the interface”The FR201 has two Ethernet ports. The PoE-capable port is eth0 and the second port is eth1. Pick whichever one is plugged in.
-
Open
dhcpcd.confin your editor of choice:Edit the dhcpcd config sudo nano /etc/dhcpcd.conf -
Scroll to the bottom of the file and append a block for the interface you want to pin. Replace the addresses with values that match your network:
/etc/dhcpcd.conf # eth0 is the PoE port. Use eth1 if you wired into the standard LAN port.interface eth0# The address you want this device to keep across reboots.static ip_address=192.168.1.50/24# The default gateway (your router or layer-3 switch).static routers=192.168.1.1# DNS servers. You can list more than one separated by spaces.static domain_name_servers=192.168.1.1 1.1.1.1The
routers=directive is dhcpcd-speak for “default gateway.” If you’re used to other tools that name itgatewayorvia, this trips up everyone the first time. -
Save and exit (Ctrl+O, Enter, then Ctrl+X).
-
Restart
dhcpcdso it picks up the new configuration:Restart dhcpcd sudo service dhcpcd restart
Verify the new address
Section titled “Verify the new address”Confirm the interface came up with the address you set:
ip addr show eth0Use eth1 instead if you wired into the standard port. ifconfig works too, though it’s deprecated on most modern Pi OS releases.
If the address didn’t change, give it a minute — dhcpcd sometimes holds the previous DHCP lease for a short window — or reboot the device with sudo reboot.
Sizing the subnet
Section titled “Sizing the subnet”The example above uses /24 (a 256-address subnet, the typical home-lab default). On a real OT segment you’ll often want a smaller broadcast domain. A /26 gives you 64 addresses (62 usable) and reduces broadcast noise on networks with chatty industrial devices. Adjust the prefix length to whatever your IT or controls team has allocated for the device.