dhcpcd-discuss

Re: IPv6 default route on FreeBSD with dhcpcd 6.11.2 points to lo0

Guy Yur

Fri Aug 05 08:58:31 2016

On Thu, Aug 4, 2016 at 11:35 PM, Guy Yur <guyyur@xxxxxxxxx> wrote:
> Hi,
>
> With dhcpcd 6.11.2 on FreeBSD 10.3 and CURRENT, the ipv6 default route
> is added with netif lo0 instead of the actual interface.
> dhcpcd 6.11.1 adds the route correctly.
>
>
> # netstat -rnf inet6
> Routing tables
>
> Internet6:
> Destination                       Gateway                       Flags
>     Netif Expire
> ::/96                             ::1                           UGRS        lo0
> default                           fe80::NNNN:NNff:feNN:NNNN     UGS         lo0
> ::1                               link#2                        UH          lo0
> ...
>
>

Hi,

My patch doesn't work, I didn't check correctly.
It added the Gateway as fe80::NNNN:NNff:feNN:NNNN with netif lan0.

Problem is the gateway needs %IF with the link local address to work.

Example from dhcpcd-6.11.1
# netstat -rn -f inet6 | grep -e Destination -e default
Destination   Gateway                                        Flags
Netif Expire
default          fe80::NNNN:NNff:feNN:NNNN%lan0 UGS       lan0

I will see how I can correct this.

Regards,
Guy

Follow-Ups:
Re: IPv6 default route on FreeBSD with dhcpcd 6.11.2 points to lo0Guy Yur
References:
IPv6 default route on FreeBSD with dhcpcd 6.11.2 points to lo0Guy Yur
Archive administrator: postmaster@marples.name