From 0fc1588c95b568da6c6153e556ef98d3473646ff Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 8 Apr 2020 13:07:56 +0100 Subject: [PATCH] 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. --- svc/tripe-ifup.in | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 @@ -145,6 +142,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. ## Split the routes into v4 and v6 lists. -- 2.11.0