feat(dhcp): Add DHCP on vlans
Uses networkd, maybe it's better to do it with radius, but it's simpler
This commit is contained in:
parent
150e741263
commit
35ab7bfee3
1 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,13 @@ let
|
||||||
Id = vlan;
|
Id = vlan;
|
||||||
address = [ ];
|
address = [ ];
|
||||||
extraNetwork = {
|
extraNetwork = {
|
||||||
|
networkConfig.DHCPServer = "yes";
|
||||||
|
dhcpServerConfig = {
|
||||||
|
EmitRouter = true;
|
||||||
|
Router = "10.0.0.1";
|
||||||
|
EmitDNS = true;
|
||||||
|
DNS = "10.0.0.1";
|
||||||
|
};
|
||||||
addresses = [
|
addresses = [
|
||||||
{
|
{
|
||||||
addressConfig = {
|
addressConfig = {
|
||||||
|
|
Loading…
Reference in a new issue