Artica Wiki

Artica Meta: DHCP service policy

Define the DHCP settings, scopes and reservations of your Artica appliances once on Artica Meta and apply them to nodes and groups.

A DHCP service policy holds the DHCP configuration of your Artica appliances.
You define it once on Artica Meta.

PolicyDHCPArticaMeta.png

Meta sends it to every node and group attached to the policy when you click Apply.

The policy carries three parts:

Each part can stay Not defined.
A part that is not defined is not sent: each node keeps its own values for it.

Create the policy

The Policies page of Artica Meta

Creating a DHCP policy

The editor opens on the Common settings tab.
Nothing is sent to the nodes until you click Apply.

Common settings

The common settings are global settings of the DHCP server of each node.
Click Edit section to change them.

Common settings of the DHCP policy

Setting Effect on each node
Use hostnames on fixed reservations The node resolves the IP address of each fixed reservation and uses the hostname when the resolution succeeds.
Use the local computers database The fixed computers of the Artica computers database are added to the DHCP configuration. Reservations need this setting.
Save new computers in the local database A new client of the DHCP server is saved in the Artica computers database.
Fix the addresses of new computers automatically A new client is saved as a fixed DHCP reservation.
Update the DNS database dynamically The DHCP server updates the PowerDNS database from its leases. The TSIG key stays local on each node.

A setting left as Not defined keeps the value of each node.
The card shows the Artica default for information.

A policy that defines reservations and sets Use the local computers database to Off is refused.
The reservations would not be served.
Leave the setting Not defined, or set it to On.

Scopes

A scope is identified by its network, for example 10.10.20.0/24.
The policy never stores an interface name.
Each node places the scope on the interface that already serves this network.
Otherwise, it uses the first interface whose IPv4 address belongs to the network.

Scopes of the DHCP policy

Editing a scope

A scope holds the address range, the gateway, the broadcast address, the DNS servers, the domain name, the lease time, PXE boot options, the proxy auto-configuration address and the routes given to the clients.
Switch off Scope enabled to keep a scope on the nodes without serving it.

How the nodes apply the scopes:

Emptying the scopes of a policy does not stop DHCP on a node.
To stop it, detach the policy, then change the scopes in the console of the node.

Limits: 64 scopes per policy, lease time up to 31,536,000 seconds (one year).

Targets

Open the Targets: nodes and groups tab.

Targets of the DHCP policy

The DHCP policy only applies to nodes running Artica.
A node without Artica is shown as rejected until Artica is detected on it.

Members of an Artica cluster are not redirected to their master for this policy.
Each node, slave included, receives its own DHCP configuration, because the scopes depend on the network cards of each machine.

Apply

Click Apply in the editor or in the policy list.
Meta freezes the content as a new revision and sends it to the targets.
Only the nodes whose configuration differs are changed.
When the policy has already been applied, a new target receives it automatically.

On each node, the policy:

Delivery status

The Delivery status tab shows each target node.

Delivery status of the DHCP policy

Column Content
Delivery status Not sent, In progress, Up to date, Rejected or Suspended
Cluster role Standalone, master or slave
Services State of the proxy, HotSpot and DHCP services, and whether Kea runs, read every hour
Report What the node did: scopes applied or ignored, settings written, reservations

The Reservations button opens the reservations the node reports in its inventory.

Common rejections:

Report Cause
unsupported: no Artica The node does not run Artica.
Kea, or dhcpd -t failed The DHCP server of the node is Kea, or the configuration is refused by the DHCP server.
merged policies exceed the limit of 5000 DHCP reservations Several policies reach this node and their reservations add up to more than 5,000.
unsupported: node does not support DHCP reservations, or its DHCP inventory is not refreshed yet The node is too old for reservations, or Meta has not read its inventory yet. The whole policy waits, scopes included. Meta reads the inventory again within 10 minutes.

Several policies on one node

A node can receive several DHCP policies, directly and through its groups.
Meta merges them in the order they were attached:

Automatic import from a node

Meta reads the DHCP inventory of each Artica node every hour.
When a node already runs a DHCP server, Meta turns its configuration into a policy, once:

Conditions:

The import happens once per node.
Deleting the imported policy does not trigger a new import.
To import again, open the DHCP inventory of the node and click Reimport.
Meta refuses it while a DHCP policy is attached to the node or to one of its groups.

Release

When the last DHCP policy leaves a node, the node is released.
The lock of its local console is removed.
The reservations Meta wrote on the node become local reservations of the node.
They keep serving the same addresses until you change them in the local console.