Re: IPv6 default route on FreeBSD with dhcpcd 6.11.2 points to lo0
Guy Yur
Fri Aug 05 09:22:28 2016On Fri, Aug 5, 2016 at 11:57 AM, Guy Yur <guyyur@xxxxxxxxx> wrote: > 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 Hi, New patch to just add scope to the IPv6 gateway address. The first patch may still be relevant but is not needed for the default route case. Thanks, Guy
Attachment:
bsd_if_route6_add_gateway_scope.patch
Description: Binary data
| Re: Re: IPv6 default route on FreeBSD with dhcpcd 6.11.2 points to lo0 | Roy Marples |