Hi, we have several Arduino Yun devices connected to our office network via the Ethernet port. They connect successfully, but after what appears to be two hours on the network, connection to the network is lost. Is there anything in the advanced configuration here that I'm missing? Our IT department can't seem to see anything unusual in their setup that might cause this.
Do they do anything during that time?
Is the interval consistent?
PaulS:
Do they do anything during that time?Is the interval consistent?
It would seem so, yes, and effecting all devices. We have 10 in total. I wonder if they have a short lease set and it's unable to renew cleanly?
I don't have a Yun, but if you are using dhcp, are you renewing the dhcp lease? Check your router's dhcp leases. That may help you troubleshoot it.
If they are all kicked off after a consistent interval, I'd suspect that it is your network that is the culprit.
Clients? Servers?
SurferTim:
I don't have a Yun, but if you are using dhcp, are you renewing the dhcp lease? Check your router's dhcp leases. That may help you troubleshoot it.
I've put this to our IT department again, hopefully it will correlate with a lease time.
If it does, then you may need to call Ethernet.maintain() to renew the lease. The ethernet shield requires that call to renew its lease. Some routers are very picky about that. If the localnet device loses it's lease, the router might ignore that device.
SurferTim:
If it does, then you may need to call Ethernet.maintain() to renew the lease. The ethernet shield requires that call to renew its lease. Some routers are very picky about that. If the localnet device loses it's lease, the router might ignore that device.
The Ethernet is accessed over the Bridge on the Yun, there's no shield to maintain as far as I'm aware? Unless I'm mistaken of course, which is highly likely!
I don't know about the Yun. The wifi shield used with the earlier Arduinos does its lease renewal automatically in the firmware. The ethernet shield does not. It would be where I would check first tho.
SurferTim:
I don't know about the Yun. The wifi shield used with the earlier Arduinos does its lease renewal automatically in the firmware. The ethernet shield does not. It would be where I would check first tho.
Thanks for the info, but the Yun has a tiny Linino linux computer on the board that the Ethernet is attached to. Arduino developed a bridge between the Arduino and the Linino box. The problem, I guess, is to do with Linino and our local network here.
OK. Did you check with your IT and determine if the dhcp lease is being renewed?
Since the Yun is Linux, have you tried using ifconfig to check the status of the interface?
SurferTim:
OK. Did you check with your IT and determine if the dhcp lease is being renewed?Since the Yun is Linux, have you tried using ifconfig to check the status of the interface?
So it seems assigning a static IP solved the issue for us. I'm not sure if it's an issue with the Yun firmware or perhaps my Sketch, but it would appear that our implementation/boards have issues with network leases?
danielst-vccp:
So it seems assigning a static IP solved the issue for us. I'm not sure if it's an issue with the Yun firmware or perhaps my Sketch, but it would appear that our implementation/boards have issues with network leases?
I don't know. I don't own one. But I guess I made the right call by getting a RPi. It doesn't have that problem.