How Do I Stop DHCPS from obtaining an IP address from another DHCP server?
Posted: Wed May 25, 2022 10:44 am
I'm using esp-2019r2 and have an esp32 application that can be configured as either DHCPC or DHCPS.
However when running in DHCPS mode if it sees another DHCP server on the ethernet network, it drops it's configured static IP address and obtains an IP address from the other DHCP server. How can I disable the EPS-IF network or lwip layers from doing this? I have other devices running buildroot Linux which also run DHCP severs and do not do this.
I've had to change the subnet mask and lease time in the esp-idf lwip dhcpserver.c to suit my needs, because configuring the subnet mask is'n't supported by my version of the esp-idf. Is there a configuration setting to stop the Espressif's EPS-IF DHCP Server from obtaining a dynamic IP address?
I get a esp_netif_handlers callback to say the app has got a new IP address & subnet mask so clearly the app is dropping it's static IP address and doing a DORA negotiation with the other DHCP server.
Any suggestions would be much appreciated.
However when running in DHCPS mode if it sees another DHCP server on the ethernet network, it drops it's configured static IP address and obtains an IP address from the other DHCP server. How can I disable the EPS-IF network or lwip layers from doing this? I have other devices running buildroot Linux which also run DHCP severs and do not do this.
I've had to change the subnet mask and lease time in the esp-idf lwip dhcpserver.c to suit my needs, because configuring the subnet mask is'n't supported by my version of the esp-idf. Is there a configuration setting to stop the Espressif's EPS-IF DHCP Server from obtaining a dynamic IP address?
I get a esp_netif_handlers callback to say the app has got a new IP address & subnet mask so clearly the app is dropping it's static IP address and doing a DORA negotiation with the other DHCP server.
Any suggestions would be much appreciated.