Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RPI using recent image boots with non functioning gateway



On Tue, Dec 15, 2015 at 8:57 AM, Roy Marples <roy%marples.name@localhost> wrote:
> Hi Andy
>
> (I'm not subbed to this list and copied the email and indented correctly, but
> it may not appear in a threaded list, sorry for that. As such, include me
> directly on any replies please.)
>
>> When dhcpcd gets the IP info, the gateway doesn't work. Pings to the
>> DNS server fail.
>>
>> If I do route delete on the default gateway, then add back the exact
>> same info, it starts working. This happens every time it boots, I have
>> to do this manual step to make the default gateway work.
>>
>> What's happening? What info should I gather? netstat -rn looks exactly
>> the same before and after.
>
> Unsure what the cause could be if netstat -rn looks exactly the same.
> Do pings to the gateway work?
>
> If you remove the fault routes and then issue a dhcpcd -n command, dhcpcd will
> then re-add the route again. Does it still fail to work?
>
> Trying to work out of this is a dhcpcd issue, or a kernel issue.
>
> I have two ARM boards I can test dhcpcd on, but they are running OpenWRT and
> not NetBSD.

Wacky. Check this out:

rpi# ping www.netbsd.org
ping: Cannot resolve "www.netbsd.org" (Host name lookup failure)
rpi# dhcpcd -n
sending signal HUP to pid 190
rpi# ping www.netbsd.org
ping: Cannot resolve "www.netbsd.org" (Host name lookup failure)
rpi# route delete 0.0.0.0/0 192.168.0.254
delete net 0.0.0.0: gateway 192.168.0.254
rpi# ping www.netbsd.org
ping: Cannot resolve "www.netbsd.org" (Host name lookup failure)
rpi# dhcpcd -n
sending signal HUP to pid 190
rpi# ping www.netbsd.org
PING www.netbsd.org (199.233.217.205): 56 data bytes
64 bytes from 199.233.217.205: icmp_seq=0 ttl=248 time=43.209185 ms
64 bytes from 199.233.217.205: icmp_seq=1 ttl=248 time=40.979279 ms
64 bytes from 199.233.217.205: icmp_seq=2 ttl=248 time=42.523214 ms
64 bytes from 199.233.217.205: icmp_seq=3 ttl=248 time=42.651209 ms
^C
----www.netbsd.org PING Statistics----
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 40.979279/42.340722/43.209185/0.955242 ms

Andy


Home | Main Index | Thread Index | Old Index