chiark / gitweb /
networkd: add dhcp server support
authorTom Gundersen <teg@jklm.no>
Wed, 5 Mar 2014 07:13:30 +0000 (08:13 +0100)
committerTom Gundersen <teg@jklm.no>
Fri, 13 Jun 2014 15:07:20 +0000 (17:07 +0200)
commitdd43110f781a9245ec00531456fee68ed763a179
tree427a5d4f640f8b0c77f63e024764f0f01c6644ac
parent500792d8180c9a11d65f107cdc79dea21b2964c4
networkd: add dhcp server support

When enabled in [Network] it will set up a dhcp server on the interface, listening
on one of its statically configured IPv4 addresses and with a fixed size pool of
leases determined from it.

Example:

[Match]
Name=ve-arch-tree

[Network]
Address=192.168.12.5/24
DHCPServer=yes

[Route]
Gateway=192.168.12.5
Destination=192.168.12.0/24

In this case we will configure ve-arch-tree with the address 192.168.12.5 and
hand out addresses in the range 192.168.12.6 - 192.168.12.38.

In the future, we should (as suggested by Lennart) introduce a syntax to pick the
server address automatically.
src/network/networkd-link.c
src/network/networkd-network-gperf.gperf
src/network/networkd.h