From 68786de7a2224f81c2190491b2956b4f4276e0cd Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Sat, 11 Jun 2011 16:27:20 +0200 Subject: IPv6: add support for stateless autoconfiguration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Olivier Mehani Signed-off-by: Rémy Oudompheng --- src/connections/ethernet | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/connections') diff --git a/src/connections/ethernet b/src/connections/ethernet index 3d70d9e..ec03184 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -123,7 +123,11 @@ ethernet_up() { fi case "$IP6" in + stateless) + sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=1 + ;; static) + sysctl -q -w net.ipv6.conf.$INTERFACE.accept_ra=0 if [[ -n "$ADDR6" ]]; then [[ -z $PREFIXLEN ]] && PREFIXLEN=64 report_debug ethernet_iproute_up ip -6 addr add "$ADDR6/$PREFIXLEN" dev "$INTERFACE" @@ -151,7 +155,7 @@ ethernet_up() { "") ;; *) - report_iproute "IP6 must be 'static'" + report_iproute "IP6 must be 'stateless' or 'static'" ;; esac -- cgit v1.2.3-24-g4f1b