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 %}
|
{% if bridged_network is defined and bridged_network %}
|
||||||
auto br0
|
auto br0
|
||||||
iface br0
|
iface br0
|
||||||
requires eth0
|
requires eth0{% if bridged_network != "true" %} {{ bridged_network }}{% endif +%}
|
||||||
bridge-ports eth0
|
bridge-ports eth0{% if bridged_network != "true" %} {{ bridged_network }}{% endif +%}
|
||||||
bridge-fd 0
|
bridge-fd 0
|
||||||
bridge-stp off
|
bridge-stp off
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -27,7 +27,11 @@ iface eth0
|
|||||||
{% if local_network.gateway6 is defined %}
|
{% if local_network.gateway6 is defined %}
|
||||||
address {{ wanted_ip6 }}/64
|
address {{ wanted_ip6 }}/64
|
||||||
gateway {{ local_network.gateway6 }}
|
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
|
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
address {{ wanted_ip6 }}/128
|
address {{ wanted_ip6 }}/128
|
||||||
post-up ip addrlabel add prefix {{ wanted_ip6 }}/64 label 99
|
post-up ip addrlabel add prefix {{ wanted_ip6 }}/64 label 99
|
||||||
|
Loading…
Reference in New Issue
Block a user