blob: 02442a5739322adffb818702e6f28c4de8d7947f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
{% for interface in network.interfaces %}
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
{% if 'content' in interface %}
{{ interface.content | indent(2) }}
{% else %}
{% include 'interfaces/' + (interface.template | default('simple')) + '.j2' %}
{% endif %}
{% if 'content6' in interface or 'address6' in interface %}
iface {{ interface.name }} inet6 static
{% if 'content6' in interface %}
{{ interface.content6 | indent(2) }}
{% else %}
{% include 'interfaces/' + (interface.template6 | default('simple6')) + '.j2' %}
{% endif %}
{% endif %}
{% endfor %}
|