Configure Multi-Subnet DHCP¶
Overview¶
Orchestrator can serve PXE leases to routed admin-network subnets through DHCP
relay agents. Each entry under Networks.admin_network.additional_subnets in
network_spec.yml defines the remote subnet, its prefix length, the router
address supplied by DHCP, and its dynamic address range.
The primary admin-network settings remain under admin_network. Additional
subnets extend that configuration; they do not define additional OIM
interfaces or BMC networks.
Prerequisites¶
- Configure a DHCP relay on every remote subnet to forward requests to the OIM admin-network address.
- Ensure routing and firewall policy allow DHCP relay traffic between each subnet and the OIM.
- Reserve non-overlapping dynamic ranges that exclude gateways, statically assigned node addresses, and infrastructure addresses.
- Ensure the PXE mapping file uses admin addresses from the configured primary or additional subnets.
Procedure¶
-
Edit the shared network specification:
Run on: OIMsource /etc/profile.d/omnia-env.sh orchestrator_path="${OMNIA_DATA_PATH}/orchestrator" source "$OMNIA_DATA_PATH/activate-omnia.sh" vi "$orchestrator_path/input/$OMNIA_PROJECT_NAME/network_spec.yml" -
Add each routed subnet beneath
admin_network.additional_subnets:File: network_spec.ymlNetworks: - admin_network: primary_oim_admin_ip: "10.40.1.111" primary_oim_bmc_ip: "" oim_nic_name: "eno1" subnet: "10.40.1.0" netmask_bits: "24" dynamic_range: "10.40.1.201-10.40.1.250" router: "10.40.1.1" dns: [] ntp_servers: [] additional_subnets: - subnet: "10.40.2.0" netmask_bits: "24" router: "10.40.2.1" dynamic_range: "10.40.2.190-10.40.2.200" - subnet: "10.40.3.0" netmask_bits: "24" router: "10.40.3.1" dynamic_range: "10.40.3.190-10.40.3.200"Use
additional_subnets: []when no relay-served subnet is required. Omit theib_networklist item when InfiniBand is unused; if it is present, itssubnetandnetmask_bitsvalues cannot be empty. -
Validate the Orchestrator inputs:
Run on: OIMcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run orchestrator --tags validate ./omnia.sh --run orchestrator --tags precheckRun on: OIMsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/orchestrator/playbooks ansible-playbook orchestrator.yml --tags validate ansible-playbook orchestrator.yml --tags precheck -
Deploy or refresh OpenCHAMI so CoreDHCP receives the new configuration:
Run on: OIMcd <OMNIA_SOURCE_PATH>/src/main ./omnia.sh --run orchestrator --tags prepareRun on: OIMsource /opt/omnia/activate-omnia.sh cd <OMNIA_SOURCE_PATH>/src/orchestrator/playbooks ansible-playbook orchestrator.yml --tags prepare
Verification¶
- Confirm the validation and precheck runs complete without subnet or range errors.
-
Inspect the CoreDHCP service logs and confirm that each configured subnet is loaded:
Run on: OIMpodman logs coresmd-coredhcp -
PXE boot one node on each routed subnet and confirm it receives an address from that subnet's configured
dynamic_range.
Next steps¶
- Configure PXE Boot for the server restart and boot workflow.
- Review the Network Spec reference for the complete shared input schema.
Troubleshooting¶
- Remote nodes receive no lease: Verify the switch or router DHCP-relay destination and confirm that the relay can reach the OIM.
- A node receives an address from the wrong range: Verify the relay gateway
address and the corresponding
subnet,netmask_bits, androuterentry. - Orchestrator rejects the file: Confirm that
additional_subnetsis nested underadmin_networkand that every entry contains all four required fields. - CoreDHCP does not show the new subnet: Rerun the Orchestrator
preparetag and inspectjournalctl -u coresmd-coredhcpand the container logs.