From 6b0cc45074fe2bd114c62646009ca125387be63d Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sat, 25 Apr 2020 00:07:05 +0200 Subject: [PATCH] Correcting IPv6 bug --- creationRoutesVM.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creationRoutesVM.sh b/creationRoutesVM.sh index fb6bfe8..b145ab6 100755 --- a/creationRoutesVM.sh +++ b/creationRoutesVM.sh @@ -119,7 +119,7 @@ IFACE="tap${VM_ID}i0" IP4_NEIGH="$(ip -4 neigh show dev ${IFACE})" IP6_NEIGH="$(ip -6 neigh show dev ${IFACE})" IP4_ROUTE="$(ip -4 route show dev ${IFACE})" -IP6_ROUTE="$(ip -6 route show dev ${IFACE})" +IP6_ROUTE="$(ip -6 route show dev ${IFACE} | grep -vF 'fe80::/64')" if [ "${IP4_NEIGH}" ] && [ "${IP6_NEIGH}" ] && [ "${IP4_ROUTE}" ] && [ "${IP6_ROUTE}" ]; then write_log INFO 'Nothing to do'