On Sat, Jul 01, 2017 at 06:07:44PM -0700, Elliott Mitchell wrote:

> Package: ifupdown
> Version: 0.7.53.1
> 
> iface eth0 inet6 static
>       address 1234:5678:9abc:def0::2/64
>       metric 1
>       gateway 1234:5678:9abc:def0::1
> 
> iface eth0:0 inet6 static
>       address 1234:5678:9abc:def0::3/64
>       metric 2
>       gateway 1234:5678:9abc:def0::1
> 
> ifup will end up trying to add a IPv6 route which duplicates the one
> generated by eth0 and fail.

First of all, please don't use alias interfaces anymore. This was a
workaround for limitations in the kernel and in ifconfig. Nowadays, you
can add multiple addresses to the same interface. Ifupdown supports this
as well. You should rewrite your /etc/network/interfaces to:

iface eth0 inet6 static
        address 1234:5678:9abc:def0::2/64
        gateway 1234:5678:9abc:def0::1

iface eth0 inet6 static
        address 1234:5678:9abc:def0::3

When you run ifup eth0, it will combine the two iface stanzas. This will
result in eth0 having two IPv6 addresses, and will add one /64 route and
one default gateawy route to the routing table.

Unfortunately, ifupdown 0.7.53.1 didn't support the metric keyword for
inet6 stanzas. This was fixed in version 0.8.7. However, it doesn't make
sense to add two identical gateway routes in any case.

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <g...@debian.org>

Attachment: signature.asc
Description: PGP signature

Reply via email to