Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Created October 17, 2010 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mschmitt/630929 to your computer and use it in GitHub Desktop.
Save mschmitt/630929 to your computer and use it in GitHub Desktop.
Fixes for Ubuntu 10.10 to make the IPv6 stack barely usable.
#!/bin/bash
# Fixes for Ubuntu 10.10 to make the IPv6 stack barely usable.
#
# ---> /etc/network/if-up.d/ipv6-fixes
#
# This should really go into /etc/network/if-pre-up.d, but
# Scripts in that directory are ignored by NetworkManager.
# Thanks to this, IPv6 will now come up properly only a few
# minutes after startup.
LOGGER='/usr/bin/logger -t /etc/network/if-up.d/ipv6-fixes'
SYSCTL='/sbin/sysctl -q'
$LOGGER "Applying stupid IPv6 fixes on: ${IFACE}"
$LOGGER "Disabling IPv6 Duplicate Address Detection (oh no)."
$SYSCTL net.ipv6.conf.${IFACE}.accept_dad=0
$LOGGER $(/sbin/sysctl net.ipv6.conf.${IFACE}.accept_dad)
$LOGGER "Enabling IPv6 privacy extensions (oh yes)."
$SYSCTL net.ipv6.conf.${IFACE}.use_tempaddr=2
$LOGGER $(/sbin/sysctl net.ipv6.conf.${IFACE}.use_tempaddr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment