title: mikrotik dynamic IP to static with comment
body: <p>mikrotik script automaticaly change dynamic IP to static IP with comment as Date</p>
  
  <pre><code>:local comment
  :local address
  :local mac-address
  {
  /ip dhcp-server lease
  :foreach a in=[find where dynamic] do={
  :set dhcpip [ get $i address ];
  :set mac [ get $i mac-address ];
  
  add address=$dhcpip mac-address=$mac comment="$date";
  }}
  </code></pre>
  
  <p>not work where the problem ? </p>