common: Sync from polyfloyd

This commit is contained in:
polyfloyd 2022-10-08 20:03:33 +02:00
parent b1add6ce2c
commit 97a4e95ca8
4 changed files with 21 additions and 20 deletions

View file

@ -18,20 +18,20 @@ iface eth0 inet manual
auto br0
iface br0 inet static
address {{ network_static.address_v4 }}
gateway {{ network_static.gateway_v4 }}
address {{ network_address_v4 }}
gateway {{ network_gateway_v4 }}
bridge_ports eth0
iface br0 inet6 auto
up echo -n 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping
up ip -6 addr add {{ network_static.address_v6 }} dev br0
up ip -6 route add default via {{ network_static.gateway_v6 }} dev br0
up ip -6 addr add {{ network_address_v6 }} dev br0
up ip -6 route add default via {{ network_gateway_v6 }} dev br0
bridge_stp on
{% elif network_static %}
iface eth0 inet static
address {{ network_static.address_v4 }}
gateway {{ network_static.gateway_v4 }}
address {{ network_address_v4 }}
gateway {{ network_gateway_v4 }}
{% else %}
iface eth0 inet dhcp