smenendez
Staff
Created on
09-14-2015
05:54 AM
Edited on
08-24-2023
06:46 AM
By
Kush_Patel
Article Id
197809
Description
DHCP server has the ability to include DHCP codes and options. Voice over IP devices, such as IP phones need to be able to retrieve their configuration name files from a Management VOICE server on the network, and sometimes is required that more than one TFTP server is to be used by the clients. The client, in this case, the Cisco Phone, will send a request with option 150 to the DHCP server to obtain the needed information.
The format of the option is:
The format of the option is:
Code Len IPv4 Configuration Server Address(es)For more information refer to the RFC5859
+-----+-----+-----+-----+-----+-----+
| 150 | n | IPv4 address | ...
+-----+-----+-----+-----+-----+-----+
In the FortiOS Option codes are represented in a option value/HEX value pairs.
Scope
FortiGate.
Solution
To have a list of TFTP Server Addresses, both IP addresses will need to be appended in a hexadecimal notation.
For example:
Server1: 192.168.1.1 = IP Hex: C0A80101
Server2: 192.168.1.2 = IP Hex: C0A80102
For example:
Server1: 192.168.1.1 = IP Hex: C0A80101
Server2: 192.168.1.2 = IP Hex: C0A80102
config system dhcp serverThe option contains both IP addresses appended in hexadecimal notation.
edit 3
set default-gateway 1.1.1.1
set interface "port1"
config ip-range
edit 1
set end-ip 10.10.10.50
set start-ip 10.10.10.1
next
end
set netmask 255.255.255.0
set option1 150 'C0A80101C0A80102'
You can use the 'DHCP option' 150 for TFTP server on GUI as follows :
You can expand 'Advanced' under 'DHCP Server'. Click on 'Create New' under 'Additional DHCP Options':