diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/iproute2.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/iproute2.sh b/net/iproute2.sh index 6194faf0..a2e9db77 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -239,9 +239,14 @@ iproute2_pre_start() if [ -n "${tunnel}" ]; then # Set our base metric to 1000 metric=1000 + # Bug#347657: If the mode is 'ipip6' or 'ip6ip6', the -6 must be passed + # to iproute2 during tunnel creation. + local ipproto='' + [ "${tunnel##mode ipip6}" != "${tunnel}" ] && ipproto='-6' + [ "${tunnel##mode ip6ip6}" != "${tunnel}" ] && ipproto='-6' ebegin "Creating tunnel ${IFVAR}" - ip tunnel add ${tunnel} name "${IFACE}" + ip ${ipproto} tunnel add ${tunnel} name "${IFACE}" eend $? || return 1 _up fi |