Re: Wrong default gateway with 6.11.0, but okay with 6.10.3
Roy Marples
Mon May 23 13:47:01 2016
Hi
On 20/05/2016 21:38, ck+dhcpcd@xxxxxxxxxxx wrote:
> Hi!
> I've noticed, that dhcpcd 6.11.0 is not working correctly for me. 6.10.3
> does works fine. I am able to reproduce this.
>
> My setup is, that I am connecting via PPP to my ISP. After a connection
> over PPP is made successfully, I am launching dhcpcd, to do two things.
>
> a) Getting an IP-address + routes for my VLAN8 interface (IPTV).
> b) Getting IPv6 over prefix delegation for all my other interfaces.
>
> It seems, something has changed between 6.10.3 and 6.11.0. The result
> is, that 6.11.0 seems to push a new (wrong) route and this replaces my
> default route from PPP. So now, I am not any more able to access the
> internet, as my default route has been replaced. When I do downgrade to
> 6.10.3, that route is not being set and the default route from PPP
> remains working.
>
> route -n after ppp is comming up: http://pastebin.com/Nt9YmZCy
> route -n after starting dhcpcd (ppp is already up):
> http://pastebin.com/6CDGuwwc
>
> dhcpcd 6.10.3 log: http://pastebin.com/SSB2wJ6g
> dhcpcd 6.11.0 log: http://pastebin.com/hLc0iSQd
>
> Please note: My IPs from my ISP are dynamic, not static, even IPv6 :(
>
> The difference between two logs shows, that 6.11.0 also does:
> ppp0: adding route to 91.0.0.0/8
> Why is that being set with 6.11.0 and replacing my default route?
>
> Any Ideas? Did I do something wrong?
Issue #1, dhcpcd is handling a truncated lease. This usually means a
slightly RFC incompliant server fixed here:
http://roy.marples.name/projects/dhcpcd/info/3fd740f3ed17e902
Issue #2, dhcpcd is adding an incorrect netmask. Maybe fixed here, but
I've not tested your specific case yet:
http://roy.marples.name/projects/dhcpcd/info/025c74b42993bc3f
What is interesting is your claim dhcpcd is changing the default route,
but there's nothing in the logs you provided to actually prove that - no
mention of a default route is made.
Can you either test a trunk snapshot (ideal), or the two above patches
and see if they help any?
Thanks
Roy
Archive administrator: postmaster@marples.name