DHCP Relay Agent Information Option
This feature adds DHCP option 82 (DHCP relay information option). It can help protect the FortiGate against attacks such as spoofing (or forging) of IP and MAC addresses, and DHCP IP address starvation.
The following CLI variables are added to or modified in the config system dhcp server
> config reserved-address
command:
circuit-id-type {hex | string} |
DHCP option type, hex or string (default). |
circuit-id <value> |
Option 82 circuit ID of the client that will get the reserved IP address. Format: vlan-mod-port
|
remote-id-type {hex | string} |
DHCP option type, hex or string (default). |
remote-id <value> |
Option 82 remote ID of the client that will get the reserved IP address. Format: the MAC address of the client. |
type {mac | option82} |
The DHCP reserved-address type, either mac (default) or option82 (newly added). |
To create an IP address assignment rule using option 82 in the GUI:
- On the FortiGate, go to Network > Interfaces.
- Edit and existing port, or create a new one.
- Ensure that the Role is either LAN or Undefined.
- Enable DHCP Server.
- Configure address ranges and other settings as needed.
- In the IP Address Assignment Rules table, click Create New. The Create New IP Address Assignment Rule pane opens.
- For the Type, select DHCP Relay Agent.
- Enter the Circuit ID, Remote ID, and the IP address that will be reserved.
- Click OK to create the rule.
To create an IP address assignment rule using option 82 with the CLI:
config system dhcp server edit 1 set netmask 255.255.255.0 set interface "port4" config ip-range edit 1 set start-ip 100.100.100.1 set end-ip 100.100.100.99 next edit 2 set start-ip 100.100.100.101 set end-ip 100.100.100.254 next end config reserved-address edit 1 set type option82 set ip 100.100.100.12 set circuit-id-type hex set circuit-id "00010102" set remote-id-type hex set remote-id "704ca5e477d6" next end next end