summaryrefslogtreecommitdiffstats
path: root/src/lib/ip
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ip')
-rw-r--r--src/lib/ip3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ip b/src/lib/ip
index 66aab56..b7847a2 100644
--- a/src/lib/ip
+++ b/src/lib/ip
@@ -47,11 +47,12 @@ ip_set() {
case "$IP6" in
dhcp*|stateless|static)
[[ -d "/proc/sys/net/ipv6" ]] || modprobe ipv6
+ sysctl -q -w "net.ipv6.conf.$interface_sysctl.disable_ipv6=0"
[[ $IP6 == "static" ]]
sysctl -q -w "net.ipv6.conf.$interface_sysctl.accept_ra=$?"
;;
no)
- [[ -d "/proc/sys/net/ipv6" ]] && sysctl -q -w "net.ipv6.conf.$interface_sysctl.accept_ra=0"
+ [[ -d "/proc/sys/net/ipv6" ]] && sysctl -q -w "net.ipv6.conf.$interface_sysctl.disable_ipv6=1"
;;
"") # undefined IP6 does not prevent RA's from being received -> nop
;;