There are several STM32 types out there with ethernet MAC, and even some Nucleo-Boards with ethernet jack and PHY might still be available. That could be a good starting point.
Like if I want 2 STM32F745VGTx microcontrollers to communicate via ethernet, than how can I do it.
I have even changed the MAC address of both the controllers but they both re not able to ping, only the one which is connected to PC is getting pinged.