Resolved conflict with native IPv6 routes with higher metric 1042
authorRick van Rein <rick@openfortress.nl>
Sat, 30 Dec 2017 23:51:29 +0000 (23:51 +0000)
committerRick van Rein <rick@openfortress.nl>
Sat, 30 Dec 2017 23:51:29 +0000 (23:51 +0000)
Note: Will need to setup an extra route later, for TBD1::/32 and friends

6bed4peer.c

index cc88948..ab7ec4e 100644 (file)
@@ -364,7 +364,7 @@ bool setup_tunnel_address (void) {
                ok = false;
        }
        if (default_route) {
-               snprintf (cmd, 512, "/sbin/ip -6 route add default via fe80:: dev %s", ifreq.ifr_name);
+               snprintf (cmd, 512, "/sbin/ip -6 route add default via fe80:: dev %s metric 1042", ifreq.ifr_name);
                if (ok && system (cmd) != 0) {
                        ok = false;
                }