[projects/rc-scripts] Onlink doesn't work for IPv6, so add gate route manually first.
arekm
arekm at pld-linux.org
Thu Jan 18 10:42:00 CET 2018
commit 5d2ee544efe6d27d1b6bc263385c5c9b5bf1b00d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Jan 18 10:41:54 2018 +0100
Onlink doesn't work for IPv6, so add gate route manually first.
lib/functions.network | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/functions.network b/lib/functions.network
index bb7a5254..d151b04e 100644
--- a/lib/functions.network
+++ b/lib/functions.network
@@ -299,6 +299,7 @@ setup_ip_gw_ro ()
if [ -z "${IPV6_GLOBALROUTEDEV}" -o "${IPV6_GLOBALROUTEDEV}" = "${DEVICE}" ]; then
# set up default route
if [ "${IPV6_GLOBALROUTEGW}" ]; then
+ ip -6 route add ${IPV6_GLOBALROUTEGW} dev ${DEVICE} ${IP6SRCADDR} onlink
ip -6 route add 2000::/3 via ${IPV6_GLOBALROUTEGW} dev ${DEVICE} ${IP6SRCADDR} onlink
elif [ "${IPV6_GLOBALROUTEDEV}" = "${DEVICE}" ]; then
ip -6 route add 2000::/3 dev ${DEVICE} ${IP6SRCADDR}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/5d2ee544efe6d27d1b6bc263385c5c9b5bf1b00d
More information about the pld-cvs-commit
mailing list