Page 1 of 1

DHCP problem

Posted: Wed Aug 06, 2014 4:07 am
by mykelm03
I got a DHCP leases problem to my WAN. Error on below,

Everytime this happens, my RB hangs and affecting the LAN. Is there any work around for this? Atleast, maybe a script that will release/renew the WAN every 4hours. Need to do a power on/off just to bring it back.

My RB is on the latest updates and firmware.

Appreciate your response on this.

Re: DHCP problem

Posted: Wed Aug 06, 2014 5:42 am
by mykelm03
would someone check/verify if this is the correct script that i needed to release/renew IP for my WAN connection?

[admin@MikroTik] /system script> print
Flags: I - invalid
0 name="WAN check" owner="admin" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive
last-started=aug/06/2014 10:08:42 run-count=1
source=:if ( [/ping 8.8.8.8 interface=ether1-WAN count=6 ] = 0 ) do={/ip dhcp-client release}
[admin@MikroTik] /system script>
[admin@MikroTik] /system script>
[admin@MikroTik] /system script> .. scheduler
[admin@MikroTik] /system scheduler> print
Flags: X - disabled
# NAME START-DATE START-TIME INTERVAL ON-EVENT
0 dhcp check startup 5m /system script run
[admin@MikroTik] /system scheduler>