Fortinet white logo
Fortinet white logo

Administration Guide

Configuring a DHCP relay

Configuring a DHCP relay

You can configure a DHCP relay on any layer-3 interface.

Using the GUI:
  1. Go to System > Network > Interface > Physical.
  2. Select Edit for an interface.
  3. Select Enabled under DHCP Relay.
  4. Enter the IP addresses for the relay servers, separated by a space.
  5. If you want to include Option-82 data, select Option-82.
  6. Select Update.
Using the CLI:

config system interface

edit <interface-name>

set dhcp-relay-service (enable | disable)

set dhcp-relay-ip <ip-address1> [<ip-address2> ... <ip-address8>]

set dhcp-relay-option82 (enable | disable)

next

end

In the following example, the DHCP server has address 192.168.23.2:

config system interface

edit "v15-p15"

set dhcp-relay-service enable

set dhcp-relay-ip "192.168.23.2" -> the DHCP server address

set ip 192.168.15.1 255.255.255.0 -> the DHCP client subnet

set allowaccess ping ssh snmp telnet set snmp-index 53

set vlanid 15

set interface "internal"

next

end

Configuring a DHCP relay

Configuring a DHCP relay

You can configure a DHCP relay on any layer-3 interface.

Using the GUI:
  1. Go to System > Network > Interface > Physical.
  2. Select Edit for an interface.
  3. Select Enabled under DHCP Relay.
  4. Enter the IP addresses for the relay servers, separated by a space.
  5. If you want to include Option-82 data, select Option-82.
  6. Select Update.
Using the CLI:

config system interface

edit <interface-name>

set dhcp-relay-service (enable | disable)

set dhcp-relay-ip <ip-address1> [<ip-address2> ... <ip-address8>]

set dhcp-relay-option82 (enable | disable)

next

end

In the following example, the DHCP server has address 192.168.23.2:

config system interface

edit "v15-p15"

set dhcp-relay-service enable

set dhcp-relay-ip "192.168.23.2" -> the DHCP server address

set ip 192.168.15.1 255.255.255.0 -> the DHCP client subnet

set allowaccess ping ssh snmp telnet set snmp-index 53

set vlanid 15

set interface "internal"

next

end