I don't know if it will work as I don't have a way to reproduce the
problem here, but I would replace the two statements
/ip dhcp-server lease disable $i;
/ip dhcp-server lease enable $i;
with
/ip dhcp-server lease remove $i;
On 11/11/2011 2:55 AM, Yusuf Sengeza wrote:
I have issues with my DHCP server.
Scenario:
Mac address is offered an ip address, then ip address bound and after two seconds the Mac
address and host disappear and status marked busy and it stays there until the expiry
period which in my case is 24 hours. Then the same mac and host is offered another ip
and the same process repeats itself. It happens with different mac addresses and hosts.
In a few minutes the DHCP server exhausts all ips then clients get error "cant get
ip from pool" hence no connection.
I have to remove them manually then clients get back online. I have tried
these script suggested from forums but it did not work:
----------------------------------
:foreach i in=[/ip dhcp-server lease find mac-address=00:00:00:00:00:00]\
do={
:log error ("Mac address zero detected: " . [/ip dhcp-server lease get $i
address]);
/ip dhcp-server lease remove $i;
}
--------------
and
------------
:foreach i in=[/ip dhcp-server lease find status="busy"]\
do={
:log error ("Busy status detected: " . [/ip dhcp-server lease get $i address]);
/ip dhcp-server lease disable $i;
/ip dhcp-server lease enable $i;
}
Any thoughts how to solve this?
I will appreciate as its three days now and its frustrating.
Regards
Yusuf
-------------- next part --------------
An HTML attachment was scrubbed...
URL:<http://www.butchevans.com/pipermail/mikrotik/attachments/20111110/ad3aa852/attachment.html>
_______________________________________________
Mikrotik mailing list
[email protected]
http://www.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1869 / Virus Database: 2092/4609 - Release Date: 11/10/11
--
Scott Reed
Owner
NewWays Networking, LLC
Wireless Networking
Network Design, Installation and Administration
Mikrotik Advanced Certified
www.nwwnet.net
(765) 855-1060
(765) 439-4253
(855) 231-6239
_______________________________________________
Mikrotik mailing list
[email protected]
http://www.butchevans.com/mailman/listinfo/mikrotik
Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS