829a3e7d0f278a3f9c094b8dae46c8ec2c8e4293
[noc.git] / ansible / roles / vm / network / templates / interfaces.j2
1 # This file describes the network interfaces available on your system
2 # and how to activate them. For more information, see interfaces(5).
3
4 source /etc/network/interfaces.d/*
5
6 # The loopback network interface
7 auto lo
8 iface lo inet loopback
9
10 # The primary network interface
11 auto {{ network.primary.interface }}
12 iface {{ network.primary.interface }} inet static
13   address {{ network.primary.ip }}
14   netmask {{ network.primary.mask }}
15   gateway {{ network.primary.gateway }}
16   pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
17   pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf