Last updated 1 year ago
Multiple DHCP servers are running on the ONP environment. The below are the list of interfaces and its networks.
It uses dnsmasq under the hood. The container builds and starts automatically if it is enabled as it is managed by the systemd.
dnsmasq
no-daemon interface=<interface> dhcp-range=192.168.x.2,192.168.x.254,255.255.255.0 except-interface=lo bind-interfaces log-dhcp dhcp-authoritative log-asynce
FROM fedora MAINTAINER "Vinu K" <vinu@redhat.com> RUN yum install -y dnsmasq ADD dnsmasq.conf /dnsmasq.conf ENTRYPOINT ["dnsmasq"] CMD ["-C", "/dnsmasq.conf"]
baremetal
192.168.123.0/24
true
dhcp.service
onp1
192.168.124.0/24
false
onp1-dhcp.service
onp2
192.168.125.0/24
onp2-dhcp.service
Directory
/opt/openshift-network-playground/dhcp/
Service
.service