dual ethernet wiznet5500 esp32s3 #16491
-
Hi, I am trying to set up an esp32S3 with dual ethernet interfaces. My use case requires bridging at OSI7 level 2 different networks. In the discord channel I have been sharing my experience ( and received help). I know IDF support more than one ethernet interface. I was just wondering if that functionality has been relayed into micropython ? Any ideas ? Currently both interfaces show different MAC addresses . However, same IP and IP connection details.....even when connected to 2 different routers with different ip ranges. Regards JC |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
my notes above maybe incorrect. It looks like only one LAN interface is possible ? |
Beta Was this translation helpful? Give feedback.
-
Does it make a difference if you set the IP a dresses manually with ifconfig()? |
Beta Was this translation helpful? Give feedback.
Looking into the code I see, that the ESP32 port uses a static object for LAN. So yes, one can only have a single LAN interface. It may be possible to use a dynamic object instead, but for that the code must be changed (not a big deal) and tested. The tiny downside of that is, that dynamic objects get lost on soft reset.