5.2. IPv4 DHCP Client

In cOS Core, any Ethernet interface or VLAN interface can act as an IPv4 DHCP client so that the IPv4 address and network for the interface can be assigned by an external DHCP server. This feature can be enabled or disabled by changing the Enable DHCP property for the interface object in the cOS Core configuration.

The default setting for different interface types are as follows:

[Important] Important: IPv4 DHCP clients are not supported by HA clusters

The IPv4 DHCP client is not supported for interfaces in an HA cluster. If it is enabled in a cluster, this will result in the error message Shared HA IP address not set when trying to commit the configuration.

DHCP Assignment Process Steps

As soon as DHCP is enabled on an interface and the changed cOS Core configuration is deployed, the following will occur:

  1. A DHCP lease request is issued on the DHCP enabled interface.

  2. A listening DHCP server will issue a lease to the interface.

  3. cOS Core will change the IPv4 address and network of the interface to become the values in the lease.

  4. The cOS Core address book objects associated with the interface will lose their original values and take on the value 0.0.0.0 for the IPv4 address and 0.0.0.0/0 for the IPv4 network. The address book objects will not show the DHCP assigned values although these will be shown when examining the properties of the interface configuration object.

    In addition to the interface address objects being assigned values, the DNS address book objects will also be assigned values if these were sent in the lease. These will allow cOS Core to look up FQDNs when required. For example, when processing certificates.

The same process of requesting a lease will also take place if cOS Core is restarted. If the DHCP is subsequently disabled on an interface, the administrator will need to manually assign the IPv4 address and network.

[Note] Note: Web Interface IP address icons change with DHCP

When IP addresses are allocated to an interface through DHCP, the address icons change in the Web Interface display so they have an asterisk in the lower left corner.

A Renewed DHCP Lease Can Cause cOS Core Reconfiguration

If an interface in the firewall has its DHCP lease renewed, then the following should be noted:

Example 5.1. Enabling an Ethernet Interface as a DHCP Client

This example shows how to enable the Ethernet interface If1 as a DHCP client.

Command-Line Interface

Device:/> set Interface Ethernet If1 DHCPEnabled=Yes

InControl

Follow similar steps to those used for the Web Interface below.

Web Interface

  1. Go to: Network > Ethernet > If1
  2. Select Enable DHCP
  3. Click OK