Skip to main content
address addition of a persistent route
Source Link
Seamus
  • 22.8k
  • 4
  • 38
  • 79

Adding a route works fine - as you've seen. If you want to make the route permanent, one way to do this is add it to /etc/dhcpcd.exit-hook - per the arch-linux wiki page on dhcpcd (good resource). Another possible way to do this is to add the route to a file in /etc/network/interfaces.d. I've not tried this myself, but the contents of /etc/network/interfaces suggests that it will.

Another way to do it would be to assign your PLC an address on your LAN (I'm assuming from the wording of your question that your LAN subnet is different than the one you've assigned to your PLC). If all your devices are on the same subnet, no routing is necessary.

Adding a route works fine - as you've seen. Another way to do it would be to assign your PLC an address on your LAN (I'm assuming from the wording of your question that your LAN subnet is different than the one you've assigned to your PLC). If all your devices are on the same subnet, no routing is necessary.

Adding a route works fine - as you've seen. If you want to make the route permanent, one way to do this is add it to /etc/dhcpcd.exit-hook - per the arch-linux wiki page on dhcpcd (good resource). Another possible way to do this is to add the route to a file in /etc/network/interfaces.d. I've not tried this myself, but the contents of /etc/network/interfaces suggests that it will.

Another way to do it would be to assign your PLC an address on your LAN (I'm assuming from the wording of your question that your LAN subnet is different than the one you've assigned to your PLC). If all your devices are on the same subnet, no routing is necessary.

Source Link
Seamus
  • 22.8k
  • 4
  • 38
  • 79

Adding a route works fine - as you've seen. Another way to do it would be to assign your PLC an address on your LAN (I'm assuming from the wording of your question that your LAN subnet is different than the one you've assigned to your PLC). If all your devices are on the same subnet, no routing is necessary.