DHCP
Multiple DHCP servers are running on the ONP environment. The below are the list of interfaces and its networks.
Interface
Network
Is-enabled
Service
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
false
onp2-dhcp.service
Configuration
It uses dnsmasq
under the hood. The container builds and starts automatically if it is enabled as it is managed by the systemd.
Directory
/opt/openshift-network-playground/dhcp/
Service
dhcp.service
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"]
Last updated