add default route in dhcp response
https://github.com/systemd/systemd/issues/29579
This commit is contained in:
parent
f345b30510
commit
a8b2a9b24b
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ let
|
||||||
# lan ${lanName}
|
# lan ${lanName}
|
||||||
dhcp-range=${lanInterfaceName},${dhcpStartAddress},${dhcpEndAddress},${netmask},12h
|
dhcp-range=${lanInterfaceName},${dhcpStartAddress},${dhcpEndAddress},${netmask},12h
|
||||||
domain=${lanDomainName},${lanInterfaceName}
|
domain=${lanDomainName},${lanInterfaceName}
|
||||||
dhcp-option=${lanInterfaceName},option:classless-static-route,${lib.concatStringsSep "," (builtins.map (route: "${route},${lanInterfaceIPAddress}") (builtins.filter (route: route != lanCfg.ipv4.range) staticRoutes))}
|
dhcp-option=${lanInterfaceName},option:classless-static-route,${lib.concatStringsSep "," (builtins.map (route: "${route},${lanInterfaceIPAddress}") ([ "0.0.0.0/0" ] ++ (builtins.filter (route: route != lanCfg.ipv4.range) staticRoutes)))}
|
||||||
'' + (lib.optionalString (lanCfg.ipv4.dhcp.dns.nameservers != []) ("dhcp-option=${lanInterfaceName},option:dns-server,${(lib.concatStringsSep "," lanCfg.ipv4.dhcp.dns.nameservers)}\n"));
|
'' + (lib.optionalString (lanCfg.ipv4.dhcp.dns.nameservers != []) ("dhcp-option=${lanInterfaceName},option:dns-server,${(lib.concatStringsSep "," lanCfg.ipv4.dhcp.dns.nameservers)}\n"));
|
||||||
in
|
in
|
||||||
lanCfg // {
|
lanCfg // {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue