16 lines
253 B
Text
16 lines
253 B
Text
version: 2
|
|
ethernets:
|
|
ens:
|
|
match:
|
|
name: ens*
|
|
%{ if fixed_address != "" }
|
|
dhcp4: false
|
|
addresses:
|
|
- "${fixed_address}"
|
|
%{ else }
|
|
dhcp4: true
|
|
%{ endif }
|
|
dhcp4: true
|
|
routes:
|
|
- to: 0.0.0.0/0
|
|
via: 192.168.30.1
|