aboutsummaryrefslogtreecommitdiff
path: root/templates/interfaces.j2
blob: 781309385191451515af61d6e894b357727c76cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
auto lo
iface lo inet loopback

auto {{ public_interface }}
iface {{ public_interface }} inet manual

auto vmbr0
iface vmbr0 inet static
    address {{ ansible_host }}
    netmask 255.255.255.0
    gateway {{ public_gateway }}
    bridge_ports {{ public_interface }}
    bridge_stp off
    bridge_fd 0

auto vmbr1
iface vmbr1 inet static
    address {{ nat_bridge_ip }}
    netmask 255.255.255.0
    bridge_ports none
    bridge_stp off
    bridge_fd 0