summaryrefslogtreecommitdiff
path: root/roles/cloud/post-install/templates/edis-kvm-interfaces.j2
blob: 1cb7c511033bd37c98f53639b24f6428eaaab79a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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


auto {{ network.primary.name }}
iface {{ network.primary.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 {{ network.primary.address | ansible.utils.ipaddr('address') }}
  netmask {{ network.primary.address | ansible.utils.ipaddr('netmask') }}
  gateway {{ network.primary.gateway }}

iface {{ network.primary.name }} inet6 static
  address {{ network.primary.address6 }}
  gateway {{ network.primary.gateway6 }}