blob: d8d4ec5e8051d4d45ce75a93ef855a8efc2a5f76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
auto br0
iface br0 inet static
address 10.0.0.4
netmask 255.255.255.0
gateway 10.0.0.255
pre-up ip link add name $IFACE type bridge
{% for i in range(1, 4) %}
auto eth{{i}}
iface eth{{i}} inet manual
up ip link set $IFACE up
post-up ip addr flush dev $IFACE
post-up ip link set $IFACE master br0
{% endfor %}
|