you could litterally achieve this with an inexpensive adapter
edit: it works by plugging a normal ethernet cable, add an 5v power adapter (net, battery, anything really) and at output of adapter you attach an PoE eth cable. An reverse working adapter also exists, if your hardware at the end of the chain needs a 5v input, if needed