diff --git a/internal/networkd/template/config-addressing.network.tmpl b/internal/networkd/template/config-addressing.network.tmpl index c35a609..19c3e42 100644 --- a/internal/networkd/template/config-addressing.network.tmpl +++ b/internal/networkd/template/config-addressing.network.tmpl @@ -7,8 +7,8 @@ Name={{ .Name }} [Network] LLMNR=no -{{- if eq .AddressingMode 2 }} -DHCP=yes -{{- else }} +{{- if eq .AddressingMode 1 }} Address={{ .Address }} +{{- else if eq .AddressingMode 2 }} +DHCP=yes {{- end }} \ No newline at end of file