I am trying to interface ESP32 with W5500 and run a ethernet webserver using Arduino IDE. I am using Asyncwebserver_ESP32_W5500 library.
Details of the library are as below
AsyncSimpleServer_ESP32_W5500.ino
For W5500 LwIP Ethernet in ESP32 (ESP32 + W5500)
AsyncWebServer_ESP32_W5500 is a library for the LwIP Ethernet W5500 in ESP32 to run AsyncWebServer
Based on and modified from ESPAsyncWebServer (GitHub - me-no-dev/ESPAsyncWebServer: Async Web Server for ESP8266 and ESP32)
Built by Khoi Hoang GitHub - khoih-prog/AsyncWebServer_ESP32_W5500: Asynchronous HTTP and WebSocket Server Library for (ESP32 + LwIP W5500). Now supporting using CString to save heap to send very large data and with examples to demo how to use beginChunkedResponse() to send large html in chunks
Licensed under GPLv3 license
There is no issue with compilation and upload. I am getting Ethernet connected message on serial monitor from ESP32. But when I connect ethernet cable from W5500 to ethernet port of linux machine I am getting trying to assign address message on linux machine and there is no further progress in ethernet connection
A ifconfig command output is as below
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether fc:aa:14:1a:d7:6e txqueuelen 1000 (Ethernet) RX packets 189 bytes 62718 (62.7 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 818 bytes 126627 (126.6 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 147200 bytes 191072676 (191.0 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 147200 bytes 191072676 (191.0 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Ethernet server sketch uses following IP configuration
IPAddress myIP(192, 168, 2, 232);
IPAddress myGW(192, 168, 2, 1);
IPAddress mySN(255, 255, 255, 0);
// Google DNS Server IP
IPAddress myDNS(8, 8, 8, 8);
But sketch also asks me to use IP address according to my local network which I am unable to sort out.