version: 2 ethernets: {{- range $i, $mac := .MACs }} eth{{ $i }}: match: macaddress: "{{ $mac }}" dhcp4: true {{- end }}