OBS-URL: https://build.opensuse.org/request/show/742252 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/opensuse-dhcp-server-image?expand=0&rev=1
13 lines
520 B
Plaintext
13 lines
520 B
Plaintext
The command to run this container is:
|
|
|
|
mkdir /srv/dhcp-server
|
|
# create /src/dhcp-server/dhcpd.conf
|
|
podman run -d --rm --net host -v /srv/dhcp-server:/data --env DHCPD_INTERFACES="eth2" --name dhcp-server registry.opensuse.org/opensuse/dhcp-server:latest
|
|
|
|
Configuration files (dhcpd.conf, dhcpd6.conf) should be stored in
|
|
/srv/dhcp-server, where the leases will be stored, too.
|
|
|
|
Supported environment variables:
|
|
DHCPD_IP_PROTOCOL=[4|6] - IPv4 or IPv6?
|
|
DHCPD_INTERFACES="if0 if1 ... ifN" - List of interfaces to listen on
|