diff options
author | Christoph Vigano <mail@cvigano.de> | 2012-02-22 15:37:54 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-02-22 15:39:08 +0100 |
commit | 439f5f82a86db89c7b6eab5d98fe48f75d70d475 (patch) | |
tree | 531cb4db1df27c6fb35f57759d88c871797580f1 /src/connections | |
parent | f1b3ffff25d0c7b0c5e0bfa4794f86f426e84263 (diff) | |
download | netctl-439f5f82a86db89c7b6eab5d98fe48f75d70d475.tar.gz netctl-439f5f82a86db89c7b6eab5d98fe48f75d70d475.tar.xz |
Fix IPv6 SLAAC address/route bug
Fixes FS#26370.
Diffstat (limited to 'src/connections')
-rw-r--r-- | src/connections/ethernet | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/connections/ethernet b/src/connections/ethernet index 04d65fa..78f8240 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -22,6 +22,11 @@ ethernet_up() { fi fi + # Disable IPv6 before the interface to prevent SLAAC + if [[ "$IP6" == "no"]]; then + sysctl -q -w net.ipv6.conf.$INTERFACE.disable_ipv6=1 + fi + report_debug ethernet_iproute_up ifup bring_interface up "$INTERFACE" @@ -137,7 +142,7 @@ ethernet_up() { dhcp*|stateless|static) [ -d "/proc/sys/net/ipv6" ] || modprobe ipv6 ;; - ""|no) + no) [ -d /proc/sys/net/ipv6 ] && sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=0 ;; *) |