When I first received the device, enabling DHCP caused the device to stop talking on the network completely (verified with wireshark). No DHCP requests were sent but the unit was no longer available at it's default static address either. Reseting the unit made it accessible again at it's default static address. This was running 2.5.0 of the firmware.
I updated to 2.8.1 firmware. Now when I enable DHCP it immediately requests an address and is available on the address it is assigned. I have noticed however that according to the web interface the gateway is not set even though it is provided by the DHCP server. If I set a static address and a gateway and then revert to DHCP that gateway is maintained as the one set statically, not the one provided by the DHCP server.
If it makes a difference, the DHCP server and the gateway are not the same IP address.
Am I missing something?
I'm not totally sure if I got you right. Are you talking about the IP address that is displayed on the network setting page (and is not editable when DHCP is activated)? This field only reflects the value that is written to the configuration file. Means if you would switch off DHCP this should be the address the module would have afterwards. So if DHCP is enabled it might differ from the one the module currently uses.
I have attached some screenshots that hopefully show the issue. In the first one I configure a static IP of 192.168.0.132/24 and a gateway of 192.168.0.17. When I hit save, this information appears at the top of the page and the unit is accessible at http://192.168.0.132.
When I re-enable DHCP, the unit is assigned 192.168.0.133/24 and a gateway of 192.168.0.1. The gateway does not update though and remains at 192.168.0.17. The device is however available at http://192.168.0.133 . If I delete the gateway before enabling DHCP it just stay as none:
If you could confirm that you do not see the issue then I will assume that my DHCP server is doing something weird and will keep digging (It does work for other linux/windows hosts on the same network though).
thanks for clarification. I'd guess that as for the normal IP Address the printed value is only the one read from the configuration file, not the one that is really used. If DHCP is enabled and sets a gateway address this one should be used, but I'll double check that.
I can confirm that the gateway does appear to be set and working (I can access the device from a different network via a router) it's just that the gateway is not shown on the LAN Interface section on the status page or on the LAN config page (It still says none in both places).
Sorry, I should have checked this first I just assumed that it wouldn't be working because the information on the page was not correct. It is misleading though you must admit
Thanks for your help,
you're welcome. Meantime I double checked that the default gateway is set correctly if DHCP offers it but it is not updated on the status page. I was not aware of this inconsistent data. Since next release images are already build and under test a fix won't be included in 2.9.0 but I'm confident that it will be fixed in the later versions!