MikroTik Solutions

Diff
Login

Diff

Differences From Artifact [b5e291b862]:

To Artifact [608bb266ae]:


594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
        $addCL ("  /ip dhcp-client add interface=$lanPort disabled=no comment=\"defconf\";")
      } else={
        :if ($dhcpMode = 1) do={
          $addDL ("#|     IP address $ipNetwork.1/24 is set on $lanPort (LAN port)")
          $addDL "#|     DHCP Server: enabled;"
          $addCL ("   /ip pool add name=\"default-dhcp\" ranges=$ipNetwork.10-$ipNetwork.254;")
          $addCL ("   /ip dhcp-server")
          $addCL ("     add name=defconf address-pool=\"default-dhcp\" interface=$lanPort lease-time=10m disabled=no;")
          $addCL ("   /ip dhcp-server network")
          $addCL ("     add address=$ipNetwork.0/24 gateway=$ipNetwork.1 dns-server=$ipNetwork.1 comment=\"defconf\";")
          $addCL ("  /ip address add address=$ipNetwork.1/24 interface=$lanPort comment=\"defconf\";")
        } else={
          $addCL ("  /ip address add address=$ipNetwork.1/24 interface=$lanPort comment=\"defconf\";")
        }
      }







|







594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
        $addCL ("  /ip dhcp-client add interface=$lanPort disabled=no comment=\"defconf\";")
      } else={
        :if ($dhcpMode = 1) do={
          $addDL ("#|     IP address $ipNetwork.1/24 is set on $lanPort (LAN port)")
          $addDL "#|     DHCP Server: enabled;"
          $addCL ("   /ip pool add name=\"default-dhcp\" ranges=$ipNetwork.10-$ipNetwork.254;")
          $addCL ("   /ip dhcp-server")
          $addCL ("     add name=defconf address-pool=\"default-dhcp\" interface=$lanPort disabled=no;")
          $addCL ("   /ip dhcp-server network")
          $addCL ("     add address=$ipNetwork.0/24 gateway=$ipNetwork.1 dns-server=$ipNetwork.1 comment=\"defconf\";")
          $addCL ("  /ip address add address=$ipNetwork.1/24 interface=$lanPort comment=\"defconf\";")
        } else={
          $addCL ("  /ip address add address=$ipNetwork.1/24 interface=$lanPort comment=\"defconf\";")
        }
      }