X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/49bfe6a28c92c377a3c5227b0b6bd45053c18cef..844abf94571ffdd3e113c518947073ff5375d748:/svc/tripe-ifup.in diff --git a/svc/tripe-ifup.in b/svc/tripe-ifup.in index e92c0fd5..032142c5 100644 --- a/svc/tripe-ifup.in +++ b/svc/tripe-ifup.in @@ -108,6 +108,13 @@ haveaddr6=nil set -- $l6addr case $have6,$# in t,[1-9]*) + + ## If we're configured to set IPv6 addresses then we should ensure that + ## they're going to work, even if the default setting for new interfaces + ## is to disable IPv6. + try sysctl -q net.ipv6.conf."$ifname".disable_ipv6=0 + + ## Now add the source and destination addresses. for a in "$@"; do try ip addr add "$a" dev "$ifname" haveaddr6=t