Configure DHCP Server for Apstra ZTP
When a device connects to a network, Dynamic Host Configuration Protocol (DHCP) automatically assigns an available IP address to it. Apstra, by default, uses a Kea DHCP server for device management (as of Apstra version 5.0.0, previously it was ISC). If you set up a different DHCP server, you’re responsible for configuring the same details as described here.
DHCP Parameters
The DHCP file includes the following details:
Field Name |
Description |
---|---|
Domain Search ( |
Option to configure multiple search domains (Example entry: |
Domain Name ( |
Option to indicate the domain name to use (Example entry: |
Domain Name Servers ( |
Option to list all of the DNS IP addresses. To specify more than one value, separate them with a comma (,). For the parsing of the file to succeed, each line must end with a semicolon (;) |
TFTP Server IP ( |
IP address of the TFTP server |
Subnet / subnet |
CIDR notation of IPv4 subnet (Example entry:
|
Subnet / IP Pools / IP Range Start |
The first address of the IP subnet available for dynamic assignment |
Subnet / IP Pools / IP Range End |
The last address of the IP subnet available for dynamic assignment |
Subnet / Router |
The default gateway IP address |
Reservation Mode |
Defines the reservation modes to use for this subnet |
Host Reservations / Hardware Address |
The host MAC address |
Host Reservations / Fixed IP Address |
The fixed IP address allocted for the host |
Reservation Mode Default |
All, Global, Out of Pool, or Disabled |
Global Host Reservations / Hardware Address |
The host MAC address |
Global Host Reservations / Fixed IP Address |
The fixed IP address allocted for the host |
Field Name |
Description |
---|---|
valid-lifetime ( |
Defines the default IP lease validity duration |
max-valid-lifetime ( |
Defines the maximum IP lease duration |
match-client-id ( |
To indicate if server will use client id for lease lookups |
interfaces-config / interfaces ( |
The interfaces on which the DHCP server would listen for DHCP messages |
lease-database / type ( |
Defines the lease-database type |
lease-database / name ( |
The file path inside DHCPD container where lease information would be stored |
lease-database / lfc-interval ( |
The intervals at which DHCP will initiate lease file cleanup |
subnet / id (id) |
|
subnet ( |
CIDR notation of IPv4 subnet |
option-date / name |
The standard DHCPv4 option name |
option-date / code |
The standard DHCPv4 option code |
option-date / space |
space |
option-date / data |
The value passed to the specified option |
option-def /name ( |
The standard DHCPv4 option name |
option-def / code ( |
The standard DHCPv4 option code |
option-def / space ( |
space |
option-def / type ( |
The value passed to the specified option |
client-classes / name ( |
"arista", "cisco", "sonic" |
client-classes / test ( |
test |
control-socket / socket-name ( |
The location of UNIX socket file used to communicate with control agent |
control-socket / socket-type ( |
The DHCP socket type |
loggers / name ( |
name |
loggers / severity ( |
Defines the logging severity level |
loggers / debuglevel ( |
Specifies the level of debug message when severity is set to debug |
loggers / output |
output |
reservation-mode ( |
Types of reservations allowed (none, all, global, out of pool, disabled) |
reservations-global ( |
Indicates if the server should look up global reservations |
reservations-in-subnet
( |
Indicate if the server should look up in-subnet reservations |
reservations-out-of-pool
( |
Specify if the server can assume that all reserved addresses are out-of-pool. It can be ignored if "reservation-in-subnet" is false |
reservations / Hardware Address |
Used to list global reservations |
reservations / Fixed IP Address |
The fixed IP address allocated for the host |
Use GUI Configurator to Configure DHCP
You can set up optional parameters that the DHCP services will send to every device that asks for DHCP services. You have the option of configuring these parameters at a later time via configlets. (If you define these parameters in the DHCP service, don't try to set them up again via Apstra; the device OS may return an error.)
If in doubt, don't enter random parameters; it may result in timeouts as a service tries to resolve IP addresses.
Use GUI Code Editor to Configure DHCP
Use Text Editor to Configure DHCP
All configuration files are owned by root
. You must use sudo
to run commands as root
using the sudo
command or after becoming root
with the sudo
-s
command.