Ethernet between AP and AP_periph

I am working with CubeRed and I want communicate between AP and AP_Periph using Ethernet (Just like the CAN communication happening between the two).

Later I want to add more AP_Periphs on the ethernet network so that AP can get all the AP_Periphs data over the ethernet network.

Please advice on how we can configure this?

Thank you