Hi;
I’m from brazil, and use the Mk RouterOS.
I need to create a filter (by the script) to display a range of ip in my leases of dhcp-Server.
for example:
I have two ranges of ips, 192.168.1.x and 10.10.1.X.
Must display all the ips 10.10.1.X that are in LEASES.
as I proceed to return through a print? preferably returning the print only the IPS.
I would thank the attention of everyone, and excuse my bad English …sorry
Letni
September 18, 2008, 11:58pm
2
This should get you started if it doesn’t do all of what you want.
http://forum.mikrotik.com/t/contrib-dhcp-pool-usage/16806/1
-Louis
Not exactly …
following … I have two ranges within the same server dhcp, must return to the ips used within each range (ie. all the ips 10.10.1.X and all the ips 192.168.1.X )
one script for:
10.10.1.13
10.10.1.30
10.10.1.50
aand other script for return:
192.168.1.40
192.168.1.41
192.168.1.43
192.168.1.44
192.168.1.240
I thank those who can help me …
Letni
September 19, 2008, 1:01am
4
You do not specify how you want them returned? E-mail / In log.
-Louis
Louis…
I can, most would not be the question … I could not be evident …
I have two ranges of IPs within the same server …
I want everyone involved range from 10.10.1.x only …
Letni
September 19, 2008, 11:54am
6
I think I understand now. You are looking for this.
Tested on 3.13
:global IpRoot 10.10.1.
:for i from=1 to= 254 do={
:if ([/ip dhcp-server lease find address="$IpRoot$i"] != "") do={
:put "$IpRoot$i"
}
}
-Louis
thank you Louis;
worked perfectly.
thank you very much for true …
and forgive my bad English again