I'm using an Arduino Mega and an Ethernet Shield in my project. However, usually the board is not assigning my desired IP address; instead, it assigns a random one.
The IP address I assigned does not conflict with any other IP addresses on the network.
I replaced the Ethernet Shield with another one, but the problem still persists.
I noticed that when I completely disconnect and then reconnect the power, I get the desired IP address. However, when I press the reset button, it doesn't work. Could it be a hardware issue?
I don't know much about these shields, can't they be reset from the sketch? Seems stupid that they need a hard reset to have old settings cleared. I say they but it's probably different for different shields as well.
It fails to configure Ethernet using DHCP
But when disconnect and reconnect it gets an IP from my networks IP Range.
It's a shield with SD Card slot , I think it's Wiznet W5100.
I will try to reset it from the sketch later.
You have to explain those two lines. First one tells us it can't get IP from network (DHCP), second that it gets an IP from network after disconnect and reconnect (of what?)