Hi,
I have an Arduino Uno with an Arduino ETHERNET Shield 2 on top.
When I connect this to my MikroTik Routerboard RouterBOARD 750G r3 the Arduino looses its IP address within few minutes.
Also then cannot ping the Arduino anymore.
When I connect the Arduino to my FritzBox 7590, no issues. Connection ist stable since 24hours…
So my guess is that I have to change something in my MikroTik Router config to keep the connection alive without time limitation.
Your help is very appreciated.
Thanks, Tom
[b]Arduino code snippet[/b]
#include <SPI.h>
#include <Ethernet.h>
// MAC address (printed on a sticker on the shield)
byte mac[] = {0xA8, 0x61, 0x0A, 0xAE, 0x96, 0xA7};
IPAddress ip(192, 168, 176, 170);
void setup()
{
....
Ethernet.begin(mac, ip);
....
#ifdef DEBUG
Serial.println(" Server IP:" + DisplayMyIpAaddress(Ethernet.localIP())); [u]// for few minutes correct IP address is printed, then 0.0.0.0[/u]
#endif
}
void loop()
{
...
Ethernet.maintain();
...
}