coredhcp / coredhcp

Fast, multithreaded, modular and extensible DHCP server written in Go
https://coredhcp.io
MIT License
954 stars 108 forks source link

plugin to assign routers/subnet from router interfaces #165

Open dulitz opened 1 year ago

dulitz commented 1 year ago

The routercidr plugin sets the DHCPv4 router(s) and subnet mask based on the IP address assigned by a preceding plugin. Its config file consists of a series of router interfaces in CIDR notation, against which the IP address is matched.

This PR loads the plugin by default. The justification for that is that, without it, default coredhcp can't assign a router when it's allocating addresses in more than one subnet, since with the router plugin there can only be one.