Skip to main content
leroy_hack
New Member
December 15, 2020
Question

DHCP server setup

  • December 15, 2020
  • 1 reply
  • 7202 views

I want to migrate from an existing DHCP server to using the fortigate as the DHCP server. Is there a way to program the DHCP server on the forigate including MAC reservations prior to putting it into service? I tried to add the reservations, but when I turned the DHCP server off and back on again, the entries were gone. 

 

Maybe it has to be done via a script? Is there an simple example script? Or a best practice example?

 

Using firmware 5.6.2 build1486

    1 reply

    lobstercreed
    New Member
    December 15, 2020

    Always best to do some searching on the forum before posting.  :) 

     

    There was a recent thread regarding this:

    https://forum.fortinet.com/tm.aspx?m=190549

     

    leroy_hack
    New Member
    December 15, 2020

    I did read that thread and while it addressed adding MAC addresses in bulk, it didn't address the question that I am asking: What is the best way to program the DHCP server offline?

     

    When I use the GUI, the entries are not persistent when I turn off the DHCP server. The DHCP server has to be on to add the MAC address reservations, but when I turn it off again, the MAC address reservations are gone.

    lobstercreed
    New Member
    December 15, 2020

    Why are you turning it on and off?  That's never going to work.  I'm also not sure what you mean by "offline".  You can do any CLI changes (script) offline and restore the config -- as long as you haven't made any mistakes everything will work great.  So you can do everything in one fell swoop.  Turn on DHCP and load all your reservations, etc.  That's what that other thread was trying to help with...