The following section covers examples for specific advanced DHCP configurations.
Link-selection sub-option
This example describes how to configure BlueCat DNS/DHCP Servers (BDDS) from the Address Manager UI to receive the link-selection sub-option (also known as Option 82 sub-option 5) information from the DHCP relay agent. Once configured, the BDDS uses this information to identify the correct subnet for allocating the IP address to the DHCP client.
-
Create a DHCP client class:
- Select the IPAM tab in the sidebar, then select DHCP settings.
- On the DHCP client classes tab, select New.
- Under General, set the following parameters:
- Name—enter a name for the client class. The name can't contain spaces.
- Description—enter a description for the client class.
- Match option—select the following option:
-
Custom—enter a raw string that maps directly to a Boolean expression, using the syntax and grammar supported by the ISC’s DHCP daemon. Don't end the string with a “;” semicolon, because one is automatically added when the condition is deployed:
(binary-to-ascii(10, 8, ".", option agent.link-selection) = "<subnet IP address>")
-
- Under Change control, add comments, if required.
-
Select Create.
The new client class is now displayed in the DHCP client classes table.
-
Add the client class to the deployment options for the network containing the range for that network:
-
Select the IPAM tab in the sidebar, then select IPv4 blocks.
-
Navigate to the IPv4 network for which you want to add the client class.
-
Select the Deployment options tab.
-
Select .
- Under General, set the following parameters:
- Name—select the Allow Class Members of (35) deployment option.
- DHCP client class—select the DHCP client class created in step 1.
- On the Servers tab, select the servers or server
group to which the option applies:
- All servers—applies the deployment option to all servers in the configuration.
- Server group—applies the deployment option to
a specific server group in the configuration. Select a server group
from the drop-down list.Attention: You cannot configure DHCP deployment options on a multi-primary server group.
- Server—applies the deployment option to a
specific server in the configuration. Select a server from the
drop-down list.Attention: You cannot configure DHCP deployment options on servers that are part of a multi-primary server group.Note: You can't override deployment options set at the configuration level from the server group level if the deployment option is applied to a specific server within a server group.
- Under Change control, add comments, if required.
- Select Create or Create and add
another.
The option is now displayed in the Deployment options table.
-
-
After deployment, check the syntax of the dhcpd.conf file to validate the deployment.
Result: The BDDS processes the information contained in the link-selection sub-option and assigns an IP address from the specified subnet to the DHCP client.