Can precise interfaces in bridged network
This commit is contained in:
parent
1e07ab7d7b
commit
71b1658ce1
@ -10,8 +10,8 @@ auto eth0
|
||||
{% if bridged_network is defined and bridged_network %}
|
||||
auto br0
|
||||
iface br0
|
||||
requires eth0
|
||||
bridge-ports eth0
|
||||
requires eth0{% if bridged_network != "true" %} {{ bridged_network }}{% endif +%}
|
||||
bridge-ports eth0{% if bridged_network != "true" %} {{ bridged_network }}{% endif +%}
|
||||
bridge-fd 0
|
||||
bridge-stp off
|
||||
{% else %}
|
||||
@ -27,7 +27,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 %}
|
||||
up echo 0 > /proc/sys/net/ipv6/conf/br0/accept_ra
|
||||
{% else %}
|
||||
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
|
||||
{% endif %}
|
||||
{% else %}
|
||||
address {{ wanted_ip6 }}/128
|
||||
post-up ip addrlabel add prefix {{ wanted_ip6 }}/64 label 99
|
||||
|
Loading…
Reference in New Issue
Block a user