From 66786349c713ece4d31e135839b77f76bd11c800 Mon Sep 17 00:00:00 2001 From: Christoph Vigano Date: Mon, 6 Feb 2012 20:27:34 +0100 Subject: [PATCH] fixed FS #26370 --- src/connections/ethernet | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/connections/ethernet b/src/connections/ethernet index f9c660c..c3a047f 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -22,6 +22,14 @@ ethernet_up() { fi fi + # FS #26370: IPv6 SLAAC address/route bug + # set accept_ra=0 if IP6 is set to "no", thus preventing + # the interface from receiving an RA and setting an IPv6 + # address and respective routes which it can't renew + 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" @@ -178,9 +186,11 @@ ethernet_up() { done fi ;; - ""|no) + no) sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=0 ;; + "") # undefined IP6 does not prevent RA's from being received -> nop + ;; *) report_iproute "IP6 must be 'dhcp', 'dhcp-noaddr', 'stateless', 'static' or 'no'" ;; -- 1.7.9