diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-21 04:11:47 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-21 04:11:47 +0200 |
commit | 742ab1e5e72c4f7b6678cf586309d6d98d96272d (patch) | |
tree | 2e3b0e54ee28c0b5a8c7849be61ca511d28d4e97 /roles/vm/network/templates/interfaces.j2 | |
parent | initial tests with new network config (diff) |
further improved network config
Diffstat (limited to 'roles/vm/network/templates/interfaces.j2')
-rw-r--r-- | roles/vm/network/templates/interfaces.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vm/network/templates/interfaces.j2 b/roles/vm/network/templates/interfaces.j2 index 3c151144..70edb1dd 100644 --- a/roles/vm/network/templates/interfaces.j2 +++ b/roles/vm/network/templates/interfaces.j2 @@ -13,8 +13,8 @@ auto {{ interface.name }} iface {{ interface.name }} inet static pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf - address {{ interface.ip }} - netmask {{ interface.mask }} + address {{ interface.prefix | ipaddr('address') }} + netmask {{ interface.prefix | ipaddr('netmask') }} {% if 'overlay' in interface %} up /bin/ip addr add dev $IFACE {{ interface.overlay }}/32 {% if 'gateway' in interface %} |