From: Mark Wooding Date: Wed, 8 Apr 2020 12:07:56 +0000 (+0100) Subject: svc/tripe-ifup.in: Don't set remote IPv6 address until interface is up. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/commitdiff_plain/0fc1588c95b568da6c6153e556ef98d3473646ff svc/tripe-ifup.in: Don't set remote IPv6 address until interface is up. This is annoying. Later Linux kernels complain about adding routes to an interface which is still down. --- diff --git a/svc/tripe-ifup.in b/svc/tripe-ifup.in index 032142c5..80a315b7 100644 --- a/svc/tripe-ifup.in +++ b/svc/tripe-ifup.in @@ -119,9 +119,6 @@ case $have6,$# in try ip addr add "$a" dev "$ifname" haveaddr6=t done - case ${r6addr+set} in - set) try ip route add $r6addr proto static dev "$ifname" ;; - esac ;; esac @@ -144,6 +141,18 @@ case $haveaddr4,$haveaddr6 in ;; esac +###-------------------------------------------------------------------------- +### Set the peer IPv6 address if any. + +## IPv6 point-to-point links seem broken in Linux. Attach the local and +## remote addresses by hand. +set -- $l6addr +case $have6,$#,${r6addr+set} in + t,[1-9]*,set) + try ip route add $r6addr proto static dev "$ifname" + ;; +esac + ###-------------------------------------------------------------------------- ### Set up routing.