Provisioning from HTTP Server using DHCP Option 67
You can provision the device through HTTP using DHCP Option 67. In this setup, DHCP Option 67 informs the device of the URL address of the HTTP server from where it can download the configuration file. This provisioning method is possible only if the DHCP server allows configuration of DHCP Option values for different equipment in the network.
Upon device startup, the device sends a DHCP request. The DHCP response received from the DHCP server contains IPv4 networking (e.g., management IP address and DNS server) information. In addition, the response includes DHCP Option 67, which specifies the URL address of the HTTP server where the device's configuration file is located. The device then automatically downloads the configuration file from this HTTP server.
Below is an example of a configuration file (dhcpd.conf) of a Linux-based DHCP server, showing the required format of Option 67:
ddns-update-style ad-hoc;
default-lease-time 3600;
max-lease-time 3600;
class "AudioCodes" {
match if(substring(hardware, 1, 3) = 00:90:8f);
}
subnet 10.31.0.0 netmask 255.255.0.0 {
pool {
allow members of "AudioCodes";
range 10.31.4.53 10.31.4.75;
option routers 10.31.0.1;
option subnet-mask 255.255.0.0;
option domain-name-servers 10.1.0.11;
option bootfile-name "INI=http://www.corp.com/master.ini";
option dhcp-parameter-request-list 1,3,6,51,67;
}
}
|
●
|
The value of Option 67 must include the URL address, using the following syntax: "INI=<URL with ini file name>" |
|
●
|
This method is NAT-safe. |
|
➢
|
To configure the device for automatic provisioning through HTTP/S using DHCP Option 67: |
|
1.
|
Enable DHCP client functionality, by configuring the following ini file parameter: |
DHCPEnable = 1
|
2.
|
Enable the device to include DHCP Option 67 in DHCP Option 55 (Parameter Request List) when requesting HTTP provisioning parameters from a DHCP server, using the following ini file parameter: |
DHCPRequestTFTPParams = 1
|
3.
|
Restart the device with a save-to-flash for your settings to take effect. |