Renewing DHCP Lease?
Tagged: Arduino
- This topic has 6 replies, 4 voices, and was last updated 3 years, 8 months ago by
smithwarner277@gmail.com.
-
AuthorPosts
-
May 3, 2017 at 10:16 am #18904
Josh Meyer
Participant*Question edited
I am using the Arduino Ethernet library to connect via a MultiConnect. It works the first time, but then when I reset it, it continuously fails, saying DHCP failed to configure.
It will fail for several hours, then work again once, then fail again. I’ve tried playing with different IP addresses and subnets, but nothing works. I’ve even tried changing the MAC, but this doesn’t help.
Is there something in the DHCP settings that could be causing this? Should I enable Server?
For anyone familiar with the Ethernet library, it fails at:
`int ret = _dhcp->beginWithDHCP(mac_address);`
May 3, 2017 at 12:26 pm #18912kevin hong
Participantcheck and make sure your arduino is setup with DHCP client and obtain IP address from eCell modem.
what IP address, netmask, default gateway and DNS are showing on your arduino
May 3, 2017 at 2:57 pm #18915Josh Meyer
ParticipantIt is failing DHCP in all the sketches I’ve tried. Then it uses an IP that I assigned within the range, but it doesn’t connect.
IP – 192.168.2.177 (assigned in software, not by gateway)
Gateway – 192.168.2.1
Netmask – 255.255.255.0
DNS Server – 192.168.2.1Does this look correct? What would make the DNS fail? The WebClient sketch worked a few times, then it stopped.
Thanks
May 3, 2017 at 3:02 pm #18916kevin hong
Participantstatic IP address assignment look correct as long as your eCell is setup using NAT mode.
you can assign DNS = 8.8.8.8 and 8.8.4.4 instead of the LAN IP of the eCell
try perform some ping test to 8.8.8.8 or 8.8.4.4 from Arduino and make sure cellular internet is consistent without any timeout and long delay
May 3, 2017 at 4:02 pm #18917Josh Meyer
ParticipantSorry, it’s not the DNS that is failing. It is the DHCP. I can’t figure out what would make it fail. I extended the timeout to 2 minutes and it still fails.
The strange thing is that it worked a few times, but just stopped.
It seems to be stalling at this line in the Ethernet.cpp file in the library:
W5100.setIPAddress(IPAddress(0,0,0,0).raw_address());-
This reply was modified 8 years, 6 months ago by
Josh Meyer.
September 26, 2017 at 7:30 am #20997Jamie Johnson
ParticipantMy Wi-Fi is not associated. I am utilizing Ethernet. I am utilizing Air Port Extreme. For what reason would i be able to not associate Wi-Fi? Please do my assignment for me please
-
This reply was modified 8 years, 1 month ago by
Jamie Johnson.
March 1, 2022 at 2:28 am #32581smithwarner277@gmail.com
ParticipantMany academic writing organizations fail to fulfil the task of delivering your projects on time. You can feel assured that your orders will always be delivered within the specified time frame when you work with Write My Assignment UK. We can safely claim to be the most punctual assignment writing service in the area.
-
This reply was modified 8 years, 6 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.