Configuring a DHCP relay
You can configure a DHCP relay on any layer-3 interface.
Using the GUI:
- Go to System > Network > Interface > Physical.
- Select Edit for an interface.
- Select Enabled under DHCP Relay.
- Enter the IP addresses for the relay servers, separated by a space.
- If you want to include Option-82 data, select Option-82.
- 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