Using the pattern determined in network planning for the site, this zorctl
initialization step will build a custom configuration file for dhcpd
and restart that service. The configuration file changes will specify the pools and ranges which DHCP is to manage, as well as other DHCP response data to be used with PXE booting storage nodes.
To configure DHCP, use the following command:
zorctl init dhcp
As a reminder, to see the full list of options use zorctl init dhcp help
Required Parameters
The Swarm network requires to have an upper or lower (or both) reserved range defined. At least one of these parameters must be provided.
--dhcp-reserve-lower DHCP_RESERVE_LOWER
The number of IP addresses to reserve in the lower subnet range (default is 0)
--dhcp-reserve-upper DHCP_RESERVE_UPPER
The number of IP addresses to reserve in the upper subnet range (default is 0)
Additional DHCP Parameters
The following optional parameters allow further customization of the DHCP configuration.
--dhcp-lease-default DHCP_LEASE_DEFAULT
The default DHCP lease time for storage nodes, in seconds (default is 172800)
--dhcp-lease-max DHCP_LEASE_MAX
The maximum allowed DHCP lease time for storage nodes, in seconds (default is 604800)
--dhcp-transient-percent DHCP_TRANSIENT_PERCENT
The percentage of the DHCP managed range for transient clients (default is 50)
Other Optional Parameters
The following parameters are concerned with other related services and information about those services provided in DHCP responses. The default values come from the initialization wizard as well as the prior configuration scan, but the values may be overridden here.
--dns-domain DNS_DOMAIN
The DNS domain name for the Swarm cluster. This is typically a subdomain of a larger organization DNS domain.
--dns-servers DNS_SERVERS
A comma-delimited list of DNS servers to be used by Swarm. If spaces are included in the list, then the entire list will need to be wrapped in quotes.
--ntp-servers NTP_SERVERS
A comma-delimited list of NTP servers to be used by Swarm. If spaces are included in the list, then the entire list will need to be wrapped in quotes.
Next, install a Swarm license.