mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
using supplied 01-netcfg.yaml as example
note the use of yes in place of true for dhcp4
This commit is contained in:
parent
0827827925
commit
4c93054d45
1 changed files with 14 additions and 18 deletions
|
@ -1,27 +1,23 @@
|
||||||
network:
|
network:
|
||||||
version: 2
|
version: 2
|
||||||
{% if network_manager_active %}
|
{% if network_manager_active %}
|
||||||
renderer: NetworkManager
|
renderer: NetworkManager
|
||||||
{% else %}
|
{% else %}
|
||||||
renderer: networkd
|
renderer: networkd
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ethernets:
|
ethernets:
|
||||||
|
{{ iiab_wan_iface }}:
|
||||||
{% if wan_ip != "dhcp" %}
|
{% if wan_ip != "dhcp" %}
|
||||||
{{ iiab_wan_iface }}:
|
addresses:
|
||||||
addresses:
|
- {{ wan_ip }}/{{ wan_cidr }}
|
||||||
- {{ wan_ip }}/{{ wan_cidr }}
|
gateway4: {{ wan_gateway }}
|
||||||
gateway4: {{ wan_gateway }}
|
nameservers:
|
||||||
nameservers:
|
addresses:
|
||||||
addresses:
|
- {{ wan_nameserver }}
|
||||||
- {{ wan_nameserver }}
|
search:
|
||||||
search:
|
- {{ iiab_domain }}
|
||||||
- {{ iiab_domain }}
|
|
||||||
optional: true
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ iiab_wan_iface }}:
|
dhcp4: yes
|
||||||
addresses: []
|
|
||||||
dhcp4: true
|
|
||||||
optional: true
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#{% if iiab_lan_iface == "br0" %}
|
#{% if iiab_lan_iface == "br0" %}
|
||||||
# bridges:
|
# bridges:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue