X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/136f3f44e25317d5423b4bc0b075b297e6d00c93..ab6f1b0d12478b8fe266e3dacc3de7121df29066:/svc/tripe-ifup.in diff --git a/svc/tripe-ifup.in b/svc/tripe-ifup.in index e9e9cb92..63b5b2d6 100644 --- a/svc/tripe-ifup.in +++ b/svc/tripe-ifup.in @@ -124,9 +124,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 @@ -150,6 +147,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.