summaryrefslogtreecommitdiff
path: root/roles/vm-network/templates/interfaces_lan.j2
blob: 36ae288328c90c58bafdc97e7aa3a93dcc862e4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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

# The internal network interface
auto {{ srv_network.internal.interface }}
iface {{ srv_network.internal.interface }} inet static
  address {{ srv_network.internal.ip }}
  netmask 255.255.255.0
  gateway 192.168.1.254
  pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
  pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf