Table of Contents
The IP address of a specific client can be assigned based on its device MAC address and connection type. During a server reboot, you can specify a specific IP address by using a DHCP scope, which allows each device to receive the same IP address.
In order to reserve DHCP in Fortigate, you will need to create a new DHCP reservation.
Reserve an IP Address using GUI
1. Login into the FTG | Network > Interface. Double click on a interface to edit it.
2. In the Edit interface windows, scroll down under DHCP section click to expand Advanced options.
![](https://s3.amazonaws.com/s3.bonguides.com/2022/11/OzZaFWxfjoTmCrkmx0OhKKQI9BZ2f0OLsCJo0M4NI4yB6gEqi9LT2ybyvJ9u.jpg)
3. Scroll down under IP Address Assignment Rules. Click Create New button.
![](https://s3.amazonaws.com/s3.bonguides.com/2022/11/uks60eEEcAIKbP7kqHzPv2ogODpbQZFhEq4Cm8vET5lIANdoRuycuYjdXtBU.jpg)
4. Enter the MAC address of a server or client then set a reserve IP address.
![](https://s3.amazonaws.com/s3.bonguides.com/2022/11/OFOC7azrg4wDzvthN1eN28aXIIzBkqVTYqERuTYMRdV9hOKNOZg9OcDBjPVM.jpg)
Reserve an IP Address using DHCP list
The second way, you can hover on an interface then select View DHCP Clients option.
![](https://s3.amazonaws.com/s3.bonguides.com/2022/11/p5AVqYAlPv6ry4IZYnQxDZMykqkKDdDHGeqAxY1xvBGUlf9u2yDBHuinOddG.jpg)
Search a client using its MAC address. Select it then create a new reservation.
![](https://s3.amazonaws.com/s3.bonguides.com/2022/11/RCDMRfRtTgImERqtoMRJlsvoYDT8g1RUnrYAY3FBiJfuVTHSn80frthMAeYP.jpg)
Click OK button and you’re done.
![](https://s3.amazonaws.com/s3.bonguides.com/2022/11/VnujEQUXmsXtH387c55vHY0GbXSVjLZOI09HZjpF0q6kO3FfmRxTF7X6tWCT.jpg)
Reserve an IP Address using CLI
1. Get the list of DHCP servers in the FTG.
config system dhcp server
show
gw17 # config system dhcp server
gw17 (server) # show
config system dhcp server
...
next
edit 3
set default-gateway 10.10.0.1
set netmask 255.255.0.0
set interface "internal2"
...
next
2. edit 3 (this is the DHCP scope you want to create the reservation in). Then create a reserve IP.
edit 3
config reserved-address
show
edit 1
set type mac
set ip 10.10.230.5
set mac 48:65:ee:13:da:ab
set description DEV-Server
show
end
gw17 (server) # edit 3
gw17 (3) # config reserved-address
gw17 (reserved-address) # show
gw17 (reserved-address) # edit 1
new entry '1' added
gw17 (1) # set type mac
gw17 (1) # set ip 10.10.230.5
gw17 (1) # set mac 48:65:ee:13:da:ab
gw17 (1) # set description DEV-Server
gw17 (1) # show
config reserved-address
edit 1
set ip 10.10.230.5
set mac 48:65:ee:13:da:ab
set description "DEV-Server"
next
end