UniFi - USG: How to Configure Custom DHCP Options


Overview


Readers will gain knowledge of how and where to configure custom DHCP options for the UniFi Security Gateway in the UniFi Controller.

NOTES & REQUIREMENTS:
Devices used in this article:UniFi Security Gateway

Table of Contents


  1. Introduction
  2. Steps: Creating and Apply DHCP Options
  3. Related Articles

Introduction


Back to Top

DHCP options are flexible parameters used for a variety of purposes. The options come in the form of text, hex values, integers, boolean statements, MAC addresses, or IP addresses. Default options are already used by most devices on the network today. This article will explain how to configure options outside of the standard set. For introductory information on DHCP please see this article: Intro to Networking - Dynamic Host Configuration Protocol (DHCP).


Steps: Creating and Apply DHCP Options


Back to Top

Creating the Custom DHCP Option

1. In the UniFi Controller, navigate to Settings > Services > DHCP > DHCP Options.

2. Select Create New DHCP Option.

3. Give the DHCP option a name. This name is only relevant for reference. 

4. Select the code number.

NOTE: Some code numbers are not available from custom options. The reason is that the options are already defined under Settings > Networks per network. This article covers where those options are defined further down.

5. Select the type of DHCP option.

Screen_Shot_2018-11-13_at_12.27.50_PM.png

Applying the Custom DHCP Option

1. In the UniFi Controller, navigate to Settings > Networks. 

2. Edit or create a network.

NOTE: Only networks in which DHCP server is enabled are eligible for using these custom DHCP options.

3. Click on the Advanced DHCP Options header to expand this section.

Screen_Shot_2018-11-13_at_12.43.31_PM.png

4. Under Custom DHCP Options the custom DHCP option will show as available for input. 

5. After making delegations to the custom DHCP option click Save near the bottom of the page.

Pre-defined DHCP Options 

Screen_Shot_2018-11-13_at_12.46.53_PM.png

  • DHCP UniFi Controller - Option 43 (IP Address)
  • DHCP NTP Server - Option 42 (IP address)
  • DHCP Network Boot - Option 66 (Server) Option 67 (Filename)
  • DHCP Time Offset - Option 2 
  • DHCP TFTP Server - Option 66 
User Tip: See here (external link) for a comprehensive list of DHCP options.

Related Articles


Back to Top

Intro to Networking - Dynamic Host Configuration Protocol (DHCP)


We're sorry to hear that!