bundles/systemd-networkd: better dhcp support
This commit is contained in:
parent
5e7c7671e0
commit
91fd33cfa0
3 changed files with 20 additions and 8 deletions
14
bundles/systemd-networkd/files/template-dhcp.network
Normal file
14
bundles/systemd-networkd/files/template-dhcp.network
Normal file
|
@ -0,0 +1,14 @@
|
|||
<%
|
||||
from ipaddress import ip_network
|
||||
%>\
|
||||
[Match]
|
||||
Name=${interface}
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
IPv6AcceptRA=yes
|
||||
UseHostname=no
|
||||
|
||||
% if config.get('forwarding', False):
|
||||
IPForward=yes
|
||||
%endif
|
Loading…
Add table
Add a link
Reference in a new issue