LWIP: Attach DHCP server to multiple interfaces.

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

LWIP: Attach DHCP server to multiple interfaces.

Postby DrMickeyLauer » Thu Apr 27, 2023 1:07 pm

I'm working on a WiFi/Ethernet bridge project. I want one DHCP server running on my ESP32(C6) to hand out addresses to both the wired ethernet and WiFi.

What's the best way to approach this?

Can I adjust the dhcp server to listen on more than one `esp_netif`? If not, can I get this behavior by enabling some sort of automatic L2 bridging between two `esp_netif`? If so, how?

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

Re: LWIP: Attach DHCP server to multiple interfaces.

Postby DrMickeyLauer » Fri Apr 28, 2023 4:41 pm

Apparently this is a complex topic being discussed with good results at https://github.com/espressif/esp-idf/issues/5697

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 90 guests