Checkpoint Enable DHCP Server and DHCP Options 66, 67

As part of a lab for Arista, I have created a DHCP server on the Checkpoint firewall. This is specifically to get DHCP options 66 and 67 to the Arista switch for Zero Touch Provisioning (ZTP).

DHCP option 66 and 67 direct devices to download configuration.
Option 66: provides a TFTP address. This would be the URL – tftp://10.10.10.10
Option 67: provides the path to the file. This could be the URI – test.cfg

tftp://10.10.10.10/test.cfg

Enable and Basic DHCP Configuration

DHCP has been enabled on CPGW3, interface 172.17.3.0/24.
To do this, navigate to the web page of the Checkpoint firewall. Do not use the Checkpoint Smart Console, DHCP configuration is not here.
https://172.17.2.103

Add a new DHCP server, the options are basic. Once configured this will start handing out DHCP addresses.

Adding DHCP Options

Checkpoint uses ISC DHCPD, so options must be set in the Linux side of Checkpoint using the expert bash shell.
If this is the first time using the expert bash shell, it will need to have a password applied.

Once inside the expert shell, we can view the current DHCP configuration.

To add in the options, the following needs to be added. A full list of the options and names can be found here. If you look at that link, the option names match to what the configuration needs to be.

The new configuration for the DHCP server will look like…

Now that has been completed, the next step is to restart the DHCP service. Do nor disable/enable DHCP from the GUI, this will remove the DHCP options that were added and only add in the configuration that can be applied from the GUI.

Now the options will be there are ready to be provided if they are requested. To test, I booted up a brand-new Arista virtual switch and when requesting the DHCP, the return included options 66 and 67.

From the Arista console it shows it has found the bootfile; Boot File: tftp://172.17.2.10/test.cfg

TFTP Server Configuration

And finally, the last part to make this work, is to configure the TFTP server where the DHCP options are pointing. I have used Tftpd64 as my tftp server.

Leave a Comment

Your email address will not be published. Required fields are marked *