I can get the W5500 ethernet module to run the IP address print example on a regular Arduino Uno. But I haven't been able to get the same W5500 and DHCP address sketch to work with the ArduinoMEGA2560, nor with the ESP8266.
On the Arduino MEGA, the SPI pins are:
50 = MISO
51 = MOSI
52 = SCK
53 = SS
On the ESP8266, I'm using:
GPIO12 = MISO
GPIO13 = MOSI
GPIO14 = SCK
GPIO15 = SS
I think I have the pins correct, checked several times. On the MEGA, I just get a "Failed to configure Ethernet using DHCP" on serial monitor. On the ESP8266, I seem to be getting memory dumps when I serial monitor.
I am using the Ethernet2 library that supports the W5500 (not the old W5100 ethernet library).
I don't see a lot of people using this ethernet module on MEGA and ESP8266, so there's not a lot to go by. I haven't found any references to anyone successfully getting this to work.
I've also tried replacing this Ethernet library from Wiznet which specifically states it supports ESP8266, but still nothing.