Yes capt,
That's exactly what I'm after.
The purpose is to ensure that a server or backup device is safely taken offline.
An expansion on this would be another device on the network to send on/off packets to more than 1 of these devices.
Thanks.
I'm not sure if I got your goal.
What I understand is:
A box, sitting in the middle of an ethernet cable, that is able to receive an on/off command from one side of the cable, and then opens or closes the cable through connection?
OK, then I'd suggest to use a simple and cheap 5port Ethernet switch, a bunch of suitable small signal relays and some ethernet-enabled MCU evaluation module.
Connect the incoming ethernet to one port, the module to the next port and for the outgoing port, put the relays in series with the cable. You're near the termination, so some mismatching caused by the relays won't hurt too much. Use a GPIO from the module to control the relays, place some firmware (including a TCP/IP stack) on the module, assign a valid IP address to the moduel and receive the on/off command.
So you've left two ports, you could use them to isolate two more devices the same way.
Connect another MCU module somewhere else to the network, assing IP etc, and e.g. use its GPIO inputs to trigger sending the commands.
Which MCU module to use is up to your favour and skills, I'd use one of these STM32 nucleo 144 boards (including ethernet), they are cheap (~ 20 EUR), and you can find working implementations of some RTOS with LWIP, providing you with all the network related stuff.
For the relays, a decent small signal relay like the ones used in oscilloscopes to switch the attenuator will do the job. Most of them are DPDT, so you'll need four of them per port.
For a more advanced / elegant solution, search for a recent ethernet switch IC (the ones that are inside your typical 5 or 8 port domestic use gigabit ethernet switches), most of them have some kind of configuration interface. Hook your MCU module to one port of this switch for the ethernet connection, connect the configuration interface to the MCU module and use this to enable / disable the target ports of the switch. Maybe you can re-use one of these off-the-shell 8port switches, some of them have an internal small MCU for the basic initialisation of the switch IC. Remove this IC and connect your MCU module instead, the rest is reading datasheets and a bit of reverse engineering. So you basically roll your own managed switch, using a protocol of your choice.
Anyway, I'd just go and buy a suitable managed switch and use the standard protocols / manufacturer provided software.