diff options
-rw-r--r-- | net/bonding.sh | 2 | ||||
-rw-r--r-- | net/bridge.sh | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/net/bonding.sh b/net/bonding.sh index e3fcaa7..bb8b061 100644 --- a/net/bonding.sh +++ b/net/bonding.sh @@ -133,6 +133,8 @@ bonding_pre_start() for IFACE in ${slaves}; do _delete_addresses _down + local disable_ipv6="/proc/sys/net/ipv6/conf/${IFACE}/disable_ipv6" + [ -f "${disable_ipv6}" ] && printf '1\n' > "${disable_ipv6}" done fi ) diff --git a/net/bridge.sh b/net/bridge.sh index a380f6a..cea8a49 100644 --- a/net/bridge.sh +++ b/net/bridge.sh @@ -152,6 +152,8 @@ bridge_pre_start() return 1 fi # The interface is known to exist now + local disable_ipv6="/proc/sys/net/ipv6/conf/${IFACE}/disable_ipv6" + [ -f "${disable_ipv6}" ] && printf '1\n' > "${disable_ipv6}" _up if ${do_iproute2}; then _netns ip link set "${x}" master "${BR_IFACE}" |