diff --git a/templates/networking.j2 b/templates/networking.j2 index caae990..bededb7 100644 --- a/templates/networking.j2 +++ b/templates/networking.j2 @@ -30,11 +30,11 @@ iface eth0 {% if local_network.gateway6 is defined %} address {{ wanted_ip6 }}/64 gateway {{ local_network.gateway6 }} - {% if bridged_network is defined and bridged_network %} +{% if bridged_network is defined and bridged_network %} up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra - {% else %} +{% else %} pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra - {% endif %} +{% endif %} {% else %} address {{ wanted_ip6 }}/128 post-up ip addrlabel add prefix {{ wanted_ip6 }}/64 label 99